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 /etrn.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 'etrn.c')
-rw-r--r-- | etrn.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -105,6 +105,12 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp, return(0); } +static int etrn_logout(int sock, struct query *ctl) +/* send logout command */ +{ + return(gen_transact(sock, "QUIT")); +} + const static struct method etrn = { "ETRN", /* ESMTP ETRN extension */ @@ -120,7 +126,7 @@ const static struct method etrn = NULL, /* no way to fetch body */ NULL, /* no message trailer */ NULL, /* how to delete a message */ - "QUIT", /* the ETRN exit command */ + etrn_logout, /* log out, we're done */ }; int doETRN (struct query *ctl) |