Tokio Kikuchi wrote:
>
>I think the indent level of this part in Scrubber.py should be
>
> if charset is None:
> charset = part.get_content_charset(lcset)
>+ format = part.get_param('format')
>+ delsp = part.get_param('delsp')
>
Tokio,
Thanks for looking at this.
I don't think your suggestion is correct. What I am trying to do is get
the format= and delsp= parameters from only the first text/plain part
in the message. Often, this will be the only part in which case it
doesn't matter.
Consider however a message with a format=flowed text/plain 'body' and a
subsequent attached text/plain part perhaps without format=flowed. We
want to remember the format parameter from the first 'body' part and
not override it from the second text/plain part.
I recognize that there can always be a pathological case where it might
be more appropriate to get the parameters from a subsequent part, but
I think in general, the first text/plain part is the safest.
--
Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
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