[Gllug] Exim-based disclaimer filter

Martyn Drake martyn at martyn-drake.com
Tue Jul 9 05:50:16 UTC 2002


From: "Jim Bailey" <jim at lateral.net>

> I could be wrong and I usually am but this isn't something Exim a MTA
> should be doing.  MTA AFAIK should not be messing with the content of an
> email, you should have the MUA do this as part of the signature.

I think I might have phrased my question wrong.  I am fully aware that MTAs
are not supposed to be doing this sort of thing, but Exim provides the right
facilities within it's router and transport configuration to be able to pass
messages through an external filter (or command).  It is this external
command that I want to be able to generate the disclaimer at the end of
email.  Something like the following works for anything but MIME messages:

#!/bin/sh
cat
echo Disclaimer Test: Blah, blah, blah, blah

What I need, however, is something that's going to do a thorough check of
the message that is presented to it and generate the relavent headers and
MIME stuff so that the disclaimer will remain in tact when any attachments
or, heaven forbid, HTML code is included within the message.

Yes, something could be knocked up in Perl but I don't have much experience
with the MIME protocol and I might muck things up.  I was just wondering if
anybody else out there was aware of an external command to attach additional
text to an email message and take into account any MIME-based stuff.

Regards,

    Martyn



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list