izderadicka / imap_detach

Command line client for downloading email attachments
13 stars 1 forks source link

sep is NoneType #7

Closed borgchick closed 6 years ago

borgchick commented 6 years ago

Thank you for making this. All the other imap clients I tried working with somehow all ended not working with my particular imap server. Yours worked fine, after this very minor tweak to utils.py:

106         if sep and sep != '/':
107             name=name.replace(sep, '/')

For me, sep was None, so line 107 would throw an exception. With my change to line 106, the rest of your code works great!

izderadicka commented 6 years ago

Can you submit as PR? Thanks.

izderadicka commented 6 years ago

Fixed by PR #8