Great Circle Associates List-Managers
(April 2001)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: appending to multipart/alternative messages
From: Richard Rognlie <rrognlie @ gamerz . net>
Date: Fri, 6 Apr 2001 22:48:13 -0400
To: Omar Thameen <omar @ clifford . inch . com>
Cc: list-managers @ GreatCircle . COM
In-reply-to: <20010406172212.A13082@clifford.inch.com>; from omar@clifford.inch.com on Fri, Apr 06, 2001 at 05:22:12PM -0400
References: <20010406172212.A13082@clifford.inch.com>
User-agent: Mutt/1.2i

I wrote a sendmail milter that does this, and, indeed...

option 2 is the only way to do it cleanly for all MIME types.


You "save" the original MIME type, etc.

then to declare the message to be  multipart/mixed; boundary=xxxxxx


then in the body you do...

--xxxxxx
Content-type: <whatever you saved>
Content-disposition: inline

<original body>

--xxxxxx
Content-type: text/plain
Content-disposition: inline

Your disclaimer or whatever goes here

--xxxxxx--





On Fri, Apr 06, 2001 at 05:22:12PM -0400, Omar Thameen wrote:
> [Resending because I forgot to obfuscate the list command words.]
> 
> Greetings:
> 
> I'd really like to make sure that every message that is sent out on
> lists that I host has a footer (aka trailer) message which gives 
> unzubscribe information.  The problem is that in multipart/alternative
> messages (RFC 1521), each of the parts is an "alternative" version of
> the same information.
> 
> The gist is that when you add MIME part to the end of the message, 
> that's the only thing that gets displayed because of the way MUAs
> are supposed to parse the various parts.  
> 
> Specifically, the parts are displayed in increasing order of complexity,
> and the MUA is supposed to start from the end and work backwards,
> displaying the first that it can.  When you add the text/plain part
> at the end, the MUA displays that and stops, since all MUAs should
> support text/plain.
> 
> So my question is whether anyone has dealt with this situation or has
> any suggestions.  The options I see are hackish and unsatisfying:
> 1) Adding the footer to all parts of the message.  You'd have to limit
>    this to text/plain, text/richtext, and text/html.
> 2) Changing the MIME encoding to text/multipart and adding the footer.
>    This means that the recipient will view all versions of the message.
> 
> Omar
> 
> 
> 

-- 
 /  \__  | Richard Rognlie / Sendmail Samurai / Gamerz.NET Lackey
 \__/  \ | http://www.gamerz.net/rrognlie/    <rrognlie@gamerz.net>
 /  \__/ |       find / -name "*base*" -exec chown us:us {} \;
 \__/    | UNIX does not have a philosophy.  It has an attitude.



References:
Indexed By Date Previous: Re: appending to multipart/alternative messages
From: James M Galvin <galvin@acm.org>
Next: which MLM to choose for Linux/qmail
From: sky37044 <sky37044@skynet.be>
Indexed By Thread Previous: Re: appending to multipart/alternative messages
From: James M Galvin <galvin@acm.org>
Next: which MLM to choose for Linux/qmail
From: sky37044 <sky37044@skynet.be>

Google
 
Search Internet Search www.greatcircle.com