diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-07-02 01:40:30 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-07-02 01:40:30 +0000 |
commit | 200d2e7f1f2a00ceccba0e088674496ec403a4c1 (patch) | |
tree | 5bb9c5a672d7ce411e41cfd22e9b6f5c60e806f4 /odmr.c | |
parent | ee4b6d57d007e30d3feb7951a5bb704c88b40fe0 (diff) | |
download | fetchmail-200d2e7f1f2a00ceccba0e088674496ec403a4c1.tar.gz fetchmail-200d2e7f1f2a00ceccba0e088674496ec403a4c1.tar.bz2 fetchmail-200d2e7f1f2a00ceccba0e088674496ec403a4c1.zip |
Ready to ship.
svn path=/trunk/; revision=3389
Diffstat (limited to 'odmr.c')
-rw-r--r-- | odmr.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 = |