fixed issue 1556:imap: the encoding field is not writable, thanks Alan
fixed issue 1557:imap: unexpected date format is not handled, thanks Alan