Commit 400a19f2 authored by Claudemir Todo Bom's avatar Claudemir Todo Bom

* added missing file from last commit

parent 271c8d53
Pipeline #191 passed with stage
in 1 minute and 23 seconds
require ["vnd.dovecot.pipe", "copy", "imapsieve", "environment", "variables"];
if environment :matches "imap.mailbox" "*" {
set "mailbox" "${1}";
}
if string :is "${mailbox}" [ "Trash" , "trash" , "Deleted Items" , "deleted messages" ] {
stop;
}
if string :is "${maibox}" [ "Sent" , "Archive" , "Drafts" ] {
stop;
}
if string :is "${mailbox}" [ "Junk" , "junk" , "spam" , "Spam" , "SPAM" , "Junk E-mail" ] {
set "command" "spam";
} else {
set "command" "ham";
}
if environment :matches "imap.user" "*" {
set "username" "${1}";
}
if environment :matches "imap.cause" "*" {
set "cause" "${1}";
}
pipe :copy "sa-learn-pipe.sh" [ "${username}", "${command}" , "${cause}" ];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment