OfflineIMAP / offlineimap

Read/sync your IMAP mailboxes (python2) [LEGACY: move to offlineimap3]
http://www.offlineimap.org
Other
1.78k stars 360 forks source link

Incorrect folder creation if whitespace present #707

Open christopherraa opened 3 years ago

christopherraa commented 3 years ago

General informations

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

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?