IMAP: Don't add [HEADER] to RFC822.HEADER response
IMAP: Add unit tests for parts of the log from bug 6022