diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-12-29 21:21:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-12-29 21:21:53 +0000 |
commit | b1efaaf924a427677979ec4c2460fa54ce648e17 (patch) | |
tree | 13d9ea3aa4618eedff30e6072ee656fec9fa7406 /driver.c | |
parent | 8cc0aaca364b59bc5ffe7ea99e54361a5e8627fa (diff) | |
download | fetchmail-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.c | 19 |
1 files changed, 11 insertions, 8 deletions
@@ -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; } |