Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@siddarth
Created May 18, 2010 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save siddarth/405348 to your computer and use it in GitHub Desktop.
Save siddarth/405348 to your computer and use it in GitHub Desktop.
# simple procmail rules
MAILDIR=$HOME/mail
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/pmlog
FORMAIL=/usr/bin/formail
# die spam, die
:0:
* ^X-Spam-Flag: YES
spam
:0:
* ^List-Id: Some list (<)some_list_id\.lists\.something\.domail\.tld(>)
/foo/bar
:0:
* ^To: foo@bar.baz
* ^Subject:( \[Maybe\])? something .+ something
| /foo/bar/some_script.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment