Skip to content

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

Open
jasonblewis wants to merge 1 commit intojvc:masterfrom
jasonblewis:jasonblewis/fixsubject
Open

fixed possible error when subject line of email is incorrectly formatted #2
jasonblewis wants to merge 1 commit intojvc:masterfrom
jasonblewis:jasonblewis/fixsubject

Conversation

@jasonblewis
Copy link
Copy Markdown

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
Copy link
Copy Markdown
Owner

jvc commented Apr 18, 2011

Hey - thanks, I'll take a look and definitely pull it in. No issue
with the hack :)

I am not sure who actually actually wrote the original script, but I'm
glad posting it here has gotten some attention and the quirks are
getting worked out.

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

Reply to this email directly or view it on GitHub:
#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants