Hi, You can develop a codec and plug it into Python 3.4 right now using codecs.register().
It's difficult to decide if a codec is important enough to be added to Python. When you say "IMAP4", do you mean any IMAP4 server? Do you have a list of server vendors known to use the encoding mUTF-7? Is it possible to ask the server to speak a specific codec like UTF-8? I don't know the protocol. Interesting article: http://comments.gmane.org/gmane.mail.imap.general/3416 Python supports UTF-7, but this codec doesn't look to be used. Bugs were fixed in this codec "recently". Anyway, open an issue ;-) How is mUTF-7 different than UTF-7? (Why yet another encoding while standard UTF encodings exist???) Requests of new encodings: "missing vietnamese codec TCVN 5712:1993 in Python" (open) http://bugs.python.org/issue21081 "add thai encoding aliases to encodings.aliases" (open) http://bugs.python.org/issue17254 "Add "java modified utf-8" codec" (closed as wont fix 2 years ago) http://bugs.python.org/issue2857 "Add support for CESU-8 encoding" (rejected 3 years ago) http://bugs.python.org/issue12742 "Adding new CNS11643, a *huge* charset, support in cjkcodecs" (closed as wont fix 4 years ago) http://bugs.python.org/issue2066 "Add KOI8-RU as a known encoding" (rejected 5 years ago) http://bugs.python.org/issue5214 ("This charset wasn't supported by Ukrainian Internet community due to political reasons; KOI8-U was invented as opposition to KOI8-RU.") Recently added codec: "Add support of the cp1125 encoding" (1 year ago) http://bugs.python.org/issue19668 "Add cp65001 codec" (3 years ago) http://bugs.python.org/issue13216 Victor 2014-10-10 0:47 GMT+02:00 Jesus Cea <j...@jcea.es>: > I miss mUTF-7 support (as used to encode IMAP4 mailbox names) in Python, > in the codecs module. As an european with a language with 27 different > letters (instead of english 26), tildes, opening question marks, etc., I > find it very inconvenient. > > This encoding is used basically only in IMAP4, I know. But IMAP4 is an > important protocol and all projects related to it needs mUTF-7 support > if they care about non-english alphabets. Everybody has already an > implementation, waste of effort. > > We already support quite amusing encodings in > <https://docs.python.org/3.5/library/codecs.html#standard-encodings>. > > What do you think?. Could be considered for Python 3.5?. > > I volunteer for the job, of course. > > PS: Do you think a Python implementation would be good enough?. I don't > think this need to be C-fast. > > -- > Jesús Cea Avión _/_/ _/_/_/ _/_/_/ > j...@jcea.es - http://www.jcea.es/ _/_/ _/_/ _/_/ _/_/ _/_/ > Twitter: @jcea _/_/ _/_/ _/_/_/_/_/ > jabber / xmpp:j...@jabber.org _/_/ _/_/ _/_/ _/_/ _/_/ > "Things are not so easy" _/_/ _/_/ _/_/ _/_/ _/_/ _/_/ > "My name is Dump, Core Dump" _/_/_/ _/_/_/ _/_/ _/_/ > "El amor es poner tu felicidad en la felicidad de otro" - Leibniz > > > _______________________________________________ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com > _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com