From 200d2e7f1f2a00ceccba0e088674496ec403a4c1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 2 Jul 2001 01:40:30 +0000 Subject: Ready to ship. svn path=/trunk/; revision=3389 --- odmr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'odmr.c') diff --git a/odmr.c b/odmr.c index 06f9437d..d08b13d0 100644 --- a/odmr.c +++ b/odmr.c @@ -182,7 +182,13 @@ static int odmr_getrange(int sock, struct query *ctl, const char *id, static int odmr_logout(int sock, struct query *ctl) /* send logout command */ { - return(gen_transact(sock, "QUIT")); + /* if we have a smtp_socket, then we've turned around and the + local smtp server is in control of the connection (so we don't + send QUIT) */ + if (ctl->smtp_socket == -1) + return(gen_transact(sock, "QUIT")); + else + return(PS_SUCCESS); } const static struct method odmr = -- cgit v1.2.3