| FDM(1) | General Commands Manual | FDM(1) |
NAME
fdm — fetch and
deliver mail
SYNOPSIS
fdm |
[-hklmnqv]
[-a account]
[-D name=value]
[-f conffile]
[-u user]
[-x account]
[fetch | poll | cache] |
DESCRIPTION
The fdm program fetches mail from a POP3
or IMAP server or from stdin and delivers it based
on a ruleset in the configuration file.
The options are as follows:
-aname- Process only the specified account. This option may appear multiple times. The account name may include shell glob characters to match multiple accounts.
-Dname=value- This option defines a macro for use when parsing the configuration file.
The macro name must be prefixed with
$or%to specify a string or numeric macro. This option may appear multiple times. -fconffile- Specify the configuration file location. Default is ~/.fdm.conf, or /etc/fdm.conf if that doesn't exist.
-h- Look at the
HOMEenvironment variable to ascertain the user's home directory. -k- Keep all mail after delivery, regardless of whether it matches a
dropaction. Note that mails kept in this way will be refetched byfdmif it is run again on the same account. -l- Log using syslog(3) rather than
to
stderr. -m- Ignore the lock file and run regardless of other instances of
fdm. -n- Do not process any accounts, just verify the configuration file syntax and exit.
-q- Quiet mode. Only print errors.
-uuser- Specify the default user for delivery. This overrides the
default-useroption in the configuration file. -v- Request verbose logging. This option may be specified multiple times.
-vvwill print information on configuration (useful with-n).-vvvvduplicates all traffic to and from remote servers tostdout. This feature is disabled when using the-lflag. -xname- Exclude the named account. Multiple
-xoptions may be specified. As with-a, shell glob characters may be used. fetch|poll|cache- The
fetchcommand instructsfdmto fetch and deliver messages. Thepollcommand polls the accounts in the configuration file and reports a message count for each.cacheallowsfdmcache files to be manipulated: see the next section.
CACHE COMMANDS
The following cache manipulation commands are supported:
cacheaddpath stringcacheremovepath string- Add or remove string as a key in the cache at path.
cachelist[path]- List the number of keys in the specified cache, or if path is omitted, in all caches declared in the configuration file.
cachedumppath- Dump the contents of the cache path to
stdout. Each key is printed followed by a space and the timestamp as Unix time. cacheclearpath- Delete all keys from the cache at path.
FILES
- ~/.fdm.conf
- default
fdmconfiguration file - /etc/fdm.conf
- default system-wide configuration file
- ~/.fdm.lock
- default lock file
- /var/db/fdm.lock
- lock file for root user
SEE ALSO
AUTHORS
Nicholas Marriott <nicholas.marriott@gmail.com>
| December 22, 2008 | Linux 6.10.10-arch1-1 |