summaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-03-19 22:18:05 -0400
committerJesse Luehrs <doy@tozt.net>2019-03-19 22:18:05 -0400
commit31eded8070821036fdf80bd27f8c24082ffff3b4 (patch)
treeb6adac11874c8a00e83aee8e78f19b19a9381b74 /modules/mail
parent8285609c3484774f58be61189b05859c10464567 (diff)
downloadpuppet-tozt-31eded8070821036fdf80bd27f8c24082ffff3b4.tar.gz
puppet-tozt-31eded8070821036fdf80bd27f8c24082ffff3b4.zip
add some debugging
Diffstat (limited to 'modules/mail')
-rw-r--r--modules/mail/files/patch/learn.sieve8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/mail/files/patch/learn.sieve b/modules/mail/files/patch/learn.sieve
index e56b593..eb952ad 100644
--- a/modules/mail/files/patch/learn.sieve
+++ b/modules/mail/files/patch/learn.sieve
@@ -1,17 +1,23 @@
-require ["vnd.dovecot.execute", "imap4flags", "imapsieve", "environment", "variables"];
+require ["vnd.dovecot.execute", "vnd.dovecot.debug", "imap4flags", "imapsieve", "environment", "variables"];
if environment :matches "imap.mailbox" "*" {
set "mailbox" "${1}";
+ debug_log "running for mailbox ${mailbox}";
}
if string "${mailbox}" "Junk" {
+ debug_log "categorizing as spam";
setflag "\\seen";
execute :pipe "spam";
}
else {
if string "${mailbox}" "Trash" {
+ debug_log "categorizing as trash";
stop;
}
+ debug_log "categorizing as ham";
execute :pipe "ham";
}
+
+debug_log "done";