aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-28 20:07:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-28 20:07:16 +0000
commited3bd0c5048cac6def24c3d70f3eaaf449a38a82 (patch)
tree7904f574165ac345b8e23b1de9cbdcf01a0095cb /fetchmail.c
parent09d6caaaecf34442bc5f6f1d74b7e2e6e11dc12f (diff)
downloadfetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.tar.gz
fetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.tar.bz2
fetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.zip
Added --expunge option for Richard Kooidjman.
svn path=/trunk/; revision=1430
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 54dc45c6..c255530e 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -527,6 +527,7 @@ static int load_params(int argc, char **argv, int optind)
def_opts.remotename = user;
save_str(&def_opts.smtphunt, TRUE, fetchmailhost);
save_str(&def_opts.smtphunt, FALSE, "localhost");
+ def_opts.expunge = 1;
/* this builds the host list */
if (prc_parse_file(rcfile, !versioninfo) != 0)
@@ -928,7 +929,12 @@ void dump_params (struct query *ctl)
if (ctl->batchlimit > 0)
printf(" SMTP message batch limit is %d.\n", ctl->batchlimit);
else if (outlevel == O_VERBOSE)
- printf(" No SMTP message batch limit.\n");
+ printf(" No SMTP message batch limit (--batchlimit 0).\n");
+ if (ctl->server.protocol == P_IMAP)
+ if (ctl->expunge > 0)
+ printf(" Max deletions between expunges is %d (--expunge %d).\n", ctl->expunge, ctl->expunge);
+ else if (outlevel == O_VERBOSE)
+ printf(" No deletion limit between expunges (--expunge 0).\n");
if (ctl->mda)
printf(" Messages will be delivered with '%s.'\n", visbuf(ctl->mda));
else
@@ -979,7 +985,8 @@ void dump_params (struct query *ctl)
if (ctl->server.envelope == STRING_DISABLED)
printf(" Envelope-address routing is disabled\n");
else
- printf(" Envelope header is assumed to be: %s\n", ctl->server.envelope);
+ printf(" Envelope header is assumed to be: %s\n",
+ ctl->server.envelope ? ctl->server.envelope : "Received");
}
#ifdef linux
if (ctl->server.interface)