[Workaround.org] Howto flag spam as "seen" with sieve.

Axel Zöllich faxel at zoellich.de
Fri Apr 15 18:08:09 CEST 2011


Hallo,

If you won't spam messages to be shown as new/unreaded you can use sieve like 
this: 

require ["fileinto", "imap4flags"];
# Move spam to spam folder
# if exists "X-Spam-Flag"
if header :contains "X-Spam-Flag" ["YES"] {
  addflag "\\seen";
  fileinto "Trash";
  # Stop here so that we do not reply on spams
  stop;
}

Axel

-- 
Wir verwenden ausschließlich blaue Elektronen aus biologischem Anbau.


More information about the Workaround-chitchat mailing list