diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-18 03:41:53 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-18 03:41:53 +0000 |
commit | cf6c6a28b0631a29085ceeca86c980c0a6e4022d (patch) | |
tree | aa10931caa577ef8f37d690f7f05dd970ab1ce83 /fetchmail.c | |
parent | c5cfa5bee8bb00850ef37062e68e542b02a87d6b (diff) | |
download | fetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.tar.gz fetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.tar.bz2 fetchmail-cf6c6a28b0631a29085ceeca86c980c0a6e4022d.zip |
Various minor bug fixes.
svn path=/trunk/; revision=2757
Diffstat (limited to 'fetchmail.c')
-rw-r--r-- | fetchmail.c | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c index c902976b..dbd95ba2 100644 --- a/fetchmail.c +++ b/fetchmail.c @@ -676,7 +676,49 @@ int main(int argc, char **argv) successes++; else if (!check_only && ((querystatus!=PS_NOMAIL) || (outlevel==O_DEBUG))) - report(stdout, _("Query status=%d\n"), querystatus); + switch(querystatus) + { + case PS_SUCCESS: + report(stdout, "Query status=SUCCESS\n"); break ; + case PS_NOMAIL: + report(stdout, "Query status=NOMAIL\n"); break ; + case PS_SOCKET: + report(stdout, "Query status=SOCKET\n"); break ; + case PS_AUTHFAIL: + report(stdout, "Query status=AUTHFAIL\n"); break ; + case PS_PROTOCOL: + report(stdout, "Query status=PROTOCOL\n"); break ; + case PS_SYNTAX: + report(stdout, "Query status=SYNTAX\n"); break ; + case PS_IOERR: + report(stdout, "Query status=IOERR\n"); break ; + case PS_ERROR: + report(stdout, "Query status=ERROR\n"); break ; + case PS_EXCLUDE: + report(stdout, "Query status=EXCLUDE\n"); break ; + case PS_LOCKBUSY: + report(stdout, "Query status=LOCKBUSY\n"); break ; + case PS_SMTP: + report(stdout, "Query status=SMTP\n"); break ; + case PS_DNS: + report(stdout, "Query status=DNS\n"); break ; + case PS_BSMTP: + report(stdout, "Query status=BSMTP\n"); break ; + case PS_MAXFETCH: + report(stdout, "Query status=MAXFETCH\n"); break ; + case PS_UNDEFINED: + report(stdout, "Query status=UNDEFINED\n"); break ; + case PS_TRANSIENT: + report(stdout, "Query status=TRANSIENT\n"); break ; + case PS_REFUSED: + report(stdout, "Query status=REFUSED\n"); break ; + case PS_RETAINED: + report(stdout, "Query status=RETAINED\n"); break ; + case PS_TRUNCATED: + report(stdout, "Query status=TRUNCATED\n"); break ; + default: + report(stdout, _("Query status=%d\n"), querystatus); break; + } #if (defined(linux) && !INET6_ENABLE) || defined (__FreeBSD__) if (ctl->server.monitor) |