-----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-----