diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-12-29 21:32:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-12-29 21:32:53 +0000 |
commit | 9bf5a31caebd148dcc3392a293c1484cf667c0e0 (patch) | |
tree | 65cd0fe72b5d3bfbe7df512af0a74a41e161ae06 /driver.c | |
parent | b1efaaf924a427677979ec4c2460fa54ce648e17 (diff) | |
download | fetchmail-9bf5a31caebd148dcc3392a293c1484cf667c0e0.tar.gz fetchmail-9bf5a31caebd148dcc3392a293c1484cf667c0e0.tar.bz2 fetchmail-9bf5a31caebd148dcc3392a293c1484cf667c0e0.zip |
Factor out messages.
svn path=/trunk/; revision=2696
Diffstat (limited to 'driver.c')
-rw-r--r-- | driver.c | 28 |
1 files changed, 14 insertions, 14 deletions
@@ -1510,23 +1510,23 @@ const int maxfetch; /* maximum number of messages to fetch */ if (timeoutcount > MAX_TIMEOUTS && !open_warning_by_mail(ctl, (struct msgblk *)NULL)) { +#define TIMEOUT_WARNING \ + "This could mean that your mailserver is stuck, or that your SMTP\r\n" \ + "server is wedged, or that your mailbox file on the server has been\r\n" \ + "corrupted by a server error. You can run `fetchmail -v -v' to\r\n" \ + "diagnose the problem.\r\n\r\n" \ + "Fetchmail won't poll this mailbox again until you restart it.\r\n" stuff_warning(ctl, _("Subject: fetchmail sees repeated timeouts\r\n")); stuff_warning(ctl, - _("Fetchmail saw more than %d timeouts while attempting to get mail from %s@%s.\n"), + _("Fetchmail saw more than %d timeouts while attempting to get mail from %s@%s.\r\n"), MAX_TIMEOUTS, ctl->remotename, ctl->server.truename); - stuff_warning(ctl, - _("This could mean that your mailserver is stuck, or that your SMTP listener")); - stuff_warning(ctl, - _("is wedged, or that your mailbox file on the server has been corrupted by")); - stuff_warning(ctl, - _("a server error. You can run `fetchmail -v -v' to diagnose the problem.")); - stuff_warning(ctl, - _("Fetchmail won't poll this mailbox again until you restart it.")); + stuff_warning(ctl, _(TIMEOUT_WARNING)); close_warning_by_mail(ctl, (struct msgblk *)NULL); ctl->wedged = TRUE; +#undef TIMEOUT_WARNING } ok = PS_ERROR; @@ -1694,16 +1694,15 @@ 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. */ + if (run.poll_interval + && ctl->authfailcount++ > MAX_AUTHFAILS + && !open_warning_by_mail(ctl, (struct msgblk *)NULL)) + { #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")); stuff_warning(ctl, @@ -1713,6 +1712,7 @@ const int maxfetch; /* maximum number of messages to fetch */ stuff_warning(ctl, _(LOGIN_ERROR)); close_warning_by_mail(ctl, (struct msgblk *)NULL); ctl->wedged = TRUE; +#undef LOGIN_ERROR } } goto cleanUp; |