- 论坛徽章:
- 0
|
摘自 Fetchmail 手册:
Keyword/Option Summary
Here are the legal options. Keyword suffixes enclosed in square brack-
ets are optional. Those corresponding to command-line options are fol-
lowed by `-' and the appropriate option letter.
Here are the legal global options:
Keyword
Opt Function
-------------------------------------------------------------
set
daemon
Set a background poll interval in
seconds
set
postmaster
Give the name of the last-resort
mail recipient
set no
bouncemail Direct
error mail to postmaster
rather than sender
set no spambounce Send spam bounces
set
logfile
Name of a file to dump error and
status messages to
set
idfile
Name of the file to store UID
lists in
set
syslog
Do error logging through sys-
log(3).
set no
syslog
Turn off error logging through
syslog(3).
set
properties
String value is ignored by fetch-
mail (may be used by extension
scripts)
Here are the legal server options:
Keyword
Opt Function
------------------------------------------------------------
via
Specify DNS name of mailserver,
overriding poll name
proto[col]
-p Specify protocol (case insensi-
tive): POP2, POP3, IMAP, APOP,
KPOP
local[domains]
Specify domain(s) to be regarded
as local
port
-P Specify TCP/IP service port
auth[enticate]
Set authentication type (default
`any')
timeout
-t Server inactivity timeout in sec-
onds (default 300)
envelope
-E Specify envelope-address header
name
no
envelope
Disable looking for envelope
address
qvirtual
-Q Qmail virtual domain
prefix to
remove from user name
aka
Specify alternate DNS names of
mailserver
interface
-I specify IP interface(s) that must
be up for server poll to take
place
monitor
-M Specify IP address to monitor for
activity
plugin
Specify command through which to
make server connections.
plugout
Specify command through which to
make listener connections.
dns
Enable DNS lookup for multidrop
(default)
no
dns
Disable DNS lookup for multidrop
checkalias
Do comparison by IP address for
multidrop
no
checkalias
Do comparison by name for mul-
tidrop (default)
uidl
-U Force POP3 to use
client-side
UIDLs
no
uidl
Turn off POP3 use of client-side
UIDLs (default)
tracepolls
Add poll tracing information to
the Received header
interval
Only check this site every N poll
cycles; N is a numeric argument.
tracepolls
Add poll tracing information to
the Received header
netsec
Pass in IPsec security option
request.
principal
Set Kerberos principal (only use-
ful with imap and kerberos)
esmtpname
Set name for RFC2554 authentica-
tion to the ESMTP server.
esmtppassword
Set password for RFC2554 authenti-
cation to the ESMTP server.
Here are the legal user options:
Keyword
Opt Function
------------------------------------------------------------
user[name]
-u Set remote user name (local user
name if name followed by `here')
is
Connect local and remote user
names
to
Connect local and remote user
names
pass[word]
Specify remote account password
ssl
Connect to server over the speci-
fied base protocol using SSL
encryption
no
ssl
Disable SSL encryption
sslcert
Specify file for client side pub-
lic SSL certificate
sslkey
Specify file for client side pri-
vate SSL key
sslproto
Force ssl protocol for connection
folder
-r Specify remote folder to query
smtphost
-S Specify smtp host(s) to forward to
fetchdomains
Specify domains for which mail
should be fetched
smtpaddress
-D Specify the domain to be put in
RCPT TO lines
smtpname
Specify the user and domain to be
put in RCPT TO lines
antispam
-Z Specify what SMTP
returns are
interpreted as spam-policy blocks
mda
-m Specify MDA for local delivery
bsmtp
-o Specify BSMTP batch file to append
to
preconnect
Command to be executed before each
connection
postconnect
Command to be executed after each
connection
keep
-k Don't delete seen messages from
server
flush
-F Flush all seen messages
before
querying
fetchall
-a Fetch all messages whether seen or
not
rewrite
Rewrite destination addresses for
reply (default)
stripcr
Strip carriage returns from ends
of lines
forcecr
Force carriage returns at ends of
lines
pass8bits
Force BODY=8BITMIME to ESMTP lis-
tener
dropstatus
Strip Status and X-Mozilla-Status
lines out of incoming mail
dropdelivered
Strip Delivered-To lines out of
incoming mail
mimedecode
Convert quoted-printable to 8-bit
in MIME messages
idle
Idle waiting for new messages
after each poll (IMAP only)
no
keep
-K Delete seen messages from server
(default)
no
flush
Don't flush all seen messages
before querying (default)
no
fetchall
Retrieve only new
messages
(default)
no
rewrite
Don't rewrite headers
no
stripcr
Don't strip carriage returns
(default)
no
forcecr
Don't force carriage returns at
EOL (default)
no
pass8bits
Don't force BODY=8BITMIME to ESMTP
listener (default)
no
dropstatus
Don't drop Status
headers
(default)
no
dropdelivered
Don't drop Delivered-To headers
(default)
no
mimedecode
Don't convert quoted-printable to
8-bit in MIME messages (default)
no
idle
Don't idle waiting for new mes-
sages after each poll (IMAP only)
limit
-l Set message size limit
warnings
-w Set message size warning interval
batchlimit
-b Max # messages to forward in sin-
gle connect
fetchlimit
-B Max # messages to fetch in single
connect
fetchsizelimit
Max # message sizes to fetch in
single transaction
fastuidl
Use binary search for first unseen
message (POP3 only)
expunge
-e Perform an expunge on every #th
message (IMAP and POP3 only)
properties
String value is ignored by fetch-
mail (may be used by extension
scripts)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/15482/showart_102647.html |
|