-----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/."
}
Ciao, Dino.
- --
- --------------------------------------------
| �Dino Ciuffetti - Network Administrator �|
| � � �+**+ � Pro-Netics S.r.l. �+**+ � � �|
- --------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBgRCF1BX1tlfg/BwRAl7tAJ4o/8qtmZdJlPFO//9/2LyMHAY4IgCghttj
EXQxVnLT1waKJr+tspcR9BA=
=bwKI
-----END PGP SIGNATURE-----
-------------------------------------------------------
This Newsletter Sponsored by: Macrovision
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users