LOGFILE=$HOME/.procmailrc.log VERSBOSE=no MAILDIR=$HOME/.maildir-sent/ DEFAULT=$MAILDIR BOGOFILTER_DIR=/home/rthompso/.bogofilter ### keep a temporary backup of incoming mail in case bogofilter misplaces it :0c bogo-backup/ ### ## Silently drop all completely unreadable mail :0: * 1^0 ^\/Subject:.*=\?(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256)\? * 1^0 ^\/Content-Type:.*charset="(.*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987|windows-1251|windows-1256) spam-unreadable/ #### #### bogofilter passthrough-update #### :0fw | bogofilter -p -u -l -e -v # -p)assthrough -u)pdate, -l)og -e)xitcode 0 for spam and ham # -v)erbose #### begin error catcher #### # m-a 2002-10-28 # If bogofilter failed, return the mail to the queue. # Better put this after _EACH_ delivering recipe (not shown here). # Later, the MTA will try again to deliver it. # 75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h # # Originally published by Philip Guenther on the postfix-users # mailing list. :0e { EXITCODE=75 HOST } #### end error catcher #### :0c: * ^X-Bogosity: (Spam|Yes) spam-bogofilter/ # put copy error catcher here to avoid fallthrough # unnecessary in twostate mode: :0c: * ^X-Bogosity: Unsure unsure-bogofilter/ # put another copy of error catcher here to avoid fallthrough #### end bogofilter passthrough-update #### # user-account gmail com to appropriate folder :0 * ^To: *user-account\ gmail\ com user-account gmail com/ # user-account isp com to appropriate folder :0 * ^To: *user-account\ isp\ com user-account isp com/ # put mailing list emails where I want :0 * ^List-Id:.*ncccha\.yahoogroups\.com user-account isp com/ :0 * ^List-Id:.*beagleboard\.googlegroups\.com beagleboard/ # catch everything else to main box also :0 * ^To:.* user-account isp com/ #---------------------------------------------------------------------# # (part 3) How to set up vacation message # 1. No need to set up .forward file if you use this method. # 2. Prepare .vacation.msg in your home directory. # 3. Run "vacation -I" command. # 4. Uncomment the 2 lines below (Did you replace your_loginname with yours?) # 5. Remember to comment out the 2 lines when you come back from vacation. #:0 c #| /usr/bin/vacation rthompso