Commits

mete0r_kr committed d2304ba

don't parse date field in envelope

  • Participants
  • Parent commits 39f6373

Comments (0)

Files changed (1)

File imapclient/response_parser.py

     return dt
 
 def _convert_ENVELOPE(envelope_response, normalise_times=True):
-    dt = parse_to_datetime(envelope_response[0], normalise=normalise_times)
+    # NOTE: there are some cases where date values are not in this form
+    # dt = parse_to_datetime(envelope_response[0], normalise=normalise_times)
+    dt = envelope_response[0]
     subject = envelope_response[1]
 
     # addresses contains a tuple of addresses