Skip to content

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

Description

@x-m-nc

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 / ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions