MAILDIR = $HOME/mail DEFAULT = $HOME/mbox LOGFILE = $HOME/.maillog LOCKFILE= $HOME/.lockmail :0: * ^Subject:.*Vicodin.* * ^Subject:.*Refinace.* /dev/null :0 B: * .*Vicodin.* spam |
The directory where mail goes The default incoming mailbox (local mail only) The file where the procmail actions are logged Lockfile :0 -> Beginning of a recipe * -> This line contains a regexp to be matched Another regexp to be ANDed Where the match goes: delete it! B -> flag to search the body .* -> wildcard File it to the "spam" folder |