From 777b6d5a983ceed7d3ef7673718292cbf31f69a1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 13 Oct 1997 16:00:11 +0000 Subject: Fix ETRN mode. svn path=/trunk/; revision=1507 --- fetchmail.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'fetchmail.c') 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) -- cgit v1.2.3