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

mailbox list with / delimiter gives error on recursive processing #54

Open
x-m-nc opened this issue Jul 30, 2020 · 1 comment
Open

mailbox list with / delimiter gives error on recursive processing #54

x-m-nc opened this issue Jul 30, 2020 · 1 comment

Comments

@x-m-nc
Copy link

x-m-nc commented Jul 30, 2020

I tryed to deduplicate mails on my mailbox (dont know the kind of server)

I got a list of mailboxes just fine
INBOX
INBOX/subfolder
INBOX/subfolder/subfolder and so on

with the option -r it wont process:

"Traceback (most recent call last):
File "./imapdedup.py", line 535, in
main(sys.argv[1:])
File "./imapdedup.py", line 531, in main
process(options, mboxes)
File "./imapdedup.py", line 396, in process
for mb in get_mailbox_list(server, parent, pattern):
File "./imapdedup.py", line 257, in get_mailbox_list
bits = parse_list_response(mb)
File "./imapdedup.py", line 165, in parse_list_response
m = list_response_pattern.match(line)
TypeError: expected string or bytes-like object"

-> Probably the delimiter of folders is the problem?! . vs / ?

@srcshelton
Copy link

Similar problem here when running against Apple iCloud Mail:

+ python3 imapdedup.py --server imap.mail.me.com --port 993 --ssl --user xxx --password xxx --verbose --show --dry-run --checksum --recursive INBOX
Traceback (most recent call last):
  File "imapdedup.py", line 598, in <module>
    process(options, mboxes)
  File "imapdedup.py", line 445, in process
    delimiter = bits[1].decode()
TypeError: 'NoneType' object is not subscriptable

… but only with the --recursive option specified.

This is at commit 5155f74.

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