summaryrefslogtreecommitdiff
path: root/src/pop3.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-05 02:33:05 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-05 02:33:05 +0000
commitc25680ee19e813f15f54b5abd43062bace295852 (patch)
tree24a5df3fabdad7c14f934973384098b8cc2717b4 /src/pop3.c
parent8520befe602e9b90d455342068a623f2cf89f631 (diff)
Initial working version
Diffstat (limited to 'src/pop3.c')
-rw-r--r--src/pop3.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pop3.c b/src/pop3.c
index 8fd2750..660283e 100644
--- a/src/pop3.c
+++ b/src/pop3.c
@@ -496,7 +496,15 @@ end:
POP3Status POP3Delete(int msg)
{
- return POP3_OK;
+ char buff[256];
+
+ sprintf(buff,"DELE %d",msg);
+ Send(buff,(const char *)NULL);
+
+ if (GetResponse(NULL))
+ return POP3_OK;
+ else
+ return POP3_BADDELETE;
}