aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.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 /pop3.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 'pop3.c')
-rw-r--r--pop3.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/pop3.c b/pop3.c
index 2f1c2a65..d219f7d0 100644
--- a/pop3.c
+++ b/pop3.c
@@ -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)