1 SHELL=/bin/bash 2 LINEBUF=4096 3 # Magic. Apparently it burps on long lines if you don't... 4 PATH=/bin:/usr/bin:/usr/local/bin 5 VERBOSE=off 6 MAILDIR=/home/calmar/.mail/ 7 LOGFILE=/home/calmar/.mail/log/procmaillog 8 FORMAIL=/usr/bin/formail 9 SENDMAIL=/usr/sbin/sendmail 10 11 12 ################################################################ 13 # Gods know how this works. But it's very useful. If you get # 14 # email that is sent simultaneously to you and to two other # 15 # lists, this will nuke two of those so that you only see it # 16 # once. Came from 'man procmail'. # 17 ################################################################ 18 19 # Nuke duplicate messages 20 :0 Wh: msgid.lock 21 | $FORMAIL -D 8192 log/msgid.cache 22 23 ################################################################ 24 # Next two are from the 'Getting started with procmail' doc. # 25 # I'm not too sure about how they work, but they look handy... # 26 ################################################################ 27 28 # Create a backup cache of 200 most recent messages in case of 29 # mistakes (yes, you can change the 200 to 20 or 400 or whatever 30 # you want) 31 #:0 c 32 #backup 33 34 #:0 ic 35 # | cd /var/mail/procmailbackup && rm -f dummy `ls -t msg.* | sed -e 1,200d` 36 37 38 39 # # Regenerate "From" lines to make sure they are valid 40 # :0 fhw 41 # | formail -I "From " -a "From " 42 43 :0 fhw 44 | $FORMAIL -a Message-Id: -a "Subject: (None)" 45 46 :0: 47 * ^(Cc|To).*fvwm@fvwm.org 48 fvwm 49 50 :0: 51 * ^(Cc|To).*fvwm-workers@fvwm.org 52 fvwm-workers 53 :0: 54 * ^(Cc|To).*fluxbox.* 55 fluxbox 56 57 :0: 58 * ^(Cc|To).*vim@vim.org.* 59 vim 60 61 :0: 62 * ^Subject.*\*\*\* GMX Spamverdacht \*\*\*.* 63 spam 64 65 ################################################################ 66 # X-purgate: spam # 67 ################################################################ 68 :0: 69 * ^X-purgate.*spam 70 spam 71 72 :0: 73 * ^X-Spam-Status: YES,.* 74 spam 75 76 ################################################################ 77 # X-purgate: dangerous # 78 ################################################################ 79 :0: 80 * ^X-purgate.*dangerous 81 dangerous 82 83 ################################################################ 84 # X-purgate: bulk # 85 ################################################################ 86 :0: 87 * ^X-purgate.*bulk 88 bulk 89 90 :0: 91 * (^From: Mail Delivery|^From:.*MAILER-DAEMON@|^From:.*postmaster@) 92 mail-daemon 93 94 :0: 95 * ^To.*candrimac@gmx.net 96 gmx 97 98 :0: 99 * ^To.*(calmar@calmar.ws|cal.mar@gmx.net) 100 calmar 101 102 :0: 103 * ^To.*@calmar.ws 104 inbox 105 106 :0: 107 * ^.* 108 inbox 109 110 ################################################# 111 # This is what I consider advanced stuff: this # 112 # one doesn't put the digest straight into a # 113 # folder. Instead it runs 'formail +1 -ds', # 114 # which splits the digest into its original # 115 # messages, and then puts the results of that # 116 # into the folder. # 117 # # 118 # The address is way way out of date, but I am # 119 # not sure of the current digest address, so I # 120 # have left it. # 121 # # 122 # It is commented out because I actually read # 123 # the main list, not the digest, these days. # 124 ################################################# 125 126 # :0: 127 # * ^TOgrrltalk-digest@hub.org 128 # | formail +1 -ds >> IN.linuxchix 129 130 131 132 133 134