Skip to Content.
Sympa Menu

en - RE: [sympa-users] html footer

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Steve Shipway <address@concealed>
  • To: "Rynhart, Patrick" <address@concealed>, "address@concealed" <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: RE: [sympa-users] html footer
  • Date: Thu, 10 Apr 2014 03:56:51 +0000

Patrick said:
>Isn't a simple solution for introduce a way to change the Content-Type on
the 'footer' multipart message to text/html ?
>(I would think most modern clients would just render this beneath the main
part of the message - can't really see why
>it would differ to the "text/plain" scenario being used at present.)

You can do this using the message.footer.mime file. By creating this file
(instead of message.footer) looking somewhat akin to the example below, you
can specify a content type and disposition, and so get your footer created
as a separate text/html and text/plain pair in a multipart/alternative ,
with the inline disposition set. In theory, this should cause the footer to
be appended to the main message.

However, in Outlook 2013 at least, you instead get the two alternative
footers (text and html) displayed as attachments.

In Yahoo webmail, it is correctly displayed with the two HTML portions (main
message and footer) inline. Hooray, Yahoo have done one thing right this
week. Gmail also display it inline as we wanted.

Of course, none of these footers are appended if you have an SMIME signed
message.

Steve

------cut example message.footer.mime here
-----------------------------------------
Content-Type: multipart/alternative; boundary="_x_1234567890"
Content-Disposition: inline


--_x_1234567890
Content-Type: text/plain;
Content-Disposition: inline

This is the message footer in text in the multipart file

--_x_1234567890
Content-Type: text/html;
Content-Disposition: inline

<HTML><HR />
<B>This is the footer in HTML in the multipart file</B>
<HR /></HTML>

--_x_1234567890--
-------------- end message.footer.mime here -----------------------


Steve Shipway
address@concealed

Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.19+.

Top of Page