From 54f14b712e3e8f6007192dfdc2c94d6aec369946 Mon Sep 17 00:00:00 2001
From: "Eric S. Raymond" <esr@thyrsus.com>
Date: Tue, 16 Sep 1997 21:24:04 +0000
Subject: Clean up the error status.

svn path=/trunk/; revision=1357
---
 etrn.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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 */
-- 
cgit v1.2.3