aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-09-11 23:42:05 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-09-11 23:42:05 +0000
commit903f2bf037665afec0b0dd3124619d4c9798089c (patch)
treec304066061d7bd63b70589eab215fdecedb55b98 /fetchmail.c
parent1ccd1ef3797c85d2af2afa6489dede3d6654aa94 (diff)
downloadfetchmail-903f2bf037665afec0b0dd3124619d4c9798089c.tar.gz
fetchmail-903f2bf037665afec0b0dd3124619d4c9798089c.tar.bz2
fetchmail-903f2bf037665afec0b0dd3124619d4c9798089c.zip
Clean up some option processing.
svn path=/trunk/; revision=83
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c5
1 files changed, 5 insertions, 0 deletions
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)