From 903f2bf037665afec0b0dd3124619d4c9798089c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 11 Sep 1996 23:42:05 +0000 Subject: Clean up some option processing. svn path=/trunk/; revision=83 --- fetchmail.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fetchmail.c') diff --git a/fetchmail.c b/fetchmail.c index 872e22e8..1f424374 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -392,6 +392,9 @@ struct hostrec *queryctl; switch(queryctl->output) { + case TO_SMTP: + printf(" Messages will be SMTP-forwarded to '%s'\n", queryctl->smtphost); + break; case TO_FOLDER: printf(" Messages will be appended to '%s'\n", queryctl->userfolder); break; @@ -409,6 +412,8 @@ struct hostrec *queryctl; } if (outlevel == O_VERBOSE) { + if (queryctl->smtphost[0] != '\0' && queryctl->output != TO_SMTP) + printf(" (SMTP host would have been '%s')\n", queryctl->smtphost); if (queryctl->output != TO_FOLDER) printf(" (Mail folder would have been '%s')\n", queryctl->userfolder); if (queryctl->output != TO_MDA) -- cgit v1.2.3