procmailrc

MAILDIR=$HOME/mail
LOGABSTRACT=yes
VERBOSE=off
NL="
"

# recipe lines begin with :0
# dont put comments on recipe lines
# disable a recipe with the false condition !
# condition lines begin with * and regex is your friend
# conditions are anded and everything after * is fed straight into egrep
# one action line follows the conditions, in this case it is a mailbox name
#
DEFAULT=$MAILDIR/inbox/

# store any duplicate email into 'duplicates' mailbox
:0 Whc: msgid.lock
| formail -D 8192 ~/mail/msgid.cache
:0 a:
duplicates/

# I do request mutt to ask for dsn. This will store them into 'sending-ack'
:0
* ^Subject:.*DELIVERY CONFIRMATION:.*
sending-ack/

:0
* ^Subject:.*ARCHIVE THIS FILE.*
archive/

# Other mails from the mailer daemon, that are not dsn messages, are considered
# to be errors
:0
* ^From:.*MAILER-DAEMON@.*
errors/

:0
* ^Subject:.*ARCHIVE THIS FILE.*
archival/

:0
* ^Subject:.*my core dump is my seg fault.*
blog/

:0
* ^From:.*(acm.org|acmqueue.com).*
acm/

:0
* ^From:.*(ieee.org|computer.org|mtlieee@gmail.com|Distribution128@qmagsdelivery.com).*
ieee/

:0
* ^From:.*(powells.com|a1books.com|theartofbooks.com|workstations@sympatico.ca|jaowensjr@yahoo.com|homeprobooks@comcast.net|jowens@pckeyboard.com|dell.com|directcanada.com|amazon.(ca|com)|ebay.(com|fr|ca)|paypal.(com|ca|fr)|accessamerica.com|vmc-mobile.ca).*
shopping/

:0
* ^(To|From):.*monster.(ca|com)|
  ^(To|From):.*algomod.com|
  ^(To|From):.*htassociates.com|
  ^(To|From):.*compuware.com|
  ^Subject:.*resume.*|
  ^Subject:.*cv.*|
  ^Subject:.*job.*|
jobs/

:0
* ^From:.*(airfrance.(com|fr|ca)|nwa.com|flyzoom.com|hotwire.com|service.expedia.ca|opodo.fr|govoyages.com|vivacances.fr|cheaptickets.com).*
travel/

:0
* ^(From|To):.*(dragonflybsd.org|apollo.backplane.com).*
dragonfly-bsd/

:0
* ^Subject:.*(account|welcome to|password|registration|identifiants).*
subscription/

:0
* ^From:.*sports.yahoo.com.*|^Subject:.*Y! Sports.*
hokey-pool/

:0
* ^From:.*service@youtube.com.*
videos/

:0
* ^From:.*@google.(com|ca|fr|net).*
google/

################################
## Last rule: mail that gets    #
## this far goes in default box #
#################################
:0
* .*
$DEFAULT


  1. […] configuration files are: muttrc, fetchmailrc and procmailrc. The imap gmail configuration file is […]

Leave a comment