diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-28 20:07:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-28 20:07:16 +0000 |
commit | ed3bd0c5048cac6def24c3d70f3eaaf449a38a82 (patch) | |
tree | 7904f574165ac345b8e23b1de9cbdcf01a0095cb /pop2.c | |
parent | 09d6caaaecf34442bc5f6f1d74b7e2e6e11dc12f (diff) | |
download | fetchmail-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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) |