How to Flags a User define messages and copy the message to a user defined folder ?
0 posts in topic
Flat View  Flat View

Posted By:   john_chan
Posted On:   Sunday, March 25, 2001 02:45 AM

I have set my message as below and tried to copy the message to a new foler, however it either copies all the messages to one folder or the other. Please help

I set my messages as below :

msg.setFlag(Flags.Flag.USER, true);

Folder orgFolder = messages[0].getFolder();

Flags flags=messages[0].getFlags();
Flags.Flag [] sf= flags.getSystemFlags();

for (int i=0; i
if (sf[i]==Flags.Flag.USER){
orgFolder.copyMessages(messages, logFolder);
orgFolder.copyMessages(messages, logFolder2);

About | Sitemap | Contact