Incorrect folder creation if whitespace present
General informations
- system/distribution (with version): Ubuntu 21.04
- offlineimap version (
offlineimap -V): offlineimap v7.3.0, imaplib2 v3.05, OpenSSL 1.1.1j 16 Feb 2021 - Python version: Python v3.9.5
Configuration file offlineimaprc
[general]
accounts = MyAccount
maxsyncaccounts = 3
socktimeout = 180
[Account MyAccount]
localrepository = MyAccountLocal
remoterepository = MyAccountRemote
maxsize = 1000000000
utf8foldernames = yes
[Repository MyAccountLocal]
type = Maildir
localfolders = ~/Maildir
sep = /
[Repository MyAccountRemote]
type = IMAP
remotehost = <REDACTED>
remoteuser = <REDACTED>
remotepass = <REDACTED>
cert_fingerprint = <REDACTED>
ssl = yes
maxconnections = 2
pythonfile (if any)
REMOVE PRIVATE DATA.
Logs, error
2021-11-07 08:45:01 INFO: *** Processing account MyAccount
2021-11-07 08:45:01 INFO: Establishing connection to <REDACTED>:993 (MyAccountRemote)
2021-11-07 08:45:03 INFO: Creating folder INBOX[MyAccountRemote]
2021-11-07 08:45:03 INFO: Creating folder INBOX.OneFolder[MyAccountRemote]
2021-11-07 08:45:03 INFO: Creating folder INBOX.OneFolder.Another Folder[MyAccountRemote]
2021-11-07 08:45:03 INFO: Creating new Local Status db for MyAccountLocal:INBOX.OneFolder.Another Folder
2021-11-07 08:45:03 INFO: Syncing INBOX.Abc: IMAP -> Maildir
...
Steps to reproduce the error
- Within an existing folder create a new folder having spaces
mkdir -p Maildir/INBOX/OneFolder/Another\ Folder/{cur,new,tmp} - Run offlineimap
What happens is that on the server the folder OneFolder -> Another is created. Notice that the created folder is only the first word of the total folder name (Another Folder).
This started happening after I upgraded offlineimap from a version from when dinosaurs roamed the earth and to the version noted above. I thought to myself that this was probably just an issue with the database or something being unusable due to a large discrepancy in versions. So I deleted my whole local email storage, deleted all offlineimap database/storage directories and performed a complete new sync.
Upon creating a new folder and syncing I still saw the same behaviour, hence this ticket. Is there anything more I can do to shed light on what is happening here?