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

Crashes on 'Parsing replies' #8

Open
jfox1980 opened this issue Nov 9, 2015 · 0 comments
Open

Crashes on 'Parsing replies' #8

jfox1980 opened this issue Nov 9, 2015 · 0 comments

Comments

@jfox1980
Copy link

jfox1980 commented Nov 9, 2015

I am using a personal e-mail server. I have modified mail.py to read:

MAILBOX_GMAIL_ALL_MAIL = "Inbox"
MAILBOX_GMAIL_PREFIX = "."

When I run:
python main.py --server=myserver --use_ssl --username=me --me=[email protected]

I get:
[2015-11-09 15:54:36,801] Connecting
[2015-11-09 15:54:37,509] Logging in
[2015-11-09 15:54:37,517] Selecting mailbox 'Inbox'
[2015-11-09 15:54:37,519] Fetching message infos
[2015-11-09 15:54:37,519] Fetching message list
[2015-11-09 15:54:37,520] 47 messages were listed
[2015-11-09 15:54:37,522] Fetching info for 47 messages (47/47)
[2015-11-09 15:54:37,549] Parsing replies
[2015-11-09 15:54:37,578] Got 47 message infos
[2015-11-09 15:54:37,578] Getting mailboxes
[2015-11-09 15:54:37,585] Selecting mailbox 'Chats'
[2015-11-09 15:54:37,586] Fetching message infos
[2015-11-09 15:54:37,588] Fetching message list
[2015-11-09 15:54:37,588] 0 messages were listed
[2015-11-09 15:54:37,588] Got 0 message infos
[2015-11-09 15:54:37,588] Selecting mailbox 'Completed'
[2015-11-09 15:54:37,592] Fetching message infos
[2015-11-09 15:54:37,592] Fetching message list
[2015-11-09 15:54:37,594] 1 messages were listed
[2015-11-09 15:54:37,594] Fetching info for 1 messages (1/1)
[2015-11-09 15:54:37,796] Parsing replies
Traceback (most recent call last):
File "main.py", line 251, in
message_infos = GetMessageInfos(opts)
File "main.py", line 70, in GetMessageInfos
message_ids = m.GetMessageIds()
File "C:\mail-trends-master\mail.py", line 70, in GetMessageIds
message_infos = self.__UidFetch("ALL", "(INTERNALDATE RFC822.SIZE)")
File "C:\mail-trends-master\mail.py", line 139, in __UidFetch
message_infos.extend(self.__ParseFetchReply(fetch_reply))
File "C:\mail-trends-master\mail.py", line 186, in __ParseFetchReply
current_message_info.PopulateField(name, value)
File "C:\mail-trends-master\messageinfo.py", line 33, in PopulateField
elif name == "RFC822.SIZE": self.size = int(value)
ValueError: invalid literal for int() with base 10: ''

If I use --skip_labels it will count my inbox only and ignore the rest of my folders. Also, I don't seem to have a 'Chats' or a 'Completed' folder set up, so I'm not sure where it is getting that information.

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