Skip to content

Commit 803c134

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
Create Junk-Folder if it doesn't exist, but Junkmail shall be moved See merge request ispconfig/ispconfig3!1100
2 parents b62eee4 + 97f3636 commit 803c134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/conf/sieve_filter.master

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# You can create and activate a per-user sieve script (manually or via managesieve),
44
# which will execute after this.
55

6-
require ["fileinto", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
6+
require ["fileinto", "mailbox", "regex", "date", "relational", "vacation", "imap4flags", "envelope", "subaddress", "copy", "reject"];
77

88
<tmpl_if name="move_junk" op="==" value="y">
99
# Move spam to spam folder
1010
if anyof (header :contains "X-Spam-Flag" "YES", header :contains "X-Spam" "Yes", header :contains "subject" "*** SPAM ***", header :contains "subject" "***SPAM***") {
11-
fileinto "Junk";
11+
fileinto :create "Junk";
1212
# Stop here so that we do not reply on spams
1313
stop;
1414
}
@@ -32,7 +32,7 @@ redirect "<tmpl_var name='address'>";
3232
<tmpl_if name="move_junk" op="==" value="a">
3333
# Move spam to spam folder
3434
if anyof (header :contains "X-Spam-Flag" "YES", header :contains "X-Spam" "Yes", header :contains "subject" "*** SPAM ***", header :contains "subject" "***SPAM***") {
35-
fileinto "Junk";
35+
fileinto :create "Junk";
3636
# Stop here so that we do not reply on spams
3737
stop;
3838
}

0 commit comments

Comments
 (0)