fixed possible error when subject line of email is incorrectly formatted #2
fixed possible error when subject line of email is incorrectly formatted #2jasonblewis wants to merge 1 commit intojvc:masterfrom
Conversation
|
Hey - thanks, I'll take a look and definitely pull it in. No issue I am not sure who actually actually wrote the original script, but I'm Thanks, Justin On Sun, Apr 17, 2011 at 10:29:42PM -0700, jasonblewis wrote:
|
fixed possible error when subject line of email is incorrectly formatted in unicode.
see: http://bugs.python.org/issue10574#msg122776
it is a bit of a hack but it prevents cleanup-maildir from throwing an exception. it just searches all the subject lines for "?==?" and replaces with "?= =?" as per the discussion thread above. i think the problem is actually broken mail clients not correctly encoding the subject lines but i don't think cleanup-maildir should die in the event of such a problem.
Please consider adding this patch.
Thanks,
Jason