aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-12-09 04:17:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-12-09 04:17:32 +0000
commite85820eaf58dac8bd6494336991dcdc91f6ccf45 (patch)
tree7618dfb835bc4c51d2303facabe175df59052d9a /fetchmail.c
parent0ad6312ee5da744b9d38ae8153d15dbb8cb6c4af (diff)
downloadfetchmail-e85820eaf58dac8bd6494336991dcdc91f6ccf45.tar.gz
fetchmail-e85820eaf58dac8bd6494336991dcdc91f6ccf45.tar.bz2
fetchmail-e85820eaf58dac8bd6494336991dcdc91f6ccf45.zip
Added the `envelope' option.
svn path=/trunk/; revision=615
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 9d64f963..617090e0 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -565,6 +565,10 @@ static int load_params(int argc, char **argv, int optind)
ctl->lead_server = ctl;
no_new_server:;
+ /* plug in the semi-standard way of indicating a mail address */
+ if (ctl->envelope == (char *)NULL)
+ ctl->envelope = "X-Envelope-To:";
+
/* sanity checks */
if (ctl->port < 0)
{
@@ -605,7 +609,7 @@ static int load_params(int argc, char **argv, int optind)
initialize_saved_lists(querylist, idfile);
/* if cmd_batchlimit was explicitly set, use it to override batchlimit */
- if (cmd_batchlimit > -1)
+ if (cmd_batchlimit > -1)
batchlimit = cmd_batchlimit;
/* if cmd_logfile was explicitly set, use it to override logfile */
@@ -787,12 +791,15 @@ void dump_params (struct query *ctl)
{
for (idp = ctl->localnames; idp; idp = idp->next)
if (idp->val.id2)
- fprintf(stderr, "\t%s -> %s\n", idp->id, idp->val.id2);
+ printf("\t%s -> %s\n", idp->id, idp->val.id2);
else
- fprintf(stderr, "\t%s\n", idp->id);
+ printf("\t%s\n", idp->id);
if (ctl->wildcard)
- fputs("*\n", stderr);
+ fputs("*\n", stdout);
}
+
+ if (count > 1)
+ printf(" Envelope header is assumed to be: %s\n", ctl->envelope);
}
if (ctl->protocol > P_POP2)