imap: don't unnecessarily fetch header
imap: include FLAGS in MessageArray returned