Messed up getting this to the list the first time over, apparently.
Never try mailing from home ... Sorry if this is a duplicate.
To: pr
Cc: Doug Monroe <monroe(_at_)lucent(_dot_)com>, Jean Caron
<caronj(_at_)norac(_dot_)net>
On Wed, 11 Nov 1998 12:33:01 -0500, Doug Monroe <monroe(_at_)lucent(_dot_)com>
wrote:
Jean Caron wrote:
I would like to return a file as an attachement based on the
subject. The filename is static (always the same). I figured out
how to return the file as the body of the message, but that's not
good, the format is all wrong. It's a binary file, it must be sent
as an attachement. I have read through PROCMAILEX and everything
else I could find. I tried stuff like formail -i "Attchmnt:
/file/name". It doesn't work.
I don't believe sendmail, when used as an MTA can "do" MIME??
Sure it can; it will deliver anything you feed it in text format. MIME
is a good wrapper for turning random binaries into text (among other
things). As has been sufficiently demonstrated already.
*maybe* you could craft your own "mime-emulating" message using formail
to insert the right header:
Actually one possibility nobody has covered is to simply save the file
as a preformatted MIME message and use the standard ftp-by-mail
recipes (procmailex has one you can use as a starting point). This is
desirable and useful if the document in question is relatively static.
If it changes often, it's better to spend resources in your
.procmailrc to generate the MIME on the fly. (The basic procedure will
be the same shell script regardless of whether it's in your
.procmailrc or in an external #!/bin/sh file.)
/* era */
(As a general comment -- only if we weren't discussing something as
hopeless as a Word doc :^} -- I've found it to be very convenient to
have a Makefile which builds necessary variants [HTML, text only
renderings, etc] when I update a text souce file somewhere.)
--
.obBotBait: It shouldn't even matter whether <http://www.iki.fi/~era/>
I am a resident of the state of Washington. <http://members.xoom.com/procmail/>