You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
627 B
Sieve
25 lines
627 B
Sieve
8 years ago
|
require "variables";
|
||
|
require "vacation";
|
||
|
require "fileinto";
|
||
|
require "envelope";
|
||
|
require "mailbox";
|
||
|
require "imap4flags";
|
||
|
require "regex";
|
||
|
require "relational";
|
||
|
require "comparator-i;ascii-numeric";
|
||
|
require "vnd.dovecot.extdata";
|
||
8 years ago
|
require "vnd.dovecot.execute";
|
||
8 years ago
|
require "spamtestplus";
|
||
8 years ago
|
|
||
8 years ago
|
if allof (string :is "${extdata.spam_enabled}" "1",
|
||
8 years ago
|
spamtest :percent :value "gt" :comparator "i;ascii-numeric" "${extdata.spam_threshold}")
|
||
8 years ago
|
{
|
||
8 years ago
|
setflag "\\seen";
|
||
|
fileinto :create "Junk";
|
||
|
stop;
|
||
8 years ago
|
}
|
||
9 years ago
|
|
||
9 years ago
|
if string :is "${extdata.reply_enabled}" "1" {
|
||
9 years ago
|
vacation :days 1 :subject "${extdata.reply_subject}" "${extdata.reply_body}";
|
||
|
}
|