E
Edwinah63
Hi everyone,
I would like some code to move a SINGLE email message from the inbox
to another one.
I have code to move a group of them:
folder.copyMessage(messages, SomeOtherFolder);
but what I would like to do is:
folder.copyMessage(messages, SomeOtherFolder);
the idea being that as I iterate through each message, I can file them
away in the appropriate folder.
code snippet:
//logon to pop3 server
//connect to store
//open inbox folder
Message messages[] = inboxFolder.getMessages();
for (int i=0, n=messages.length; i<n; i++)
{
//do some code to process subject line, body, sender etc
//save message body and any attachments to database
//then move it to the correct folder
if (SaveFlag)
//move this message to the SaveSuccessful folder
else
//move it to SaveFailed folder
}
//close everything and clean up
Any and all help appreciated.
Edwinah63
(BTW searching google for this info yesterday returned an error that I
was trying to hack the system!)
I would like some code to move a SINGLE email message from the inbox
to another one.
I have code to move a group of them:
folder.copyMessage(messages, SomeOtherFolder);
but what I would like to do is:
folder.copyMessage(messages, SomeOtherFolder);
the idea being that as I iterate through each message, I can file them
away in the appropriate folder.
code snippet:
//logon to pop3 server
//connect to store
//open inbox folder
Message messages[] = inboxFolder.getMessages();
for (int i=0, n=messages.length; i<n; i++)
{
//do some code to process subject line, body, sender etc
//save message body and any attachments to database
//then move it to the correct folder
if (SaveFlag)
//move this message to the SaveSuccessful folder
else
//move it to SaveFailed folder
}
//close everything and clean up
Any and all help appreciated.
Edwinah63
(BTW searching google for this info yesterday returned an error that I
was trying to hack the system!)