aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-28 20:07:16 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-28 20:07:16 +0000
commited3bd0c5048cac6def24c3d70f3eaaf449a38a82 (patch)
tree7904f574165ac345b8e23b1de9cbdcf01a0095cb /pop2.c
parent09d6caaaecf34442bc5f6f1d74b7e2e6e11dc12f (diff)
downloadfetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.tar.gz
fetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.tar.bz2
fetchmail-ed3bd0c5048cac6def24c3d70f3eaaf449a38a82.zip
Added --expunge option for Richard Kooidjman.
svn path=/trunk/; revision=1430
Diffstat (limited to 'pop2.c')
-rw-r--r--pop2.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pop2.c b/pop2.c
index c3a4b650..db34cc32 100644
--- a/pop2.c
+++ b/pop2.c
@@ -114,6 +114,12 @@ static int pop2_trail(int sock, struct query *ctl, int number)
return(gen_transact(sock, ctl->keep ? "ACKS" : "ACKD"));
}
+static int pop2_logout(int sock, struct query *ctl)
+/* send logout command */
+{
+ return(gen_transact(sock, "QUIT"));
+}
+
const static struct method pop2 =
{
"POP2", /* Post Office Protocol v2 */
@@ -129,7 +135,7 @@ const static struct method pop2 =
NULL, /* no way to fetch body alone */
pop2_trail, /* eat message trailer */
NULL, /* no POP2 delete method */
- "QUIT", /* the POP2 exit command */
+ pop2_logout, /* log out, we're done */
};
int doPOP2 (struct query *ctl)