aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-12-29 21:21:53 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-12-29 21:21:53 +0000
commitb1efaaf924a427677979ec4c2460fa54ce648e17 (patch)
tree13d9ea3aa4618eedff30e6072ee656fec9fa7406 /driver.c
parent8cc0aaca364b59bc5ffe7ea99e54361a5e8627fa (diff)
downloadfetchmail-b1efaaf924a427677979ec4c2460fa54ce648e17.tar.gz
fetchmail-b1efaaf924a427677979ec4c2460fa54ce648e17.tar.bz2
fetchmail-b1efaaf924a427677979ec4c2460fa54ce648e17.zip
Better login-error warning.
svn path=/trunk/; revision=2695
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/driver.c b/driver.c
index 1623f4da..d29146aa 100644
--- a/driver.c
+++ b/driver.c
@@ -1694,20 +1694,23 @@ const int maxfetch; /* maximum number of messages to fetch */
* failure once it looks like this isn't a fluke
* due to the server being temporarily inaccessible.
*/
+#define LOGIN_ERROR \
+ "The attempt to get authorization failed.\r\n" \
+ "This probably means your password is invalid, but POP3 servers have\r\n" \
+ "other failure modes that fetchmail cannot distinguish from this\r\n" \
+ "because they don't send useful error messages on login failure.\r\n"
+
if (run.poll_interval
&& ctl->authfailcount++ > MAX_AUTHFAILS
&& !open_warning_by_mail(ctl, (struct msgblk *)NULL))
{
stuff_warning(ctl,
- _("Subject: fetchmail authentication failed\r\n"));
+ _("Subject: fetchmail authentication failed\r\n"));
stuff_warning(ctl,
- _("Fetchmail could not get mail from %s@%s."),
- ctl->remotename,
- ctl->server.truename);
- stuff_warning(ctl,
- _("The attempt to get authorization failed."));
- stuff_warning(ctl,
- _("This probably means your password is invalid."));
+ _("Fetchmail could not get mail from %s@%s.\r\n"),
+ ctl->remotename,
+ ctl->server.truename);
+ stuff_warning(ctl, _(LOGIN_ERROR));
close_warning_by_mail(ctl, (struct msgblk *)NULL);
ctl->wedged = TRUE;
}