Dave Baggett <jyt...@baggett.org> added the comment: Piers Lauder, author of imaplib, emailed me the following comment about this bug: ------------ The regex for "mustquote_cre" looks bizarre, and I regret to say I can no longer remember its genesis.
Note however, that the term CTL in the RFC definition for "atom-specials" means "any ASCII control character and DEL, 0x00 - 0x1f, 0x7f", and so maybe defining what is NOT an atom-special was considered easier. The suggested replacement regex may not match these...? ------------- It seems like we need to enumerate the control characters in the regex to be absolutely correct here. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue917120> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com