FDM.CONF(5) File Formats Manual FDM.CONF(5) (NAME) fdm.conf - fdm (DESCRIPTION) fdm(1) . (regexp) . . ( continue ) . : `#' . (double quotes) . ( ) (escape) . - (double-escaping) . . (OPTIONS) set . : maximum-size size . ( ) . `K' `M' `G' . . delete-oversized fdm(1) maximum-size . (abort) fdm(1) . fdm(1) ( queue-high ) queue-high fdm(1) . queue-high number fdm(1) . fdm(1) . queue-low . queue-low number queue-high . ignore-errors fdm.conf . allow-multiple fdm(1) . lock-file path . ~/.fdm.lock /var/db/fdm.lock . lock-timeout time fdm.conf . lock-wait fdm.conf lock-timeout lock-file . command-user user exec pipe . fdm . default-user user fdm(1) . -u . . lookup-order location ... . passwd passwd(5) courier Courier authlib ( ). lock-types type ... mbox . fcntl flock dotlock. flock fcntl . flock . proxy url fdm(1) url . HTTP SOCKS5 ( http://host[:port] socks://[user:pass@]host[:port]). HTTP . unmatched-mail drop | keep fdm(1) ( continue ) . drop keep . . purge-after count purge-after fdm(1) count (purge) ( ). . no-received fdm(1) `Received' . no-create fdm(1) maildir mbox . file-umask user | umask umask(2) . user umask fdm(1) umask (octal) . 077 . file-group user | group fdm(1) . group gid . user fdm(1) . timeout time . . verify-certificates fdm(1) SSL SSL . (INCLUDING FILES) include : include path . (MACROS) : $name = string %name = number $ % . . ( $ %) {} : "abc ${mymacro} %{anothermacro} def" ifdef ifndef endif . ifdef ifndef . (SHELL COMMANDS) $() %() . . . (ACCOUNTS) account fdm(1) . : account name [users] [disabled] type [args] [keep] name . users : user user | users { user ... } . ( set default-user) . . fdm(1) . disabled fdm(1) -a . keep ( ) drop . : stdin stdin (pipe) . sendmail(8) fdm(1) . pop3 server host [port port] [user user] [pass pass] [only] [no-apop] [no-uidl] [starttls] [insecure] pop3s server host [port port] [userpass] [only] [no-apop] [no-verify] [no-uidl] [insecure] POP3 POP3S . userpass : [user user] [pass pass] host user pass . fdm(1) ~/.netrc ( ftp(1) ). (port) services(5) . ( POP3 POP3S) . only : [new-only | old-only] cache path new-only old-only : . POP3 . no-apop fdm(1) APOP POP3 no-verify fdm(1) SSL . no-uidl fdm(1) UIDL . POP3 . starttls STARTTLS . insecure SSLv2 SSLv3 TLS1.0 . pop3 pipe command [userpass] [only] [no-apop] POP3 command (pipe) ssh(1). stderr . POP3 ~/.netrc . imap server host [port port] [userpass] [folder name] [only] [no-cram-md5] [no-plain] [no-login] [starttls] [insecure] [oauthbearer] [xoauth2] imap server host [port port] [userpass] [folders] { name ... } [only] imaps server host [port port] [userpass] [folders] [only] [no-verify] [no-cram-md5] [no-plain] [no-login] [insecure] [oauthbearer] [xoauth2] IMAP IMAPS . POP3 POP3S folders ( inbox ). : folder name | folders { name ... } IMAP IMAPS . IMAP only new-only old-only - . no-cram-md5 no-plain no-login . CRAM-MD5 PLAIN LOGIN . starttls STARTTLS . insecure SSLv2 SSLv3 TLS1.0 . oauthbearer OAuth 2.0 . imap pipe command [userpass] [folders] [only] pop3 pipe IMAP command . user pass IMAP - ~/.netrc . IMAP . maildir path maildirs { path ... } fdm(1) maildir maildir . fdm(1) maildir ( ) maildir mbox . maildir maildir (basename) . mbox path mboxes { path ... } maildir maildirs fdm(1) mbox mbox . mbox mbox mbox . nntp server host [port port] [userpass] group group cache cache nntp server host [port port] [userpass] groups { group ... } cache cache nntps server host [port port] [userpass] group group cache cache nntps server host [port port] [userpass] groups { group ... } cache cache NNTP. . message-id . fdm(1) . keep NNTP - . (TAGGING) fdm(1) / . tag . . %[] : abc%[account]def %[hour]:%[minute]:%[second] . "abc%[nonexistent]def" "abcdef" . : account (%a) . home (%h) . uid (%n) (uid) . action (%t) . user (%u) . hour (%H) (-). minute (%M) (-). second (%S) (-). day (%d) (-). month (%m) (-). year (%y) . year2 . dayofweek (%W) (- ). dayofyear (%Y) (-). quarter (%Q) / (-). rfc822date RFC822. mail_hour . mail_minute . mail_second . mail_day . mail_month . mail_year . mail_year2 . mail_dayofweek . mail_dayofyear . mail_quarter / (-) . mail_rfc822date RFC822. lines . body_lines . header_lines . message_id (message id) ( ). hostname . %% % %0 %9 . (CACHES) fdm(1) . fdm(1) . cache : cache path [expire age] path . expire . age : seconds hours minutes days months years. . add-to-cache remove-from-cache in-cache . (ACTIONS) action . ( ) . : action name [users] action action name [users] { action ... } name . users . . action . . drop . keep . tag string [value value] string value tagged string . maildir path maildir path. maildir no-create . maildir mail_file . mbox path [compress] mbox path. compress fdm(1) `.gz' path gzip(1) . mbox no-create . mbox mbox_file mbox . exec command command. pipe command command. exec pipe . write path path. append path path. smtp server host [port port] [from from] [to to] SMTP . from to MAIL FROM RCPT TO . . lmtp server path | host [port port] [from from] [to to] LMTP . path . port . from to MAIL FROM RCPT TO . . rewrite command command . rewrite : action "cat" pipe "cat" action "rewrite" rewrite "sed 's/bob/fred/g'" # match all action "rewrite" continue # match all action "cat" add-header name value value name value. remove-header name remove-headers { name ... } fnmatch(3) name. stdout stdout. add-to-cache path key key key path . key . remove-from-cache path key key key path . action name . . (RULES) match . : match condition [and | or condition ...] [users] actions [continue] condition : all . matched continue . unmatched matched: . account name | accounts { name ... } . (glob wildcards) -a -x . tagged string string . [case] regexp [in headers | in body] . in headers in body . case . exec command [user user] returns (return code, stdout regexp) pipe command [user user] returns (return code, [case] stdout regexp) command . return code stdout regexp stdout . . pipe stdin . fdm(1) ( ) . size < number size > number number. string string to [case] regexp string regexp. age < time age > time age (>) (<) . seconds hours minutes days months years . in-cache path key key key path (true) . attachment count < number attachment count > number attachment count == number attachment count != number number . attachment total-size < size attachment total-size > size size . attachment any-size < size attachment any-size > size size . attachment any-type string attachment any-name string MIME string . fnmatch(3) . and or . . not . users action . . actions . : action name | actions { name ... } ( ) : action action action { action ... } action ACTIONS . . continue . fdm(1) . (NESTED RULES) : match condition [and | or condition ...] { match ... } . . matched unmatched . (FILES) ~/.fdm.conf fdm.conf /etc/fdm.conf ~/.fdm.lock /var/db/fdm.lock (root) (SEE ALSO) fdm(1), re_format(7) (AUTHORS) Nicholas Marriott Linux 6.12.107+deb13-amd64 August 21, 2006 Linux 6.12.107+deb13-amd64