Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using Winsock control for POP3 client

Status
Not open for further replies.

msc0tt

IS-IT--Management
Jun 25, 2002
281
CA
My custom POP3 client uses the Winsock control, and has a (not so) funny bug. Messages are not getting deleted from the server.
The client issues the 'DELE n', and gets the +OK response. When all done, it issues the 'QUIT' command, then waits until the winsock.State property DOES NOT equal sckOpen, like such:

Winsock1.SendData "QUIT" & vbCrLf
Do While (Winsock1.State = sckOpen)
DoEvents
Loop
End If

In my Winsock1_DataArrival() routine, I am retrieving the response with 'Winsock1.GetData strData', but not actually using it. My idea is to wait until the server closes the connection, which the client can detect with the .State property.

If I telnet to my mailserver and issue the commands manually, it works exactly as expected.

All I can think is that the client is *breaking* the connection before the server is done, in which case the server may abort writing the updated mailbox file.

Any insight appreciated.
-mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top