User Tools

Site Tools


doc:appunti:prog:esempi_maildrop

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:prog:esempi_maildrop [2014/02/18 10:18] – created niccolodoc:appunti:prog:esempi_maildrop [2014/02/18 11:13] niccolo
Line 1: Line 1:
 ====== Esempio regole maildrop ====== ====== Esempio regole maildrop ======
 +
 +Vedere **''man maildropex''**.
  
 <file> <file>
Line 27: Line 29:
 # spamc automatically skip messages greater than 512000 bytes. # spamc automatically skip messages greater than 512000 bytes.
 #------------------------------------------------------------------------- #-------------------------------------------------------------------------
-if ( $SIZE < 256000 )+if ($SIZE < 256000)
 { {
     exception {     exception {
         xfilter "/usr/bin/spamc"         xfilter "/usr/bin/spamc"
     }     }
 +}
 +
 +#-------------------------------------------------------------------------
 +# Move sender into a folder (beware of extra char in From header!).
 +#-------------------------------------------------------------------------
 +if (/^From: *Newsletter/)
 +{
 +    to Maildir/.News
 } }
  
Line 37: Line 47:
 # Blackhole or move into subfolder messages tagged as SPAM. # Blackhole or move into subfolder messages tagged as SPAM.
 #------------------------------------------------------------------------- #-------------------------------------------------------------------------
-if ( /^X-Spam-Flag: *YES/ )+if (/^X-Spam-Flag: *YES/)
 { {
     exception {     exception {
doc/appunti/prog/esempi_maildrop.txt · Last modified: 2014/02/18 13:09 by niccolo