imap: fix parse-store-mail parsing because it breaks on gmail

gmail responses include lines with the order of UID and FLAGS reversed
to indicate the previous flags for a mail. Just ignore those lines
because they aren't useful and non-standard.