Get your own free workspace
View
 

Procmail

Page history last edited by PBworks 5 years, 6 months ago
  • Matches any Windows executable

 

:0 B

* ^Content-Transfer-Encoding:.*base64

* ^TVqQAAMAAAAEAAAA

/dev/null

 

:0 B

* ^Content-Transfer-Encoding:.*base64

* ^TVoAAAAAAAAAAAAA

/dev/null

 

:0 B

* ^Content-Transfer-Encoding:.*base64

* ^UEsDBAoAAAAAA

/dev/null

 

:0 B

* ^Content-Transfer-Encoding:.*base64

* ^UEsDBBQAAAAIA

/dev/null

 

  • Disregard empty subjects

 

subj_=`formail -xSubject: | expand | sed -e 's/^[ ]*//g' -e 's/[ ]*$//g'`

 

:0:

* subj_ ?? ^^^^

/dev/null

 

  • Discard messages with invalid Message-IDs (RFC 822)

 

dq = '"' # (literal) double-quote

bw = "" # (literal) backwhack

ws = "[ ]*" # whitespace

atom = "[-!#-'*+/-9=?A-Z^-~]+"

word = "($atom|$dq([^$dq]|$bw.)*$dq)"

local = "$word($ws.$ws$word)*"

domain = "([$ws([^][]|$bw.)*$ws]|$atom($ws.$ws$atom)*)"

 

:0

* ! $ ^Message-Id:$ws$ws$local$ws@$ws$domain$ws

/dev/null

Comments (0)

You don't have permission to comment on this page.