Implemented latestID or latestDate to avoid receiving the same messages
more than once. This is currently not working in IMAP and Facebook, and
not used. The IMAP logging has been set up to scrub away any html before
creating a JSON.