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
------------------------------------------------------
Mailman-Users mailing list
[email protected]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Security Policy:
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp