summaryrefslogtreecommitdiffstats
path: root/pigeonhole/tests/extensions/imap4flags/execute/flags-side-effect.sieve
blob: 17de0ad017926c599a81e60821d504f345e3cb08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "imap4flags";
require "fileinto";

/*
 * When keep/fileinto is used multiple times in a script and duplicate
 * message elimination is performed, the last flag list value MUST win.
 */

setflag "IMPLICIT";

fileinto :flags "\\Seen \\Draft" "INBOX.Junk";
fileinto :flags "NONSENSE" "INBOX.Junk";

keep;
keep :flags "\\Seen";

fileinto :flags "\\Seen" "Inbox.Nonsense";
fileinto "Inbox.Nonsense";