Commit 55b82883 authored by Till Brehm's avatar Till Brehm
Browse files

Implemented #4947 request: not forward spam to external mailbox

parent 1e53d121
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
require ["fileinto", "regex", "date", "relational", "vacation"];

<tmpl_if name="cc">
# Send a copy of email to
<tmpl_loop name="ccloop">
redirect "<tmpl_var name='address'>";
</tmpl_loop>
</tmpl_if>

<tmpl_if name="move_junk" op="==" value="y">
# Move spam to spam folder
if header :contains "X-Spam-Flag" "YES" {
@@ -16,6 +9,13 @@ if header :contains "X-Spam-Flag" "YES" {
}
</tmpl_if>

<tmpl_if name="cc">
# Send a copy of email to
<tmpl_loop name="ccloop">
redirect "<tmpl_var name='address'>";
</tmpl_loop>
</tmpl_if>

<tmpl_var name='custom_mailfilter'>

keep;