HIGHSPAM=spam/HIGHSPAM/
SPAM=spam/SPAM/
JOEJOB=spam/JOEJOB/
+POSTMASTER=spam/POSTMASTER/
# A list (one per line) of people I KNOW are spammers :-)
# can match any part of name so you can use fred, fred@aol.com or aol.com to
* ^TO \/don\+delay\+[^@]+
|/home/don/bin/delay_mail --mailto don@donarmstrong.com --enqueue --email --delay $MATCH
+# Convert old-style PGP messages to MIME
+:0
+* !^Content-Type: multipart/
+* !^Content-Type: application/pgp
+{
+ :0 fBw
+ * ^-----BEGIN PGP MESSAGE-----
+ * ^-----END PGP MESSAGE-----
+ | formail \
+ -i "Content-Type: application/pgp; format=text; x-action=encrypt"
+
+ :0 fBw
+ * ^-----BEGIN PGP SIGNED MESSAGE-----
+ * ^-----BEGIN PGP SIGNATURE-----
+ * ^-----END PGP SIGNATURE-----
+ | formail \
+ -i "Content-Type: application/pgp; format=text; x-action=sign"
+}
:0:
* ! ? (formail -x From: -x Sender: | fgrep -iqf $FRIENDS)
# I get joe-jobbed a lot; if a message is from a mailer, but not from
# one of mine, discard it.
:0:
-* ^FROM_MAILER
-* !^From:.+(ucr|debian|donarmstrong|sndservers|ccin)
+* (^(((Resent-)?(From|Sender)|X-Envelope-From):|>?From )([^>]*[^(.%@a-z0-9])?(Post(ma(st(er)?|n)|office)|(send)?Mail(er)?|daemon|mmdf|n?uucp|ops|r(esponse|oot)|(bbs\.)?smtp(error)?|(s(erver)|ystem)|A(dmin(istrator)?|MMGR))(([^).!:a-z0-9][-_a-z0-9]*)?[%@>\t ][^<)]*(\(.*\).*)?)?$([^>]|$))
+* !^From:.+(ucr|debian|donarmstrong|sndservers|ccin|schedulesdirect)
+* !^From:.+(schedulesdirect|paypal.com)
+* !^To:.+ (don\+.+\@donarmstrong\.com)
+* !^List-.+
$JOEJOB
+# stuff for postmaster at my machines
+:0:
+* ^To: postmaster@
+$POSTMASTER
+
# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0 H
# Mailing lists #
###################
+:0:
+* ^From:.*announcements@student.ucr.edu
+lists/ucr-announcements
+
+:0:
+* ^List-Id: <stannounce2.lists.ucr.edu>
+lists/ucr-announcements
+
:0:
* X-Mailing-List: <\/[^@]+
lists/`echo $MATCH | sed -e 's/[\/]/_/g'`/