doc:appunti:prog:esempi_maildrop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:prog:esempi_maildrop [2014/02/18 11:03] – niccolo | doc:appunti:prog:esempi_maildrop [2014/02/18 13:09] (current) – niccolo | ||
---|---|---|---|
Line 4: | Line 4: | ||
< | < | ||
+ | # | ||
+ | # $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 29: | 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 39: | 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.1392717836.txt.gz · Last modified: 2014/02/18 11:03 by niccolo