What's in your .procmailrc

Are there any useful common elements that you have embedded in your .procmailrc file?

+5
source share
4 answers

Many mail senders have a mail subject prefix with the answer "Re:" if this prefix does not exist yet. German Outlook is instead prefixed with "AW:" (for "AntWort") if that prefix does not already exist. Unfortunately, these two behaviors contradict each other, resulting in topics such as "Re: AW: Re: AW: Re: AW: Re: AW: Lunch". So now I have:

:0f
* ^Subject: (Antwort|AW):
|sed -r -e '1,/^$/s/^(Subject: )(((Antwort: )|(Re: )|(AW: ))+)(.*)/\1Re: \7\nX-Orig-Subject: \2\7/'

Which restricts them (and the prefix "Antwort:", which apparently also was seen at some point) to one "Re:".

+5

- , , . , "" ( Courier IMAP Maildir, "" " " ):

:0                                                                              
* ^X-Spam                       # the header our filter inserts for spam                                                                   
{                                                                               
    :0                                                                         
    .Junk\ E-mail/              # stores in .Junk E-mail/new/                                                                                      

    :0                                                                          
    * LASTFOLDER ?? /\/[^/]+$   # get the stored message filename                                                   
    { tail=$MATCH }             # and put it into $tail
    # now move the message                                                            
    TRAP="mv .Junk\ E-mail/new/$tail .Junk\ E-mail/cur/$tail:2,S"               
}
+5

.procmailrc, , , - .

:0 c:
mail.save

, . - , "mail.save". , , .

+3

To stop weird Russian and Chinese spam, I use this procmail configuration.

UNREADABLE='[^?"]*big5|iso-2022-jp|ISO-2022-KR|euc-kr|gb2312|ks_c_5601-1987'
:0:
* ^Content-Type:.*multipart
* B ?? $ ^Content-Type:.*^?.*charset="?($UNREADABLE)
spam-unreadable
+1
source

All Articles