aboutsummaryrefslogtreecommitdiffstats
path: root/pop2.c
diff options
context:
space:
mode:
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)