doc:appunti:prog:esempi_maildrop
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:appunti:prog:esempi_maildrop [2014/02/18 10:18] – created niccolo | doc:appunti:prog:esempi_maildrop [2014/02/18 13:09] (current) – niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Esempio regole maildrop ====== | ====== Esempio regole maildrop ====== | ||
+ | |||
+ | Vedere **'' | ||
< | < | ||
+ | # | ||
+ | # $HOME/ | ||
+ | # | ||
# regex flags, used after the regex: / | # regex flags, used after the regex: / | ||
# :h - header | # :h - header | ||
# :b - body | # :b - body | ||
# :D - distinguish between upper and lower case (default is to ignore case) | # :D - distinguish between upper and lower case (default is to ignore case) | ||
+ | # | ||
- | MAILDIRMAKE="/ | + | # Configure |
- | + | ||
- | # configure | + | |
TYPE=" | TYPE=" | ||
- | |||
- | logfile " | ||
DEFAULT=" | DEFAULT=" | ||
+ | |||
+ | # Execute xfilter using this shell. | ||
+ | # Wrap commands into exception{} to deal with errors. | ||
+ | SHELL="/ | ||
+ | |||
+ | MAILDIRMAKE="/ | ||
+ | |||
+ | # Enable mail tracing. | ||
+ | #logfile " | ||
# | # | ||
Line 27: | Line 38: | ||
# spamc automatically skip messages greater than 512000 bytes. | # spamc automatically skip messages greater than 512000 bytes. | ||
# | # | ||
- | if ( $SIZE < 256000 ) | + | if ($SIZE < 256000) |
{ | { | ||
exception { | exception { | ||
Line 37: | Line 48: | ||
# Blackhole or move into subfolder messages tagged as SPAM. | # Blackhole or move into subfolder messages tagged as SPAM. | ||
# | # | ||
- | if ( / | + | if (/ |
{ | { | ||
exception { | exception { | ||
- | | + | to "/ |
# Create Spam subfolder (little overhead if it exists). | # Create Spam subfolder (little overhead if it exists). | ||
# | # | ||
- | to " | + | |
} | } | ||
} | } | ||
</ | </ |
doc/appunti/prog/esempi_maildrop.1392715121.txt.gz · Last modified: 2014/02/18 10:18 by niccolo