imapsync icon indicating copy to clipboard operation
imapsync copied to clipboard

Subfolder UTF7 encoding instead of sanitization

Open schuetzm opened this issue 6 years ago • 4 comments

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.

schuetzm avatar Nov 17 '19 18:11 schuetzm

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.

gilleslamiral avatar Nov 17 '19 19:11 gilleslamiral

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.

schuetzm avatar Nov 18 '19 14:11 schuetzm

Ok, remove the sanitize call. I'll add an option to avoid sanitizing.

gilleslamiral avatar Nov 18 '19 23:11 gilleslamiral

Similar to https://github.com/imapsync/imapsync/issues/195

gilleslamiral avatar Feb 11 '20 22:02 gilleslamiral