Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Deleting a mail: why i have to set the flag to true for 2 times?

843836May 3 2005
Hi all

I'm learning how to handle mails with JSP. I got the following code, which is quite clear to me:
...
				Flags flagMessage = new Flags(Flags.Flag.DELETED);
				msgFolder.setFlags(a,a,flagMessage,true);
				
				msgFolder.close(true);
...
the only question is: why do i have to set the flag to override the chosen falgs 2 times to true? i have to do it in setFlags() and in close()! why that? what's the point behind that?
sorry, i'm still a beginner. :) thanks for help!
Josh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2005
Added on May 3 2005
0 comments
79 views