[Mailman-Users] Logo in posts
mark at msapiro.net
Sat May 31 03:25:22 CEST 2014
On 05/29/2014 10:40 PM, Odhiambo Washington wrote:
> In cases where Full Personalization is being done, how difficult would it
> be to wrap that whole section into an html content in Python?
> I am just imagining that whatever is put there can then be used to do weird
> things like linking to an image when convert_html_to_plaintext is disabled.
What you can do, and how complex it is to do it depends on the list. In
particular, it depends on whether posts (and replies) originate from
only a small group of people who can be relied on to always submit posts
with a particular MIME structure (and what that structure is), or
whether posts come from a larger group using different MUAs and posting
styles, and particularly in the latter case, it also depends on what
content filtering settings are applied.
In the more universal case, probably the easiest thing to do would be to
modify Mailman/Handlers/Decorate.py to always add msg_footer as a
separate MIME part with Content-Type: text/html and Content-Disposition:
inline. Then you could code the appropriate HTML in msg_footer including
an img tag with src = the URL of a file on your server containing the logo.
This will work, but not all MUAs will display the footer part inline
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users