diff options
-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 */ |