Which IMAP flags are reliably supported across most mail servers?

Take a look at this collection of example IMAP server sessions. Essentially whenever you see PERMANENTFLAGS contain \*, the server will support user-defined flags. To add to that list, here is an excerpt from a Gimap (Google Mail IMAP) session: * OK Gimap ready for requests from 192.0.2.1 5if380490pzk.17 a login username password * CAPABILITY … Read more