From owner-freebsd-current@FreeBSD.ORG Mon Jan 2 23:26:15 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B29D106566B; Mon, 2 Jan 2012 23:26:15 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 348518FC0A; Mon, 2 Jan 2012 23:26:15 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 5E5B125D385D; Mon, 2 Jan 2012 23:26:14 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 8CCEDBD8588; Mon, 2 Jan 2012 23:26:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id 6eYMOcmS2p5L; Mon, 2 Jan 2012 23:26:12 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 2F209BD8587; Mon, 2 Jan 2012 23:26:12 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <4F02390E.4080303@FreeBSD.org> Date: Mon, 2 Jan 2012 23:26:11 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: <253A49B1-3711-4B16-8569-E445E234A834@lists.zabbadoz.net> References: <4F023387.1060300@FreeBSD.org> <4F02350D.2050500@FreeBSD.org> <4F02390E.4080303@FreeBSD.org> To: Doug Barton X-Mailer: Apple Mail (2.1084) Cc: Garrett Cooper , FreeBSD current mailing list Subject: Re: periodic emails X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2012 23:26:15 -0000 On 2. Jan 2012, at 23:09 , Doug Barton wrote: > On 01/02/2012 15:01, Bjoern A. Zeeb wrote: >> Looking at periodic(8) it says: >>=20 >> Each script is required to exit with one of the following values: >>=20 >> 0 The script has produced nothing notable in its output. The >> _show_success variable controls the masking of = this out- >> put. >>=20 >> 1 The script has produced some notable information in its = output. >> The _show_info variable controls the masking of = this out- >> put. >>=20 >> 2 The script has produced some warnings due to invalid = configuration >> settings. The _show_badconfig variable controls = the mask- >> ing of this output. >>=20 >>> 2 The script has produced output that must not be masked. >>=20 >>=20 >> Could it even be that if setting the correct "*_show_*" config option >> could do the right thing for me already? I have no clue how that = "masking" is >> done and in which category "has not produced any output but the = heading" >> would fall into and if other things would possibly be hidden as well? >=20 > I'm not sure which problem you're trying to solve. Are you trying to > solve the problem of "scripts that are enabled but don't have any = output > other than the header should not output anything at all?" If so, then > yes, then *_show_success=3D"NO" is likely what you're after. >=20 > I assumed from your OP that you were trying to solve a different > problem, but it's starting to seem like I read it wrong. Can you = clarify? How did you read it? The follow-up thing is "if the email is empty, don't send it". The problem I have with the description is that "nothing notable" !=3D = "nothing" or "nothing but the header" in my view. I read it as "there was output beyond the heading". /bz --=20 Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do!