Hi! I have a suggestion for a maybe more intuitive rule for treating spam: Code: require ["fileinto", "imap4flags", "regex", "date", "relational", "vacation"]; <tmpl_if name="move_junk" op="==" value="y"> # Move spam to spam folder if header :contains "X-Spam-Flag" "YES" { setflag "\\Seen"; addflag "$junk"; fileinto "Junk"; # Stop here so that we do not reply on spams stop; } </tmpl_if> Maybe it has to be extended for all email clients but I have the feeling that this is closer to what many people would expect Junk to be treated like (mark as read and label as "Junk" for the IMAP-client).
actualized to better reflect what Apple Mail adds: Code: <tmpl_if name="move_junk" op="==" value="y"> # Move spam to spam folder if header :contains "X-Spam-Flag" "YES" { setflag "\\Seen"; addflag "$Junk"; addflag "Junk"; addflag "JunkRecorded"; fileinto "Junk"; # Stop here so that we do not reply on spams stop; } </tmpl_if>