[Mailman-Users] Scrubbing charset-unspecified text

Roger Lynn Roger at rilynn.demon.co.uk
Thu May 11 15:56:16 CEST 2006


Sorry for breaking the thread, I seem to have accidentally deleted Mark's
original reply, and the web archive doesn't include the Message-ID.

On 02/05/2006 17:47, Mark Sapiro wrote:
> Here is a suggested change to the code you quoted.
> 
> Replace
> 
>             if part.get('content-disposition') and \
>                not part.get_content_charset():
>                 omask = os.umask(002)
> 
> with
> 
>             if part.get('content-disposition') and \
>                msg.is_multipart() and \
>                not part.get_content_charset():
>                 omask = os.umask(002)
> 
> This is not really a proper fix, but I think it will avoid the problem
> in your case.

Thank you. Having applied it I can confirm it does now allow that particular
email through.

Roger




More information about the Mailman-Users mailing list