10 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Missing spam folder
FromSent OnAttachments
Bowie BaileyOct 28, 2004 7:07 am 
Jay LeeOct 28, 2004 7:40 am 
DinoOct 28, 2004 8:31 am 
Mitch (WebCob)Oct 30, 2004 4:50 pm 
Sam VarshavchikOct 30, 2004 6:38 pm 
Mitch (WebCob)Oct 31, 2004 12:36 am 
Bowie BaileyNov 1, 2004 7:58 am 
Jeff JansenNov 1, 2004 2:22 pm 
Sam VarshavchikNov 1, 2004 3:33 pm 
Bowie BaileyNov 2, 2004 1:39 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Missing spam folderActions...
From:Dino (di@pro-netics.com)
Date:Oct 28, 2004 8:31:48 am
List:net.sourceforge.lists.courier-users

-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1

Alle 16:07, giovedì 28 ottobre 2004, Bowie Bailey ha scritto:

I have a user who has a bad habit of deleting his spam folder. This causes his junk mail to start backing up in the mail queue until I notice and fix it.

His mailfilter looks like this: if ( /^X-Spam-Flag: YES/ ) { to "./Maildir/.Spam/" }

If I add an exception statement: if ( /^X-Spam-Flag: YES/ ) { exception { to "./Maildir/.Spam/" } }

I'm using this rule to auto create the .Spam imap mailforder, this is working perfectly for me:

# This directory is for mail tagged as spam by spamassassin # Is in the [home_directory_of_the_virual_user]/Maildir. SPAMDIR='.Spam'

xfilter "/usr/bin/spamc -f" # This is the first mailfilter. A virus was found? Then the mail is blocked xfilter "/usr/sbin/amavis $FROM $RECIPIENT"

# This is the rule for maildrop to send the spam into SPAMDIR maildir. if ((/^X-Spam-Status: Yes/)) { # This is used to create the spam maildir if it not exists. DIRMAKE=`/usr/lib/courier/bin/maildirmake ./Maildir/$SPAMDIR 1>/dev/null 2>/dev/null`

to "./Maildir/$SPAMDIR/." }

iD8DBQFBgRCF1BX1tlfg/BwRAl7tAJ4o/8qtmZdJlPFO//9/2LyMHAY4IgCghttj EXQxVnLT1waKJr+tspcR9BA= =bwKI -----END PGP SIGNATURE-----