# debugging VERBOSE=yes LOGFILE=.procmailrc.log # One often receives duplicate messages for cross-postings to mailing # lists, or explicit replies to a post from you in addition to the # mailing list message. # # The following recipe eliminates all duplicate messages. It tells # formail(1) to keep a cache file of the Message-IDs of the most recent # messages you've received. Since Message-IDs are guaranteed unique for # distinct messages, they are ideally suited to weed out duplicates. # # all recipes start with `:0'. # W - wait for completion, suppressing `program failure' message. # h - send headers only to the subprogram. # : msgid.lock - locking using given file. # :0 Wh: msgid.lock | formail -D 65536 mail/.saves.msgid # HB - send both header and body to subprogram. :0 HB # * - condition, ? execute specified program. * ? ./bin/testspam { # if spam, save in file misc/caughtspam. :0 misc/caughtspam } # by default, it goes to the regular spool.