diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-16 21:24:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-16 21:24:04 +0000 |
commit | 54f14b712e3e8f6007192dfdc2c94d6aec369946 (patch) | |
tree | 313e4aace654489633f8ecf24b96c83535f78720 /etrn.c | |
parent | cea04b20415638302216d8930c966ee6c6fc4575 (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 */ |