### Sample .procmailrc for sorting spam labelled by SpamAssassin. ### ### Usage: ### Download this file and save it as .procmailrc in your home ### directory (note the leading period!). ### For more information about SpamAssassin and Procmail, see ### . ############################################################ ### Variables ### Provide lots of useful information. VERRBOSE=off ### Separate log messages dealing with a single message from others ### with the following string. LOG=" " ### Base shell and path. (Required! Don't change unless you're ### really sure about what you're doing!) SHELL=/bin/sh PATH=/usr/local/bin:/usr/bin/:/bin ### Mail directory. (Default on math system.) MAILDIR=$HOME/Mail ### Location of log file. LOGFILE=$MAILDIR/procmail.log ############################################################ ### Rules for filing mail. ############################## ### Spam. ### These rules assume that mail is being labelled by SpamAssassin; ### SpamAssassin (and procmail) runs on every incoming mail message ### sent to your math.hmc.edu account. ### SpamAssassim uses asterisks to indicate how spammy a message ### is. These rules search based on the number of asterisks. ### Note that asterisks must be specified as ``\*'' to avoid being ### interpreted as the all-matching wildcard. ### Uncomment to collect amazingly spammy spam separately. ### Collect and share with friends! ### ### Commented by default. ## Matches scores of 49.00 or worse. # :0: # * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* # spam-awesome ### Obvious spam that probably ought to be deleted, but we'll hang ### on to it just in case. Save to the spam-to-delete mailbox. ## Matches scores between 10.00 and 48.99 (if previous rule is ## uncommented, otherwise 10.00 and up). ## If you get confident in SpamAssassin's identifications of spam, ## you might consider changing the rule to just delete the messages :0: * ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\* spam-to-delete ### Probably spam, but we should check it occasionally. ## Matches scores between 5.00 and 9.99. Save to the ## spam-to-check mailbox. :0: * ^X-Spam-Level: \*\*\*\*\* spam-to-check ### Any apparent spam that's left, put in spam-to-check. ## Matches the string ``Yes'' in the X-Spam-Status field. Should be ## caught by one of the previous rules. :0: * ^X-Spam-Status: Yes spam-to-check ############################## ### Other rules would go here. ### Forward mail to other address after filtering out spam. # :0c # ! self@other-place.net # Note that the ``c'' flag causes Procmail to continue processing the # mail, so rules following the forwarding rule will still apply, # including the final, default action. To forward mail without # keeping a copy locally, remove the ``c'' from the ``:0c'' line. # Also note that rules preceding the forward rule that refile mail # will generally result in delivery, so mail that you send to a # mailbox before forwarding will probably not be forwarded as well. # Rules after the forward can file messages into mailboxes without # affecting forwarding. ############################################################ ### Default Action ### Deliver any remaining mail to mbox (default file for Pine). :0: mbox