Parsing of the date header in imap.inc