From owner-freebsd-questions Mon Jul 29 09:51:46 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA09548 for questions-outgoing; Mon, 29 Jul 1996 09:51:46 -0700 (PDT) Received: from halloran-eldar.lcs.mit.edu (halloran-eldar.lcs.mit.edu [18.26.0.159]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA09543 for ; Mon, 29 Jul 1996 09:51:44 -0700 (PDT) Received: by halloran-eldar.lcs.mit.edu; (5.65/1.1.8.2/19Aug95-0530PM) id AA21743; Mon, 29 Jul 1996 12:51:41 -0400 Date: Mon, 29 Jul 1996 12:51:41 -0400 From: Garrett Wollman Message-Id: <9607291651.AA21743@halloran-eldar.lcs.mit.edu> To: Justin Ashworth Cc: questions@freebsd.org Subject: command-line mailers that support MIME In-Reply-To: <199607291642.JAA14877@chaos.structured.net> References: <199607291642.JAA14877@chaos.structured.net> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk < 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