>I was looking at exactly this a while back, with a view to
>manipulating E-mail messages to add e.g. "This E-mail
>brought to you by... etc.". I didn't look in depth, but a
>couple of issues I noticed were,
>- What to do with multipart messages
>- What to do with non-plaintext messages
>which meant that my thoughts ended up being
>directed towards only "text/plain" messages, and
>avoiding 'Messing' with anything else for fear of
>corrupting someone's mail.
Try this: if its a singlepart mail, add at the end. If it's
multipart, add just before the 2nd boundary (optionally add before
the 1st as well, to catch those email clients who don't understand multipart).
However, if that message part is not text, do nothing.
Also, if the message is encrypted or digitally signed, do nothing
Alex
______________________________________________________________________
This message has been checked for viruses by the Star Screening System
http://www.star.co.uk