Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't retrieve uid b'116' #30

Open
mflage opened this issue Jan 3, 2019 · 1 comment
Open

Couldn't retrieve uid b'116' #30

mflage opened this issue Jan 3, 2019 · 1 comment

Comments

@mflage
Copy link

mflage commented Jan 3, 2019

Attempting to download a regular IMAP folder I'm getting the following traceback:

Synchronizing 23 messages from hostname:INBOX to /home/marius/hostname/username...
ERROR:root:Couldn't retrieve uid b'116'
Traceback (most recent call last):
File "/home/marius/src/imap2maildir/simpleimap.py", line 445, in Summaries
summ = self.__parent.get_summary_by_uid(u)
File "/home/marius/src/imap2maildir/simpleimap.py", line 303, in get_summary_by_uid
return self.parse_summary_data(data)
File "/home/marius/src/imap2maildir/simpleimap.py", line 334, in parse_summary_data
combined_data = ' '.join(data)
TypeError: sequence item 0: expected str instance, bytes found
FINISHED: Turboed 0, handled 0, copied 0 (0 bytes), last UID was 0
INFO:main:FINISHED: Turboed 0, handled 0, copied 0 (0 bytes), last UID was 0

The command I'm using is:

$ ./imap2maildir.py -H hostname -u username -d -r "INBOX" --create

@leaumar
Copy link

leaumar commented May 14, 2021

I got the same when I ran with python3. Try running it with python2 as mentioned in #24 ?

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

No branches or pull requests

2 participants