Closed rgladwell closed 3 years ago
@mrzool Could you test this new feature and let me know if it fixes #16 for you?
Thanks a lot @rgladwell! Will test right away.
Hey @rgladwell, after fixing some typos (seperator
vs separator
, hyphen vs underscore) and some repeated keyword argument errors I am getting this error:
option --folder_separator: invalid action: 'folder_separator'
Tried fiddling with that value and setting it to store
, but I'm greeted by another error:
An unknown error has occurred [483]: __init__() got an unexpected keyword argument 'folder_separator'
Would love to get more into it but I'm afraid I lack the Python skills. Also I would push my first fixes to this branch, but of course I don't have write permission.
Fixed the CLI argument errors. @mrzool could you please re-test and let me know how you get on.
Still getting An unknown error has occurred [483]: __init__() got an unexpected keyword argument 'folder_separator'
.
Could you provide more information? The command line arguments you're executing? The full output? (if there is any more)
@mrzool Think I might've fixed that error now. Please try again.
Still getting that error. Full command and output:
$ ./imap_upload.py -r --folder-separator "." kh-emailarchiv/ imaps://testing@example.com:password@mail.your-server.de:993
Connecting to mail.your-server.de:993.
An unknown error has occurred [483]: __init__() got an unexpected keyword argument 'folder_separator'
Could the fact that you're using a hyphen in the flag and an underscore in the option be the problem?
@mrzool No, I think that's how the option parser converts the variables. Just pushed another fix, let me know how you get on.
Different error now:
An unknown error has occurred [493]: global name 'separator' is not defined
@mrzool pushed another fix
@mrzool Could you verify if this branch is now working for you?
Sorry @rgladwell, I didn't get the chance to test it yesterday. Will do asap!
Working beautifully now! Thanks a lot @rgladwell and sorry for the wait!
@mrzool Fantastic, merging
Certain email providers use alternative folder separators (i.e. '.') to the default ('\').
This change allows users to change this default. A new CLI argument,
--folder-seperator
, has been added.This change includes documentation.
This closes:
https://github.com/rgladwell/imap-upload/issues/16