doc:appunti:prog:esempi_maildrop
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
doc:appunti:prog:esempi_maildrop [2014/02/18 11:13] – 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 34: | Line 43: | ||
xfilter "/ | xfilter "/ | ||
} | } | ||
- | } | ||
- | |||
- | # | ||
- | # Move sender into a folder (beware of extra char in From header!). | ||
- | # | ||
- | if (/^From: *Newsletter/ | ||
- | { | ||
- | to Maildir/ | ||
} | } | ||
Line 50: | Line 51: | ||
{ | { | ||
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.1392718428.txt.gz · Last modified: 2014/02/18 11:13 by niccolo