# [..other recipies..] # I put this at the end of my .procmailrc so that only the messages that would # normally end up in my inbox get saved to the backup folder. # the "c" flag tells procmail to make a carbon copy (or continue) # if the recipe matches. This will let me safe a copy in $MAIL/backup as well # as putting it into my mailbox when the procmailrc continues # Note: There are no conditions since I want this to always match :0c backup
NOTE: a and A are very similar, see the man page for details.
# Part of the trick of filtering list mail is to find a unique header. ACM membership # mail happens to have an "X-loop: membership@acm.uiuc.edu" header so we'll use that :0c * ^X-loop: membership@acm.uiuc.edu !friend@other.uni.edu # notice that we don't have to specify a condition for the next rule :0a acm
# this will filter any mail from the ACM membership list that # does not contain "job" anywhere in the Subject # The ".*" is a regular expression that matches any number of characters # We will cover some simple regular exprssions later :0 * ^X-loop: membership@acm.uiuc.edu * !^Subject: .*job.* acmNOTE: A ! in the condition means negate while a ! in the action means forward.
Back: Simple Filtering
Top
Next: Matching on Regular Expressions
j g r o s s @ s t i m p y . n e t