first step to use clear text imap flags, similar to Thunderbird

this might be useful for extending the managesieve plugin to support setting IMAP flags. see #14