Mask against PermanentFlags instead of AcceptedFlags

GMail doesn't include \* in the FLAGS, but does in the PERMANENTFLAGS

The PERMANENTFLAGS are what matter, anyway since they are the only ones
that will persist between sessions.