aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-16 21:24:04 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-16 21:24:04 +0000
commit54f14b712e3e8f6007192dfdc2c94d6aec369946 (patch)
tree313e4aace654489633f8ecf24b96c83535f78720 /etrn.c
parentcea04b20415638302216d8930c966ee6c6fc4575 (diff)
downloadfetchmail-54f14b712e3e8f6007192dfdc2c94d6aec369946.tar.gz
fetchmail-54f14b712e3e8f6007192dfdc2c94d6aec369946.tar.bz2
fetchmail-54f14b712e3e8f6007192dfdc2c94d6aec369946.zip
Clean up the error status.
svn path=/trunk/; revision=1357
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/etrn.c b/etrn.c
index bafaa04e..758ab016 100644
--- a/etrn.c
+++ b/etrn.c
@@ -169,6 +169,8 @@ const static struct method etrn =
int doETRN (struct query *ctl)
/* retrieve messages using ETRN */
{
+ int status;
+
if (ctl->keep) {
fprintf(stderr, "Option --keep is not supported with ETRN\n");
return(PS_SYNTAX);
@@ -186,7 +188,11 @@ int doETRN (struct query *ctl)
return(PS_SYNTAX);
}
peek_capable = FALSE;
- return(do_protocol(ctl, &etrn));
+
+ status = do_protocol(ctl, &etrn);
+ if (status == PS_NOMAIL)
+ status = PS_SUCCESS;
+ return(status);
}
/* etrn.c ends here */