[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Deleting messages using POP3 component
- Subject: [cobalt-developers] Deleting messages using POP3 component
- From: "Distortal" <info@xxxxxxxxxxxxx>
- Date: Sat Jan 25 16:35:01 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
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