File: flags-side-effect.sieve

package info (click to toggle)
dovecot 1:2.3.4.1-5+deb10u1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 46,880 kB
  • sloc: ansic: 499,137; makefile: 7,352; sh: 5,592; cpp: 1,555; perl: 303; python: 73; xml: 44; pascal: 27
file content (18 lines) | stat: -rw-r--r-- 403 bytes parent folder | download | duplicates (13)
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";