Subfolder UTF7 encoding instead of sanitization
Instead of (or in addition to) sanitizing subfolder names as suggested in #181, would it be possible to automatically encode them as UTF7 instead? This seems to be more useful than simply removing invalid characters.
All the imapsync options concerning folders and their names suppose that they are already encoded in utf7imap. I'm not sure that encoding to utf7imap for --subfolder will simplify the users' life. It will start an inconsistency.
That's fine, it was only a suggestion. My use case is that I want to be able to create a subfolder with non-ASCII characters in it by specifying it as --subfolder2. I can do the conversion before invoking imapsync, but the current sanitizing will strip the & from it so it results in gibberish.
Ok, remove the sanitize call. I'll add an option to avoid sanitizing.
Similar to https://github.com/imapsync/imapsync/issues/195