Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Crash when finding "me" emails #7

Open
signal15 opened this issue Oct 14, 2015 · 1 comment
Open

Crash when finding "me" emails #7

signal15 opened this issue Oct 14, 2015 · 1 comment

Comments

@signal15
Copy link

This was run against an MS Exchange account. MAILBOX_GMAIL... variables were both changed to "INBOX". Here's the error:

[2015-10-14 17:36:48,550] Identifying "me" messages
Traceback (most recent call last):
File "./main.py", line 251, in
message_infos = GetMessageInfos(opts)
File "./main.py", line 94, in GetMessageInfos
name, address = message_info.GetSender()
File "/Users/xxx/mail-trends/messageinfo.py", line 67, in GetSender
return self._GetNameAddress("from")
File "/Users/xxx/mail-trends/messageinfo.py", line 94, in _GetNameAddress
if not header in self.headers:
AttributeError: 'MessageInfo' object has no attribute 'headers'

@signal15
Copy link
Author

I have a fix. It works, but no idea if it's just covering up a larger problem. Add to line 94 of messageinfo.py before "if not header in self.headers:"

if not hasattr(self, 'headers'):
return None, None

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant