This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients barry, maxking, r.david.murray, valhallasw
Date 2019-05-17.18:06:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1558116405.14.0.285282142592.issue21315@roundup.psfhosted.org>
In-reply-to
Content
A cleaner/safer solution here would be:

  tok, *remainder = _wsp_splitter(value, 1)
  if _rfc2047_matcher(tok):
      tok, *remainder = value.partition('=?')
      
where _rfc2047_matcher would be a regex that matches a correctly formatted encoded word. There a regex for that in the header.py module, though for this application we don't need the groups it has.

Abhilash, I'm not sure why you say the proposed solution only works for utf-8 and 'q'?
History
Date User Action Args
2019-05-17 18:06:45r.david.murraysetrecipients: + r.david.murray, barry, valhallasw, maxking
2019-05-17 18:06:45r.david.murraysetmessageid: <1558116405.14.0.285282142592.issue21315@roundup.psfhosted.org>
2019-05-17 18:06:45r.david.murraylinkissue21315 messages
2019-05-17 18:06:45r.david.murraycreate