[Slightly OT] Re: [Exim] Adding disclaimers to messages

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Matthew Byng-Maddick
Dátum:  
Címzett: exim-users
Tárgy: [Slightly OT] Re: [Exim] Adding disclaimers to messages
On Tue, Apr 06, 2004 at 10:09:34AM +0100, David Allen wrote:
> 1/ What are the technical consequences / pitfalls of attempting such a
> thing?


The main technical difficulty you will come across is how to deal with
multipart/alternative, multipart/signed and other similar content types.

In general, what you do is put a wrapper which is multipart/mixed, first
part the original content, and then text/plain with your disclaimer, but
of course, this is escalation on just appending some text, and you start
having to understand in detail what you can and can't modify. (eg, you
may have some way of modifying text/html parts, and then you can modify
both the text/plain and text/html parts.

To be honest, your best bet to doing this with exim will be to write the
processing in something that has a decent understanding of MIME structures
and how to parse and then reconstruct them. For example, some kind of
transport filter.

MBM

--
Matthew Byng-Maddick         <mbm@???>           http://colondot.net/