aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-04-16 18:18:19 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-04-16 18:18:19 +0000
commitb0ff20aff417c24ad990cf1b4901990f1665ceb9 (patch)
tree18d44deebd4429b22e1d3f0fc68ce21947e4e3e5
parentf2eff57a03361f7f690cebf620b1632736603369 (diff)
downloadfetchmail-b0ff20aff417c24ad990cf1b4901990f1665ceb9.tar.gz
fetchmail-b0ff20aff417c24ad990cf1b4901990f1665ceb9.tar.bz2
fetchmail-b0ff20aff417c24ad990cf1b4901990f1665ceb9.zip
Correct return status,
svn path=/trunk/; revision=958
-rw-r--r--driver.c2
-rw-r--r--fetchmail.man3
2 files changed, 3 insertions, 2 deletions
diff --git a/driver.c b/driver.c
index 744f16e3..753b90ec 100644
--- a/driver.c
+++ b/driver.c
@@ -1492,7 +1492,7 @@ const struct method *proto; /* protocol method table */
ok = gen_transact(sockfp, protocol->exit_cmd);
if (ok == 0)
- ok = PS_SUCCESS;
+ ok = (fetches > 0) ? PS_SUCCESS : PS_NOMAIL;
set_timeout(0);
fclose(sockfp);
goto closeUp;
diff --git a/fetchmail.man b/fetchmail.man
index b5608919..72b9bb04 100644
--- a/fetchmail.man
+++ b/fetchmail.man
@@ -967,7 +967,8 @@ are as follows:
.IP 0
One or more messages were successfully retrieved.
.IP 1
-There was no mail awaiting retrieval.
+There was no mail awaiting retrieval. (There may have been old mail still
+on the server but not selected for retrieval.)
.IP 2
An error was encountered when attempting to open a socket for the POP
connection. If you don't know what a socket is, don't worry about it --