Found some e-mails did not use the same date/time formats, so switched the time parsing to use Time.parse instead.  Also corrected an oddity where if BEFORE and SINCE, in an imap search, are on the same day, it fails to filter.  In this circumstance I changed the search to use ON instead.