Open jasonblewis opened 13 years ago
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: https://github.com/jvc/cleanup-maildir/pull/2
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