procmail

Matthew East mdke at ubuntu.com
Mon Nov 6 08:29:26 UTC 2006


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

Hi,

I'm trying to figure my way around procmail. At the moment it's not
going very well - I find that loads of my emails are all going into the
same folder (.Linux.Ubuntu.Fridge), except for the one email that
actually should have gone in there! My setup is like this:

.procmailrc:

{{{
PMDIR=$HOME/procmail
LOGFILE=$PMDIR/log
MAILDIR=$HOME/Maildir
INCLUDERC=$PMDIR/filters.rc
INCLUDERC=$PMDIR/spam.rc

# Send everything else to Maildir
:0
$HOME/Maildir/
}}}

$PMDIR/filters.rc is like this:

{{{
:0
* ^Reply-To:*bugs.launchpad.net
.Linux.Ubuntu.Bugs/

:0
* ^From:.*mailman at lists.ubuntu.com
* ^Subject.*Bounce
.Linux.Ubuntu.Bounces/

:0
* ^From.*Cron
* ^Subject:.*Cron
.Cron/

:0
* !(To|Cc).*fridge-devel at lists.ubuntu.com
.Linux.Ubuntu.Fridge/

:0
* ^To.*junk at mdke.org
.Flats/
}}}

and $PMDIR/spam.rc is like this:

{{{
# Execute spamassassin for each incoming e-mail
:0fw
| $HOME/sausr/bin/spamassassin

# Delete all spam with a score of 8 or higher
# :0
# * ^X-Spam-Level: \*\*\*\*\*\*\*\*
# /dev/null

#Dump the rest into SquirrelMail's "Trash" folder
:0:
* ^X-Spam-Status: Yes
.Junk/
}}}

Any ideas?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFTvJmtSaF0w5rBv8RAlnGAJ4mG/+DdAh0mtGgQA2aaDz7W5WNHQCeJPI9
Er3W7PF9N/TZG1hK90ujlW8=
=tq1u
-----END PGP SIGNATURE-----





More information about the ubuntu-users mailing list