Sebastian Talmon wrote:
I wonder if MS Outlook can be convinced to inline the footer if we specifically add:* Ben Gertzfield <[EMAIL PROTECTED]> wroteAre there really so many people out there who are using non-MIME-compliant mail readers that this is necessary?
yes, there are some people out there using MS Outlook or so... there the footer is not shown in the message, but attached as a Attachement called ATT00010.txt ...
Content-Disposition: inline
to the header/footer attachments.
I haven't tested this at all, but this patch to Mailman/Handlers/Decorate.py to add Content-Disposition: inline to any MIME'd headers and footers may make MS Outlook show the footer in the message. Can you test it and see if this fixes the "problem"?
--- Decorate.py 13 Dec 2002 16:35:05 -0000 2.21
+++ Decorate.py 6 Jan 2003 22:49:37 -0000
@@ -93,7 +93,9 @@
# The next easiest thing to do is just prepend the header and append
# the footer as additional subparts
mimehdr = MIMEText(header, 'plain', lcset)
+ mimehdr['Content-Disposition'] = 'inline'
mimeftr = MIMEText(footer, 'plain', lcset)
+ mimeftr['Content-Disposition'] = 'inline'
payload = msg.get_payload()
if not isinstance(payload, ListType):
payload = [payload]
@@ -137,9 +139,11 @@
payload = [inner]
if header:
mimehdr = MIMEText(header, 'plain', lcset)
+ mimehdr['content-disposition'] = 'inline'
payload.insert(0, mimehdr)
if footer:
mimeftr = MIMEText(footer, 'plain', lcset)
+ mimeftr['content-disposition'] = 'inline'
payload.append(mimeftr)
msg.set_payload(payload)
del msg['content-type']
------------------------------------------------------
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/
This message was sent to: archive@jab.org
Unsubscribe or change your options at
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org