How do I find out the IMAP rights I have on a folder?

John Zukowski

This is specific to the IMAP provider. For Sun's IMAP provider this is done by casting the Folder to a com.sun.mail.imap.IMAPFolder object. To find the rights for the currently authenticated user, use myRights(), to find the rights for another object/user, use listRights().