Skip to content

fixed possible error when subject line of email is incorrectly formatted #2

Open
wants to merge 1 commit into from

2 participants

@jasonblewis

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

@jvc
Owner
jvc commented Apr 18, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.