summaryrefslogtreecommitdiff
path: root/maidag
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2017-01-30 11:12:19 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2017-01-30 11:12:19 +0200
commitfe6c328bb2819bd3144b1f2aef3e975923037f65 (patch)
tree7b26abcf381c640a60177db1d6b80d761df9de67 /maidag
parentd569c130f2cee770ab0aba6ee2a65382967b324e (diff)
downloadmailutils-fe6c328bb2819bd3144b1f2aef3e975923037f65.tar.gz
mailutils-fe6c328bb2819bd3144b1f2aef3e975923037f65.tar.bz2
Fix sieve logging in maidag
* maidag/maidag.c (sieve_debug_flags) (sieve_enable_log): Remove. * maidag/script.c (apply_script): Check for mu_script_sieve_log.
Diffstat (limited to 'maidag')
-rw-r--r--maidag/maidag.c4
-rw-r--r--maidag/script.c2
2 files changed, 2 insertions, 4 deletions
diff --git a/maidag/maidag.c b/maidag/maidag.c
index e28854c68..a7ac1fa41 100644
--- a/maidag/maidag.c
+++ b/maidag/maidag.c
@@ -47,8 +47,6 @@ int forward_file_checks = FORWARD_FILE_PERM_CHECK;
/* Debuggig options */
int debug_level; /* General debugging level */
-int sieve_debug_flags; /* Sieve debugging flags */
-int sieve_enable_log; /* Enables logging of executed Sieve actions */
char *message_id_header; /* Use the value of this header as message
identifier when logging Sieve actions */
@@ -524,7 +522,7 @@ main (int argc, char *argv[])
/* Default locker settings */
mu_locker_set_default_flags (MU_LOCKER_PID|MU_LOCKER_RETRY,
- mu_locker_assign);
+ mu_locker_assign);
mu_locker_set_default_retry_timeout (1);
mu_locker_set_default_retry_count (300);
diff --git a/maidag/script.c b/maidag/script.c
index f66370b8e..e65a9b645 100644
--- a/maidag/script.c
+++ b/maidag/script.c
@@ -87,7 +87,7 @@ apply_script (void *item, void *data)
progfile, mu_strerror (rc));
else
{
- if (sieve_enable_log)
+ if (mu_script_sieve_log)
mu_script_log_enable (scr->scr, sd, clos->auth->name,
message_id_header);
rc = mu_script_process_msg (scr->scr, sd, clos->msg);

Return to:

Send suggestions and report system problems to the System administrator.