# sample .procmailrc file for filtering e-mail # PATH=/usr/local/bin:/usr/bin:/bin MAILDIR=$HOME/Mail #you'd better make sure it exists PMDIR=$HOME/.procmail #DEFAULT=$MAILDIR/mbox #completely optional LOGFILE=$MAILDIR/procmail_log #recommended #VERBOSE=yes #been there, done that #LOGABSTRACT=all #OK, try this # edit this! MAIL_ARCHIVE='/dir/on/other/computer/where/mail_archive/is/stored' # get rid of duplicate messages ( from procmailex(5) ) :0 Wh: msgid.lock | formail -D 32768 msgid.cache # Add a "Content-Type: application/pgp" header so Mutt will know the # mail is encrypted. :0 fBw * ^-----BEGIN PGP MESSAGE----- * !Content-Type: multipart | formail -i "Content-Type: application/pgp; format=text; x-action=encryptsign" # Add a "Content-Type: application/pgp" header so Mutt will know the # mail is signed. :0 fBw * ^-----BEGIN PGP SIGNED MESSAGE----- * !Content-Type: multipart | formail -i "Content-Type: application/pgp; format=text; x-action=sign" # strip out junk ads but save them to "junk" folder just in case the spam trapping is too zealous! :0 * ^TO.*x-plor * ^Subject:.*((earn|make|free|cheap).*\$|low(er|est){0,1} price|.*dollar.*|guarantee|subscribe|internet spy|warez|ADV:|search engine|entrepreneurs|credit card|get paid|free.*(internet|office|domain)|weight loss|c.*a.*b.*l.*e.*d.*e.*s.*r.*a) junk :0 * ^Subject:.*bulk.*e-{0,1}mail junk # job ads :0 * (^TO|^From |^Sender: ).*(ccp4bb|o-info|x-plor|cnsbb|solve) * ^Subject:.*((pre|post).*doc|(position|job).*(available|opportun|posting|position)|ph.d. student|research opportunit) $MAIL_ARCHIVE/jobs # synchrotron info :0 * (^TO|^From |^Sender: ).*(ccp4bb|o-info|x-plor|cnsbb) * ^Subject:.*(beam time|synchrotron) $MAIL_ARCHIVE/synchrotron # CCP4 mailing list :0 * (^TO|^Subject:.*|List-Id:).*ccp4bb { :0 c ccp4bb :0 $MAIL_ARCHIVE/ccp4bb } # O-info mailing list :0 * (^TO|^From |^Sender: |List-Id:).*o-info { :0 c o-info :0 $MAIL_ARCHIVE/o-info } # pymol-users mailing list :0 * (^TO|^From |^Sender: ).*pymol-users { :0 c pymol-users :0 $MAIL_ARCHIVE/pymol-users } # VMD-L mailing list :0 * (^TO|^From |^Sender: ).*vmd-l { :0 c vmd-l :0 $MAIL_ARCHIVE/vmd-l } # SOLVE mailing list :0 * (^TO|^Sender:).*solve { :0 c solve :0 $MAIL_ARCHIVE/solve } # ARP/WARP mailing list :0 * ^TO.*arp-users { :0 c arp-users :0 $MAIL_ARCHIVE/arp-users } # sharp mailing list :0 * (^TO|Reply-To).*sharp-discuss { :0 c sharp :0 $MAIL_ARCHIVE/sharp }