From owner-freebsd-arch@freebsd.org Mon Sep 28 04:57:42 2020 Return-Path: Delivered-To: freebsd-arch@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 068D23F5FBB for ; Mon, 28 Sep 2020 04:57:42 +0000 (UTC) (envelope-from grog@lemis.com) Received: from lax.lemis.com (www.lemis.com [45.32.70.18]) by mx1.freebsd.org (Postfix) with ESMTP id 4C09Hn1jwfz3bwl for ; Mon, 28 Sep 2020 04:57:40 +0000 (UTC) (envelope-from grog@lemis.com) Received: from eureka.lemis.com (aussie-gw.lemis.com [167.179.139.35]) by lax.lemis.com (Postfix) with ESMTP id 0794E280B2; Mon, 28 Sep 2020 04:57:34 +0000 (UTC) Received: by eureka.lemis.com (Postfix, from userid 1004) id 569AB26359A; Mon, 28 Sep 2020 14:57:33 +1000 (AEST) Date: Mon, 28 Sep 2020 14:57:33 +1000 From: Greg 'groggy' Lehey To: Greg Balfour Cc: freebsd-arch@freebsd.org Subject: Re: Refactoring calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars) Message-ID: <20200928045733.GE72348@eureka.lemis.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="11Y7aswkeuHtSBEs" Content-Disposition: inline In-Reply-To: Organization: The FreeBSD Project Phone: +61-3-5309-0418 Mobile: +61-490-494-038. Use only as instructed. WWW-Home-Page: http://www.FreeBSD X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 User-Agent: Mutt/1.6.1 (2016-04-27) X-Rspamd-Queue-Id: 4C09Hn1jwfz3bwl X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of grog@lemis.com has no SPF policy when checking 45.32.70.18) smtp.mailfrom=grog@lemis.com X-Spamd-Result: default: False [-2.86 / 15.00]; ARC_NA(0.00)[]; FORGED_SENDER(0.30)[grog@FreeBSD.org,grog@lemis.com]; FREEFALL_USER(0.00)[grog]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.980]; NEURAL_HAM_LONG(-0.95)[-0.950]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; DMARC_NA(0.00)[FreeBSD.org]; AUTH_NA(1.00)[]; HAS_ORG_HEADER(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.13)[-0.133]; RCPT_COUNT_TWO(0.00)[2]; SIGNED_PGP(-2.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; R_SPF_NA(0.00)[no SPF record]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:20473, ipnet:45.32.64.0/19, country:US]; FROM_NEQ_ENVFROM(0.00)[grog@FreeBSD.org,grog@lemis.com]; MAILMAN_DEST(0.00)[freebsd-arch]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2020 04:57:42 -0000 --11Y7aswkeuHtSBEs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 27 September 2020 at 23:25:20 -0500, Greg Balfour wrote: > On Thu, Sep 24, 2020 at 09:07:08AM +1000, Greg 'groggy' Lehey wrote: >> >> While I have your attention, does anybody think that the -a option of >> calendar(1) is worth keeping? It goes through *all* calendar files on >> a system and mails them to the owner. It has the interesting side >> effect (we wouldn't want to call it a bug) that root gets three copies >> (one each for root, toor and daemon). I can't see anything useful >> there that a per-user cron job can't do. > > I actually use the -a option. But it hasn't fully worked since 10.0-RELEASE. > See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205580 > Still present in 12.2-BETA2. Interesting. > I maintain a local set of patches that solves this bug, but it > requires the installation of the tradcpp port/package so I've never > shared them, but would if someone wants them. You could add them to the bug report; arguably they would point to a way to fix it without tradcpp. But my real concern is described in bug 246943, and so far I don't see a clean solution for that. Does root have a calendar file on your systems? If so, how do you handle the multiple emails? Your input on 246943 would be interesting. Greg -- Sent from my desktop computer. See complete headers for address and phone numbers. This message is digitally signed. If your Microsoft mail program reports problems, please read http://lemis.com/broken-MUA --11Y7aswkeuHtSBEs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAl9xbT0ACgkQIubykFB6QiNc1ACfTYBD34Uje3c2t2ajle1rER56 4RwAoJ1IWP5WrOis4BldazYdLnHfbn2P =FbE0 -----END PGP SIGNATURE----- --11Y7aswkeuHtSBEs--