# this is a sample .procmailrc based on mengwong@pobox.com's. LOGFILE=$MAILDIR/log.procmail # ---------------------------------------------------------- # mailing list initialization # ---------------------------------------------------------- # to be expanded below in the LISTS line, to accomodate lists # with names like big-linux, linux-kernel, etc WORDCLASS = "[A-Za-z0-9_-]*" # mailing lists to which i'm subscribed. no leading whitespace allowed. LISTS = "\ ${WORDCLASS}linux${WORDCLASS}|\ procmail-announce|\ majordomo-workers|\ announce_stuchap|\ majordomo-users|\ 8lgm-advisories|\ internet-index|\ domain-policy|\ list-managers|\ fors-announce|\ namedroppers|\ nic-registry|\ scout-report|\ fors-discuss|\ yellowpages|\ 0xdeadbeef|\ edisonserv|\ edisonhelp|\ computing|\ new-httpd|\ cix-news|\ fv-users|\ netstuff|\ com-priv|\ procmail|\ intercom|\ futurec|\ bugtraq|\ edupage|\ english|\ rs-info|\ vpcomp|\ irvc-l|\ stwing|\ theta|\ chaos|\ easle|\ yucks|\ ietf|\ fatf|\ swip|\ swe|\ rre|\ vp|\ ad" # important lists # important: edisonhelp edisonserv vp vpcomp sandbox interesting-people # these silly lists don't use sensible To:'s, so fix manually :0 fhw * ^X-sent-by: Yucks Daemon | formail -i "To: yucks@cs.purdue.edu" :0 fhw * ^Sender: domain-policy-owner@internic.net | formail -i "To: domain-policy@internic.net" :0 fhw * ^From vp-owner@dept.english.upenn.edu | formail -i "To: vp@dept.english.upenn.edu" :0 fhw * ^TOietf-announce | formail -i "To: ietf@ietf.cnri.reston.va.us" # ---------------------------------------------------------- # idiot filter # ---------------------------------------------------------- :0 B: * < 1500 * ^(un)?subscribe * ! $ $LOGNAME Lists/idiots # ---------------------------------------------------------- # hypermail archives # ---------------------------------------------------------- :0 cw:cis899.lock * ^Sender: owner-cis899@pobox.com | /usr/local/bin/hypermail -i -u \ -d "/home/www/hypermail/cis899" \ -l "Daily Chat on CIS899" \ -b "http://icg.stwing.upenn.edu/cis899/" \ -a "NONE" # ---------------------------------------------------------- # include rc's # ---------------- # # /home/mengwong/.procmail-lists # save mailing lists to ~/Mail/Lists/listname # ---------------------------------------------------------- INCLUDERC=/home/mengwong/.procmailrc-lists # ---------------------------------------------------------- # systems are down, mail queued # ---------------------------------------------------------- :0: * ^FROM_MAILER * ! $ ^TO$LOGNAME * ^Subject:.*cannot send message for Lists/queued # ---------------------------------------------------------- # cron jobs # ---------------------------------------------------------- :0: * $ ^From: .*(root|$LOGNAME)@ * ^Subject: .*cron Lists/cronjobs # ---------------------------------------------------------- # testing # ---------------------------------------------------------- # this is how you do OR expressions :0 * 2147483647^0 From: Maria Ny * 1^0 Subject:.*FREE 1 yr. Magazine Sub sent worldwide { :0: Lists/commercial } # ---------------------------------------------------------- # and everything else goes to /usr/spool/mail/$LOGNAME # ----------------------------------------------------------