<p>Are there any handy general items you put in your .procmailrc file?</p>

[{'answer_id': 8629, 'author': 'Marie Fischer', 'author_id': 719, 'author_profile': 'https://Stackoverflow.com/users/719', 'pm_score': 3, 'selected': False, 'text': '<p>Just simple things - move messages to appropriate folders, forward some stuff to an email2sms address, move spam to spam folder. One thing I\'m kind of proud of is how to mark your spam as "read" (this is for Courier IMAP and Maildir, where "read" means "move to different folder and change the filename"):</p>\n\n<pre><code>:0                                                                              \n* ^X-Spam                       # the header our filter inserts for spam                                                                   \n{                                                                               \n    :0                                                                         \n    .Junk\\ E-mail/              # stores in .Junk E-mail/new/                                                                                      \n\n    :0                                                                          \n    * LASTFOLDER ?? /\\/[^/]+$   # get the stored message\'s filename                                                   \n    { tail=$MATCH }             # and put it into $tail\n    # now move the message                                                            \n    TRAP="mv .Junk\\ E-mail/new/$tail .Junk\\ E-mail/cur/$tail:2,S"               \n}\n</code></pre>\n'}, {'answer_id': 15363, 'author': 'Jon Bright', 'author_id': 1813, 'author_profile': 'https://Stackoverflow.com/users/1813', 'pm_score': 4, 'selected': True, 'text': '<p>Many mailers prefix a mail\'s subject with "Re: " when replying, if that prefix isn\'t already there.  German Outlook instead prefixes with "AW: " (for "AntWort") if that prefix isn\'t already there.  Unfortunately, these two behaviours clash, resulting in mail subjects like "Re: AW: Re: AW: Re: AW: Re: AW: Lunch".  So I now have:</p>\n\n<pre><code>:0f\n* ^Subject: (Antwort|AW):\n|sed -r -e \'1,/^$/s/^(Subject: )(((Antwort: )|(Re: )|(AW: ))+)(.*)/\\1Re: \\7\\nX-Orig-Subject: \\2\\7/\'\n</code></pre>\n\n<p>Which curtails these (and an "Antwort: " prefix that I\'ve evidently also been bothered by at some point) down to a single "Re: ".</p>\n'}, {'answer_id': 36299, 'author': 'hoyhoy', 'author_id': 3499, 'author_profile': 'https://Stackoverflow.com/users/3499', 'pm_score': 2, 'selected': False, 'text': '<p>To stop weird russian and chinese spams, I use this procmail configuration. </p>\n\n<pre><code>UNREADABLE=\'[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987\'\n:0:\n* ^Content-Type:.*multipart\n* B ?? $ ^Content-Type:.*^?.*charset="?($UNREADABLE)\nspam-unreadable\n</code></pre>\n'}, {'answer_id': 58236, 'author': 'bmb', 'author_id': 5298, 'author_profile': 'https://Stackoverflow.com/users/5298', 'pm_score': 2, 'selected': False, 'text': '<p>I have various filters in my .procmailrc file, but the most useful is this one, which I add to the very top of the file before I make any other changes.</p>\n\n<pre><code>:0 c:\nmail.save\n</code></pre>\n\n<p>This saves a copy of everything and then continues with the rest of the recipes.  If I\'ve done something wrong, my e-mail is saved in the file "mail.save". When I\'m sure my changes are working, I comment these lines out, until the next time.</p>\n'}]
['https://Stackoverflow.com/questions/8493', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/459/']