[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cobalt-developers] Deleting messages using POP3 component



Hi all,

I have the following code (approx):

  set pop3=Server.CreateObject("CHILI.POP3.1")
  pop3.Connect "myserver","myusername","mypassword"
  for each msg in pop3.Messages

   ' grab message
   ' parse contents
   ' save to db

  next
  pop3.Disconnect

The above works fine, I can access the messages and save the interesting
bits out to a database but I can't delete the messages I've just read.  I've
tried:

  pop3.Delete msg.MsgId

in my For...Next loop, and variations thereof, but to no avail.  Can someone
help?

Thanks in advance,



Dick