On Wed, 16 Feb 2000 14:36:29 -0600, Matthew Saroff
<saroff(_at_)poseidon(_dot_)vs(_dot_)lmco(_dot_)com> wrote:
I've got the filter down, how do I send the message back with
a reply at the beginning, AND the attached word file?
Doing funny things like quoting parts of a MIME message is pretty
error-prone. I would suggest returning the entire message, perhaps as
an embedded MIME attachment. Look at bounce messages from a recent
Sendmail; they will include a text/plain part with some explanations
and then a message/rfc822 with the entire bounced message. Producing
this from a shell script is not hard, provided that you know something
about how to encode MIME messages (or have a handy utility such as
metasend(1) do it for you -- I don't know if it has exactly the right
capabilities, though).
Subject: Re: (original subject here)
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="matthew_was_here_kdfgk"
F u cn rd ths, yr ml clnt dsnt spk MIME.
--matthew_was_here_kdfgk
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I cannot handle Word attachments. Please resend your message in a
sane format. It is being returned unread as an attachment.
--matthew_was_here_kdfgk
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: (whatever the original message had)
(original message here)
--matthew_was_here_kdfgk--
You should take care that the boundary string is unique for each
message you send out.
/* era */
Not sure about Content-Disposition, too lazy to check.
--
Too much to say to fit into this .signature anyway: <http://www.iki.fi/era/>
Fight spam in Europe: <http://www.euro.cauce.org/> * Sign the EU petition