This is a WIP to add IMAP UTF-7 support. I'm not done but I'd rather have early feedback to see if I'm going in the right direction.
What's done so far : - adding encoding and decoding function IMAP UTF7 <-> system local encoding. (using iconv) - Add a conversion modifier to imap_vprintf to write a local encode string as IMAP UTF7 string. - Hook into parse_list_rsp_p2 to have box names in the local encoding - Modify the "SELECT" command string to use the new conversion (this is only to test that it works, I guess removing the \ modifier is not ideal) What remains to be done (IMO): - Better error handling (in encoding/decoding, what to do if locale does not support something, or vice versa ?) - Make ^ and / cooperates in imap_vprintf - Add the ^ modifiers where appropriate in imap commands strings (I suppose that would be CREATE, some others ?) Thanks to let me know if I'm doing it wrong or have missed something. Max Gautier Patches in the follow-ups. _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel