-
Notifications
You must be signed in to change notification settings - Fork 2
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
Folder names with spaces result in an Assertion error #1
Comments
Apparently, it needs to be surrounded by quotes (thanks to Max). Changing line 142 and 143 from... srcfolder = f.name
dstfolder = f.getPathBytes(dsttype, trim=options.trim) ...to the following solves the problem (of course this isn’t the prettiest code like, though). srcfolder = '"{}"'.format(f.name.decode("utf-8"))
dstfolder = '"{}"'.format(f.getPathBytes(dsttype, trim=options.trim).decode("utf-8")) |
That's what I was just writing: dovecot usually likes quoting, so adding that as a quick fix will work. Anyway, to support different IMAP servers, some additional if/then login will be needed. |
Nice haha, but then I guess a PR with these changes wouldn’t really help, right? |
If you can add some if to apply that only when the mailserver is dovecot, I will happily merge it |
Ooh, right. I’ll look into that! Just found out this breaks the exclude option though, since match doesn’t like it.
|
When syncing between two Dovecot servers, of which the first has a folder with a name containing a space and the second has no content, something like the following happens:
The text was updated successfully, but these errors were encountered: