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 /pop3.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 'pop3.c')
-rw-r--r-- | pop3.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -443,6 +443,12 @@ static int pop3_delete(int sock, struct query *ctl, int number) return(gen_transact(sock, "DELE %d", number)); } +static int pop3_logout(int sock, struct query *ctl) +/* send logout command */ +{ + return(gen_transact(sock, "QUIT")); +} + const static struct method pop3 = { "POP3", /* Post Office Protocol v3 */ @@ -458,7 +464,7 @@ const static struct method pop3 = NULL, /* no way to fetch body alone */ NULL, /* no message trailer */ pop3_delete, /* how to delete a message */ - "QUIT", /* the POP3 exit command */ + pop3_logout, /* log out, we're done */ }; int doPOP3 (struct query *ctl) |