diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-11-10 01:20:42 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-11-10 01:20:42 +0000 |
commit | 49fcd4b33bea7a4afc515dfbcac4d49a8e22196a (patch) | |
tree | b4fc660a817e25702d40f1a088c207602ef9c184 | |
parent | b538653d865d6fdd45d192a8fcdf652d5f7a7b48 (diff) | |
download | fetchmail-49fcd4b33bea7a4afc515dfbcac4d49a8e22196a.tar.gz fetchmail-49fcd4b33bea7a4afc515dfbcac4d49a8e22196a.tar.bz2 fetchmail-49fcd4b33bea7a4afc515dfbcac4d49a8e22196a.zip |
Revise some error messages so they are less confusing. Sunil Shetye.
svn path=/trunk/; revision=4401
-rw-r--r-- | NEWS | 1 | ||||
-rw-r--r-- | driver.c | 13 | ||||
-rw-r--r-- | etrn.c | 2 | ||||
-rw-r--r-- | odmr.c | 2 | ||||
-rw-r--r-- | pop3.c | 2 |
5 files changed, 11 insertions, 9 deletions
@@ -273,6 +273,7 @@ fetchmail 6.3.0 (not yet released officially): if we cannot qualify our own hostname, so we aren't losing the bounce. Instead, pass the buck on to the SMTP server and use our own unqualified hostname. Matthias Andree +* Revise some error messages so they are less confusing. Sunil Shetye. # INTERNAL CHANGES * Switched to automake. Matthias Andree. @@ -1510,13 +1510,14 @@ is restored.")); break; } if (msg) { - const char *stem; - - if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT) - stem = GT_("%s error while delivering to SMTP host %s\n"); + if (phase == FORWARDING_WAIT || phase == LISTENER_WAIT + || err == PS_SMTP) + report(stderr, GT_("%s error while fetching from %s@%s and delivering to SMTP host %s\n"), + msg, ctl->remotename, ctl->server.pollname, + ctl->smtphost ? ctl->smtphost : GT_("unknown")); else - stem = GT_("%s error while fetching from %s\n"); - report(stderr, stem, msg, ctl->server.pollname); + report(stderr, GT_("%s error while fetching from %s@%s\n"), + msg, ctl->remotename, ctl->server.pollname); } closeUp: @@ -156,7 +156,7 @@ int doETRN (struct query *ctl) return(PS_SYNTAX); } if (ctl->mailboxes->id) { - fprintf(stderr, GT_("Option --remote is not supported with ETRN\n")); + fprintf(stderr, GT_("Option --folder is not supported with ETRN\n")); return(PS_SYNTAX); } if (check_only) { @@ -245,7 +245,7 @@ int doODMR (struct query *ctl) return(PS_SYNTAX); } if (ctl->mailboxes->id) { - fprintf(stderr, GT_("Option --remote is not supported with ODMR\n")); + fprintf(stderr, GT_("Option --folder is not supported with ODMR\n")); return(PS_SYNTAX); } if (check_only) { @@ -1273,7 +1273,7 @@ int doPOP3 (struct query *ctl) { #ifndef MBOX if (ctl->mailboxes->id) { - fprintf(stderr,GT_("Option --remote is not supported with POP3\n")); + fprintf(stderr,GT_("Option --folder is not supported with POP3\n")); return(PS_SYNTAX); } #endif /* MBOX */ |