aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-01 17:00:09 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-01 17:00:09 +0000
commitee4b6d57d007e30d3feb7951a5bb704c88b40fe0 (patch)
tree2bc1d5033d50383f44cd49a0697850aed8b5f81d /fetchmail.c
parentd9a79d4bc51b408cd3de5161fa318c7140ef4369 (diff)
downloadfetchmail-ee4b6d57d007e30d3feb7951a5bb704c88b40fe0.tar.gz
fetchmail-ee4b6d57d007e30d3feb7951a5bb704c88b40fe0.tar.bz2
fetchmail-ee4b6d57d007e30d3feb7951a5bb704c88b40fe0.zip
ODMR fixes.
svn path=/trunk/; revision=3388
Diffstat (limited to 'fetchmail.c')
-rw-r--r--fetchmail.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 233a36d1..37fe3e1c 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -1300,7 +1300,12 @@ static void terminate_poll(int sig)
for (ctl = querylist; ctl; ctl = ctl->next)
if (ctl->smtp_socket != -1)
{
- SMTP_quit(ctl->smtp_socket);
+ /*
+ * Don't send QUIT for ODMR case because we're acting
+ * as a proxy between the SMTP server and client.
+ */
+ if (ctl->server.protocol != P_ODMR)
+ SMTP_quit(ctl->smtp_socket);
SockClose(ctl->smtp_socket);
ctl->smtp_socket = -1;
}