This PR resolves the ValueError thrown when attempting to parse the email datetime string from Gmail's IMAP service. The problem arose due to a date string format mismatch. We now use the dateutil library to more robustly handle date parsing.
Changes:
Replaced datetime.strptime with dateutil.parser.parse for date string parsing
Removed hardcoded date format string, making the parsing more flexible
Summary:
This PR resolves the
ValueError
thrown when attempting to parse the email datetime string from Gmail's IMAP service. The problem arose due to a date string format mismatch. We now use thedateutil
library to more robustly handle date parsing.Changes:
datetime.strptime
withdateutil.parser.parse
for date string parsingThis PR closes #3.