From owner-freebsd-questions@FreeBSD.ORG Thu Jul 19 13:00:57 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9DD3116A401 for ; Thu, 19 Jul 2007 13:00:57 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 52B3B13C428 for ; Thu, 19 Jul 2007 13:00:57 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id l6JD0uYc005711 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 19 Jul 2007 09:00:56 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id l6JD0uHO005710; Thu, 19 Jul 2007 09:00:56 -0400 (EDT) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Tom Evans Date: Thu, 19 Jul 2007 09:00:55 -0400 User-Agent: KMail/1.9.6 References: <200707141603.55899@aldan> <200707190755.56000@aldan> <1184846615.1313.24.camel@localhost> In-Reply-To: <1184846615.1313.24.camel@localhost> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: questions@freebsd.org, Daniel Bye Subject: Re: Can cron e-mail HTML? 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: Thu, 19 Jul 2007 13:00:57 -0000 On четвер 19 липень 2007, Tom Evans wrote: = Teaching cron about file types/mime types is an awful idea Why? My particular cron-job generates HTML. Somebody else's might generate a JPG image -- from their telescope every morning. There is no reason for these jobs to have to do the e-mailing on their own. Cron has this functionality, it just needs to be improved to match the modern-times expectations (MIME was introduced in the previous millennium.) And if you are worried about "feature-creep", well, you should've objected back when piping to sendmail was put into cron in the first place. After all, ALL cron jobs (including the purely textual ones) could have explicit piping into a mailer... If you don't mind cron generating the From: and the Subject: headers, you should not mind it generating the Content-Type:. = - sounds like something you'd find in gentoo. And then I plan to add magick-handling to mail(1) -- to allow you to e-mail a file with the properly-set Content-Type. Yours, -mi