|
本帖最后由 Qter 于 2020-1-27 16:10 编辑
readmsg.exe d:s:p:txu:v:l:aoc:f
-d
enum {
POP3_STORAGE = 0,
IMAP_STORAGE,
NNTP_STORAGE,
MBOX_STORAGE,
MH_STORAGE,
MAILDIR_STORAGE,
FEED_STORAGE
};
-t
enum {
CONNECTION_TYPE_PLAIN, /* when the connection is plain text */
CONNECTION_TYPE_STARTTLS, /* when the connection is first plain,
then, we want to switch to
TLS (secure connection) */
CONNECTION_TYPE_TRY_STARTTLS, /* the connection is first plain,
then, we will try to switch to TLS */
CONNECTION_TYPE_TLS, /* the connection is over TLS */
CONNECTION_TYPE_COMMAND, /* the connection is over a shell command */
CONNECTION_TYPE_COMMAND_STARTTLS, /* the connection is over a shell
command and STARTTLS will be used */
CONNECTION_TYPE_COMMAND_TRY_STARTTLS, /* the connection is over
a shell command and STARTTLS will
be tried */
CONNECTION_TYPE_COMMAND_TLS /* the connection is over a shell
command in TLS */
};
{"driver", 1, 0, 'd'},
{"server", 1, 0, 's'},
{"port", 1, 0, 'p'},
{"tls", 0, 0, 't'},
{"starttls", 0, 0, 'x'},
{"user", 1, 0, 'u'},
{"password", 1, 0, 'v'},
{"path", 1, 0, 'l'},
{"apop", 0, 0, 'a'},
{"oauth", 0, 0, 'o'},
{"cache", 1, 0, 'c'},
{"flags", 1, 0, 'f'},
{"debug-stream", 0, 0, 'D'},
static struct storage_name storage_tab[] = {
{POP3_STORAGE, "pop3"},
{IMAP_STORAGE, "imap"},
{NNTP_STORAGE, "nntp"},
{MBOX_STORAGE, "mbox"},
{MH_STORAGE, "mh"},
{MAILDIR_STORAGE, "maildir"},
{FEED_STORAGE, "feed"},
};
readmsg.exe -d imap -s imap.139.com -p 143 -u 15313159857@139.com -v 9857139i94 -l INBOX 2445 2446
蓝色为uid
|
|