joeyates / imap-backup

Backup and Migrate IMAP Email Accounts
MIT License
1.37k stars 75 forks source link

Backup fails if a Mailbox Folder contains invalid filesystem characters #151

Closed schittli closed 1 year ago

schittli commented 1 year ago

Good evening thank you very much for sharing your great work!

I have a probably small bug report: If the mailbox contains a folder like 50 Triage: Emergency thenimap-backup` fails with:

Backup for account '…' failed with error: Not a directory @ dir_s_mkdir

I'm pretty sure it tries to create a folder with the : character which, of course, does not work.

Therefore, imap-backup needs a mapping logic to convert between imap folder characters, which are invalid on a filesystem.

Thanks a lot, kind regards, Thomas

joeyates commented 1 year ago

Hi @schittli

Thanks for opening the issue.

I've added a fix for this in release 9.2.0.