You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm. Does it work if you try it with Python 2? I haven't attempted to run this with Python 3 yet. At first glance, it looks like one of the emails you're asking gtalk_export to parse has no "Date" header, which would result in None being returned from the "extract_date_mbox" function:
def extract_date_mbox(email):
date = email.get('Date')
return parsedate(date)
If that's the case, previous experience suggests that you may be generating the mbox file via a means other than the Thunderbird-export method outlined in the README.md.
In Python2, I get a different error. I tried several methods using the ImportExportTools add-on. I think something in the toolchain or some of my messages is breaking stuff.
The Python2 error was in a multipart/alternative message. From what I've read, parts of that type MAY have empty headers. I inspected things a little longer & then decided to instead change the program. I just submitted #6 as a result.
If anyone wants to try to figure it out, here's a naively scrubbed mbox file to play with, but I'm tapping out on this issue now ;)
Before converting:
ImportError: No module named 'HTMLParser'
After converting:
The text was updated successfully, but these errors were encountered: