Close
jGuru Forums
Posted By: Lonnie_Goad Posted On: Monday, August 13, 2001 12:26 PM
I am having problems setting a flag for messages I read. Below is some of the code I use. In my readMessages() method I use the following line of code: message[index].setFlag(Flags.Flag.FLAGGED, true); In my fetchMessages() method the code is as follows: //inside a for loop if(message[i].isSet(Flags.Flag.FLAGGED)) {System.out.println(i));//other code for what to do with flagged messages;} Once a message has been flagged in readMessages(), when I run the fetchMessages() I should get a print of which messages have been flagged but I get nothing. Can anyone shed some light on what I may be doing wrong?
Re: Having problems with flagging messages
Posted By: John_Zukowski Posted On: Monday, August 13, 2001 02:33 PM