From owner-freebsd-questions@FreeBSD.ORG Fri Feb 1 16:31:27 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD0EC16A418 for ; Fri, 1 Feb 2008 16:31:27 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 881DF13C45A for ; Fri, 1 Feb 2008 16:31:27 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id AC3941CC8B; Fri, 1 Feb 2008 07:31:26 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Fri, 1 Feb 2008 17:31:24 +0100 User-Agent: KMail/1.9.7 References: <94136a2c0801310049k22d7a890kac8a2482ac49333c@mail.gmail.com> <47a2c295.zZbt1U/oWvbDh508%perryh@pluto.rain.com> <47A2CEB2.2000705@boosten.org> In-Reply-To: <47A2CEB2.2000705@boosten.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802011731.25322.fbsd.questions@rachie.is-a-geek.net> Cc: zszalbot@gmail.com, perryh@pluto.rain.com, Peter Boosten Subject: Re: cron to attach a gz file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Feb 2008 16:31:27 -0000 On Friday 01 February 2008 08:48:02 Peter Boosten wrote: > perryh@pluto.rain.com wrote: > >>> I know I can use > >>> > >>> mail -s "logfile " < /var/log/httpd_access.log > >>> > >>> in cron to email the content of a log file to a particular email > >>> address but how do I make that log file a binary attachment (*.gz)? > >> > >> gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail > >> -s "logfile" someone@somewhere > > > > If you want an actual MIME attachment, see /usr/ports/mail/nail Nice tip, thanks for that. > From a modern mail reader point of view there is not much difference > between a MIME or a uuencoded attachment. But there is between an uuencoded /body/ and an attachment. At the risk of this degrading into a mail useragent battle: kmail didn't give an option to uudecode the body. -- Mel