how to delete the mail

  • Thread starter Thread starter Vaidas Gudas
  • Start date Start date
V

Vaidas Gudas

I has written the .net application, which read e-mail from pop3.
Now I want delete the mail in mail box. How to do that
 
Hello, Vaidas!

VG> I has written the .net application, which read e-mail from pop3.
VG> Now I want delete the mail in mail box. How to do that

I suppose that youre aquainted with RFC 1939, since you've implemented mail get.
So from RFC 1939:
To mark message as deleted
"DELE msg
Arguments:
a message-number (required) which may NOT refer to a
message marked as deleted
"

The example:
"Client: DELE 1"
Server may respond in the following way
"Server: +OK message 1 deleted"
or
"Server: -ERR message 1 already deleted"

For details, please visit ( http://www.ietf.org/rfc/rfc1939.txt )
Page 18

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
 
True but not enough

You must mark as Deleted the mail thanks to :
DELE msg

but it will be deleted ONLY after the QUIT command !
 
Back
Top