Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jul 1996 12:51:41 -0400
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        Justin Ashworth <justin@structured.net>
Cc:        questions@freebsd.org
Subject:   command-line mailers that support MIME
Message-ID:  <9607291651.AA21743@halloran-eldar.lcs.mit.edu>
In-Reply-To: <199607291642.JAA14877@chaos.structured.net>
References:  <199607291642.JAA14877@chaos.structured.net>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 29 Jul 1996 09:41:29 -0700, Justin Ashworth <justin@structured.net> said:

>   Are there any command-line mailers that support MIME? What I'd like to do
> is zip up a customer's log files and send the zip to them monthly. I'd like
> for it to come through as an attachment rather than garbage in the message body.

Certainly.  Automated mail applications should already be calling
sendmail directly, and it's a simple matter of putting the correct
headers in and using the correct encoding.  In fact, if you have the
`mpack' program (available in ports), you can just use that directly:

mpack version 1.5
usage: mpack [-s subj] [-d file] [-m maxsize] [-c content-type] file address...
       mpack [-s subj] [-d file] [-m maxsize] [-c content-type] -o file file
       mpack [-s subj] [-d file] [-m maxsize] [-c content-type] -n groups file

Unfortunately, it generates an extraneous outside `multipart/mixed'
element, rather than sending the file directly; this is so that it can
include a paragraph of explanatory text.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, ANA, or NSA|                     - Susan Aglukark and Chad Irschick



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9607291651.AA21743>