no way to compare when less than two revisions
Différences
Ci-dessous, les différences entre deux révisions de la page.
— | fdm.conf [2010/12/09 08:34] (Version actuelle) – créée Thomas | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | < | ||
+ | ### fdm configuration | ||
+ | ### vim: | ||
+ | ### | ||
+ | ### All in one replacement for {get, | ||
+ | ### < | ||
+ | ### | ||
+ | ### Frank Terbeck < | ||
+ | ### < | ||
+ | ### Last-Modified: | ||
+ | ### | ||
+ | ########################################################################### | ||
+ | |||
+ | ### The following strings are replaced in pipe commands and | ||
+ | ### maildir/ | ||
+ | ### %a: account name | ||
+ | ### %h: user's home directory | ||
+ | ### %n: user's uid | ||
+ | ### %t: action name if performing action | ||
+ | ### %u: name of user | ||
+ | ### %H: current hour (00-23) | ||
+ | ### %M: current minute (00-59) | ||
+ | ### %S: current second (00-59) | ||
+ | ### %d: current day of the month (00-31) | ||
+ | ### %m: current month (01-12) | ||
+ | ### %y: current year | ||
+ | ### %W: current day of the week (0-6, Sunday is 0) | ||
+ | ### %Y: current day of the year (000-365) | ||
+ | ### %Q: current quarter (1-4) | ||
+ | |||
+ | ########################################################################### | ||
+ | ### Some macros used below. | ||
+ | |||
+ | ### where I keep my mail | ||
+ | $path = " | ||
+ | |||
+ | ### where I keep my config files | ||
+ | $cfgdir | ||
+ | |||
+ | ### location of killfile | ||
+ | $killfile | ||
+ | |||
+ | ### spam filter commands | ||
+ | $com_spam_filter | ||
+ | $com_train_good | ||
+ | $com_train_spam | ||
+ | $com_untrain_good | ||
+ | $com_untrain_spam | ||
+ | |||
+ | ### some filters use these unix commands: | ||
+ | $com_sed | ||
+ | $com_awk | ||
+ | $com_perl | ||
+ | |||
+ | ### spam header expressions | ||
+ | $header_spam | ||
+ | $header_trained = " | ||
+ | $filtered_spam | ||
+ | $filtered_good | ||
+ | $filtered_unsure= " | ||
+ | $filter_trained = " TRAINED" | ||
+ | |||
+ | ### if do_catchall is " | ||
+ | ### to ${catchall_mbox}; | ||
+ | $do_catchall | ||
+ | $catchall_mbox | ||
+ | |||
+ | ### this is used by my archive action. | ||
+ | ### Mails older than this (in days) are moved to the archive. | ||
+ | %max_age | ||
+ | |||
+ | ### zblog < | ||
+ | $com_zblog | ||
+ | |||
+ | ### print from headers (Sender, From, From:, Reply-To:) | ||
+ | ### used for killfiling. | ||
+ | $com_pfh = " | ||
+ | |||
+ | ### list of headers I don't want. | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | $ill_headers = " | ||
+ | |||
+ | ### perl script that filters out unwanted headers | ||
+ | $com_filter_headers = " | ||
+ | $com_filter_headers = " | ||
+ | $com_filter_headers = " | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### This is used to set the maximum size of a mail. Mails larger than | ||
+ | ### this limit are dropped and, if applicable, not deleted from the | ||
+ | ### server. | ||
+ | set maximum-size 128M | ||
+ | |||
+ | ### If this option is specified, fdm(1) attempts to delete messages | ||
+ | ### which exceed maximum-size, | ||
+ | ### oversize messages are a fatal error and cause fdm(1) to abort. | ||
+ | #set delete-oversized | ||
+ | |||
+ | ### If this option is specified, fdm(1) does not attempt to create a | ||
+ | ### lock file and allows multiple instances to run simultaneously. | ||
+ | #set allow-multiple | ||
+ | |||
+ | ### This sets an alternative lock file. The default is ~/.fdm.lock | ||
+ | ### for non-root users and / | ||
+ | set lock-file " | ||
+ | |||
+ | ### This specifies the locks to be used for mbox locking. | ||
+ | ### types are fcntl, flock, and dotlock. The flock and fcntl types | ||
+ | ### are mutually exclusive. The default is flock. | ||
+ | #set lock-types " | ||
+ | |||
+ | ### This sets the default user to change to before delivering mail, | ||
+ | ### if fdmis running as root and no alternative user is specified as | ||
+ | ### part of the action or rule. | ||
+ | #set default-user " | ||
+ | |||
+ | |||
+ | ### This specifies the domains to be used when looking for users with | ||
+ | ### the from-headers keyword. The default is the computer' | ||
+ | #set domain " | ||
+ | |||
+ | ### This allows the headers to be examined when looking for users to | ||
+ | ### be set. The default is to look only at the " | ||
+ | ### headers. The headers are case-insensitive. | ||
+ | #set header | ||
+ | |||
+ | ### This instructs fdm to proxy all connections through url. HTTP | ||
+ | ### and SOCKS5 proxies are supported at present (URLs of the form | ||
+ | ### http:// | ||
+ | ### No authentication is supported for HTTP. | ||
+ | #set proxy | ||
+ | |||
+ | ### This option controls what fdm does with mail that reaches the | ||
+ | ### end of the ruleset (mail that matches no rules or matches only | ||
+ | ### rules with the continue keyword). drop will cause such mail to | ||
+ | ### be discarded, and keep will attempt to leave the mail on the | ||
+ | ### server. | ||
+ | ### it reached the end of the ruleset. | ||
+ | set unmatched-mail keep | ||
+ | |||
+ | ### This option makes fdm attempt to purge deleted mail from the | ||
+ | ### server (if supported) after count mails have been retrieved. | ||
+ | set purge-after none | ||
+ | |||
+ | ### If set, fdm will not insert a ' | ||
+ | #set no-received | ||
+ | |||
+ | ### This specifies the umask(2) to use when creating files. ' | ||
+ | ### means to use the umask set when fdm is started, or umask may be | ||
+ | ### specified as a three-digit octal number. | ||
+ | set file-umask 077 | ||
+ | |||
+ | ### This option allows the default group ownership of files and | ||
+ | ### directories created by fdm(1) to be specified. ' | ||
+ | ### group name string or a numeric gid. ' | ||
+ | set file-group user | ||
+ | |||
+ | ### This controls the maximum time to wait for a server to send data | ||
+ | ### before closing a connection. The default is 900 seconds. | ||
+ | set timeout 900 | ||
+ | |||
+ | ### Instructs fdm to verify SSL certificates for all SSL connections. | ||
+ | set verify-certificates | ||
+ | |||
+ | set queue-high 1 | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### include account information from seperate file. | ||
+ | ### it contains lines that look like this: | ||
+ | ### account " | ||
+ | include " | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### simple actions | ||
+ | action " | ||
+ | action " | ||
+ | |||
+ | ### zblog | ||
+ | action " | ||
+ | action " | ||
+ | |||
+ | ### killfiling | ||
+ | action " | ||
+ | |||
+ | ### a mailbox to rule them all | ||
+ | action " | ||
+ | |||
+ | ### spam actions | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | |||
+ | ### action for adding Lines: headers | ||
+ | ### Current CVS versions can do this themselves. | ||
+ | action " | ||
+ | |||
+ | ### action to remove unneeded headers | ||
+ | action " | ||
+ | |||
+ | ### mark as read in maildirs. this requires /bin/sh to be somewhat POSIXly | ||
+ | ### correct. ash, ksh, bash etc. will do; older bourne shells (like /bin/sh | ||
+ | ### on OpenSolaris) will not. You'll need to use {base, | ||
+ | action " | ||
+ | |||
+ | ### archiving action | ||
+ | action " | ||
+ | action " | ||
+ | |||
+ | ### handle mailinglists | ||
+ | |||
+ | ### path actions | ||
+ | #{{{ | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | #}}} | ||
+ | |||
+ | ### rewrite actions (some mailinglist add tags to their subjects...) | ||
+ | ### ' | ||
+ | #{{{ | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | action " | ||
+ | #}}} | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### accounts for spam-training | ||
+ | ### | ||
+ | ### | ||
+ | ### moves the mail to the appropriate folder | ||
+ | ### | ||
+ | ### | ||
+ | ### | ||
+ | ### to the folder it belongs to. | ||
+ | account " | ||
+ | account " | ||
+ | |||
+ | ### sometimes you want to test new things by providing mails on stdin | ||
+ | account " | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### Automatic archiving. | ||
+ | ### This is a nice idea, I shamelessly stole from NicM's config. | ||
+ | ### Mail is kept in Maildirs for 30 days. After that it is | ||
+ | ### | ||
+ | ### may by periodically removed (by cron for examples, or | ||
+ | ### by hand). This (again) uses an account that is disabled, | ||
+ | ### so it can be explicitly called by ' | ||
+ | account " | ||
+ | #{{{ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | #}}} | ||
+ | } | ||
+ | match account " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | match account " | ||
+ | |||
+ | ########################################################################### | ||
+ | |||
+ | ### handle mail | ||
+ | |||
+ | ### do catchall as early as possible. | ||
+ | match string " | ||
+ | |||
+ | ########## zblog messages ########## | ||
+ | ### mails to blog -at- bewatermyfriend -dot- org are meant for zblog. | ||
+ | match account " | ||
+ | match account " | ||
+ | |||
+ | ########## killfiling ########## | ||
+ | ### killfiling on From, From:, Reply-To: and Sender headers | ||
+ | ### If your killfile is rather large, this will slow down fdm | ||
+ | ### considerably. So do this only on people that really disturb you. | ||
+ | match pipe " | ||
+ | actions { " | ||
+ | |||
+ | ########## spam handling ########## | ||
+ | ### force message from stdin to spamfolder and train it as spam | ||
+ | match account " | ||
+ | match " | ||
+ | match all action " | ||
+ | match all action " | ||
+ | match " | ||
+ | match all action " | ||
+ | match " | ||
+ | match all action " | ||
+ | match " | ||
+ | match all action " | ||
+ | match " | ||
+ | match all action " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### train message from stdin as ham | ||
+ | match account " | ||
+ | match " | ||
+ | match all action " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### scan for spam | ||
+ | match not " | ||
+ | |||
+ | ### move messages marked as spam to spamfolder | ||
+ | match " | ||
+ | match " | ||
+ | |||
+ | ########## modifying headers ########## | ||
+ | ### add Lines: header if it is missing. | ||
+ | match not " | ||
+ | |||
+ | ### remove headers I don't care about | ||
+ | match " | ||
+ | |||
+ | ########## sorting ########## | ||
+ | ### debian- mailinglists and pts | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | |||
+ | ### openbsd- mailinglists | ||
+ | match " | ||
+ | |||
+ | ### grml mailinglists | ||
+ | match " | ||
+ | match string " | ||
+ | match string " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### zsh- mailinglists | ||
+ | match " | ||
+ | match string " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### perl related mailinglists | ||
+ | match " | ||
+ | match " | ||
+ | |||
+ | ### mutt- mailinglists | ||
+ | match " | ||
+ | match string " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### fvwm mailinglists | ||
+ | match " | ||
+ | match string " | ||
+ | match string " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### libetpan lists | ||
+ | match " | ||
+ | match all action " | ||
+ | } | ||
+ | |||
+ | ### other mailinglists | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | match " | ||
+ | |||
+ | ### match the rest | ||
+ | match all action " | ||
+ | </ |