I have read the FAQs so I don't believe I missed one, but it could be possible. Is there a way, with full personalization, that I can include a logo in posts on a list? A remote possibility... I am using 2.1.18
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."
On 05/29/2014 07:06 AM, Odhiambo Washington wrote:
I have read the FAQs so I don't believe I missed one, but it could be possible. Is there a way, with full personalization, that I can include a logo in posts on a list? A remote possibility... I am using 2.1.18
You can include an ascii graphic in msg_header or msg_footer (and/or digest_header or digest_footer), but if you mean something like a JPEG, GIF or PNG image, no. This would require an HTML part or the addition of an image/ part and Mailman doesn't have a facility for doing that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Odhiambo Washington writes:
I have read the FAQs so I don't believe I missed one, but it could be possible. Is there a way, with full personalization, that I can include a logo in posts on a list? A remote possibility...
Whose logo? The list's or the user's? Where do you want this logo to appear? Do you use HTML messages?
On 29 May 2014 17:49, Stephen J. Turnbull <stephen@xemacs.org> wrote:
Odhiambo Washington writes:
I have read the FAQs so I don't believe I missed one, but it could be possible. Is there a way, with full personalization, that I can include a logo in posts on a list? A remote possibility...
Whose logo? The list's or the user's? Where do you want this logo to appear? Do you use HTML messages?
An organization is 'sponsoring' a list and wanted to have their logo included on all messages on the list. I understand that this means the list has to somehow modify the message as it leaves going to subscribers. As regards "convert_html_to_plaintext" I can have that disabled if it will allow me to include the sponsor's logo somewhere in the body of the message, but footer is best option.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."
Odhiambo Washington writes:
An organization is 'sponsoring' a list and wanted to have their logo included on all messages on the list. I understand that this means the list has to somehow modify the message as it leaves going to subscribers.
I would think so, yes.
I was thinking you could abuse the X-Face or Face headers, but apparently they're only supported by a few MUAs popular on Linux.
As regards "convert_html_to_plaintext" I can have that disabled if it will allow me to include the sponsor's logo somewhere in the body of the message, but footer is best option.
Including in the footer is probably not an option for a plain text message. It probably would only take a few lines of Python code to attach the file as a MIME part in a custom Handler, but then the presentation would be up to the users' MUAs, and it seems likely to be ugly.
For HTML messages, I think there was some way for Mailman to insert the footer material in the HTML rather than attach it, but that was probably a 3rd party patch. It's also unreliable because you have no idea what formatting a given MUA may put in its HTML, but you probably can tune it to give good results for the most popular MUAs used by the list's posters.
Again for HTML messages, it might be possible to do something tricky with an <IFRAME> element to hold the original message, and put the footer at the bottom of the main BODY. (The original message would live in a separate MIME part and the src= ref would use the cid: URI scheme.) I think this would work pretty well in most modern browsers, but I don't know how smart the MUAs would be. (Completely untested, I don't even have a proof of concept.)
On 05/29/2014 08:18 AM, Odhiambo Washington wrote:
An organization is 'sponsoring' a list and wanted to have their logo included on all messages on the list. I understand that this means the list has to somehow modify the message as it leaves going to subscribers. As regards "convert_html_to_plaintext" I can have that disabled if it will allow me to include the sponsor's logo somewhere in the body of the message, but footer is best option.
If you or the organization submit all posts, you can either turn off content filtering or ensure you pass text/html and the relevant multipart and image MIME types and set both collapse_alternatives and convert_html_to_plaintext to No and then just post a rich text (html) message with the logo in the stationery or signature.
If others post, this won't ensure that their posts will contain the logo.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On 30 May 2014 00:30, Mark Sapiro <mark@msapiro.net> wrote:
An organization is 'sponsoring' a list and wanted to have their logo included on all messages on the list. I understand that this means the
On 05/29/2014 08:18 AM, Odhiambo Washington wrote: list
has to somehow modify the message as it leaves going to subscribers. As regards "convert_html_to_plaintext" I can have that disabled if it will allow me to include the sponsor's logo somewhere in the body of the message, but footer is best option.
If you or the organization submit all posts, you can either turn off content filtering or ensure you pass text/html and the relevant multipart and image MIME types and set both collapse_alternatives and convert_html_to_plaintext to No and then just post a rich text (html) message with the logo in the stationery or signature.
If others post, this won't ensure that their posts will contain the logo.
Hi Mark,
I am not a programmer, but allow me to ask.
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.
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."
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@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Joseph Brennan
-
Mark Sapiro
-
Odhiambo Washington
-
Stephen J. Turnbull