diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-13 16:00:11 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-13 16:00:11 +0000 |
commit | 777b6d5a983ceed7d3ef7673718292cbf31f69a1 (patch) | |
tree | 248fd868109648a379ff5d2813fd6737868f9c17 /fetchmail.c | |
parent | 673425dce38fefbec673686b7284afd1db6753f8 (diff) | |
download | fetchmail-777b6d5a983ceed7d3ef7673718292cbf31f69a1.tar.gz fetchmail-777b6d5a983ceed7d3ef7673718292cbf31f69a1.tar.bz2 fetchmail-777b6d5a983ceed7d3ef7673718292cbf31f69a1.zip |
Fix ETRN mode.
svn path=/trunk/; revision=1507
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fetchmail.c b/fetchmail.c index 4e346a77..f70d2d71 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -565,7 +565,7 @@ static int load_params(int argc, char **argv, int optind) def_opts.server.protocol = P_AUTO; def_opts.server.timeout = CLIENT_TIMEOUT; def_opts.remotename = user; - save_str(&def_opts.smtphunt, TRUE, fetchmailhost); + save_str(&def_opts.smtphunt, FALSE, fetchmailhost); save_str(&def_opts.smtphunt, FALSE, "localhost"); def_opts.expunge = 1; @@ -991,7 +991,12 @@ void dump_params (struct query *ctl) printf(" Messages will be SMTP-forwarded to:"); for (idp = ctl->smtphunt; idp; idp = idp->next) - printf(" %s", idp->id); + if (ctl->server.protocol != P_ETRN || idp->val.num) + { + printf(" %s", idp->id); + if (!idp->val.num) + printf(" (default)"); + } printf("\n"); } if (ctl->preconnect) |