This is a standard Sieve script for putting spam marked mail into a Junk folder. I'm not sure if it will work on dbmail or if dbmail runs global sieve scripts. The :create flag tells it to create the folder if it doesn't exist.

require ["fileinto", "mailbox"];
if header :contains "X-Spam-Flag" "YES" {
  fileinto :create "Junk";
}

On 4/30/2014 5:12 PM, Andrea Brancatelli wrote:
I'm a bit confused after googling around: has "global sieve" (read, a default 
sieve for all the user) been implemented in dbmail?

I would like to send mail marked as Spam by Spamassassin into a sub folder for each user 
called Spam. Do any of you do this? How? My best shot would be a sieve script that moves 
all the messages with ****SPAM**** in the subject into a specific folder. But then again 
what happens if sieve runs and there no "Spam" folder (yet)? Can it 
automatically create it on his own?

How do you deal with spam on dbmail?

Andrea "Mr.SK" Brancatelli
_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

_______________________________________________
DBmail mailing list
[email protected]
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

Reply via email to