From owner-freebsd-arch@freebsd.org Mon Sep 28 04:25:34 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 7B3CF3F502C for ; Mon, 28 Sep 2020 04:25:34 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C08Zj2mT1z3ZKZ for ; Mon, 28 Sep 2020 04:25:33 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: by mail-ed1-x533.google.com with SMTP id c8so8596762edv.5 for ; Sun, 27 Sep 2020 21:25:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=is51R3scYAraxrPN6dNbcbgZQoP1Qp8ThJB0QHukNOE=; b=Trow3kJ+th43z9/YAS+mo19u7iYAD2/FWL981rmPSS6n77qbx1mY4KiKcEDvdJ6w5G iPYBpY3/veB/E6TvIrmEWFylt9cYp2i2ZYO89ZsC67q0h0Ev6xUx4+hWEYiWyWClYzzG /vuTyeUzFg5jHLFxkp9qUJZzdO0D949Trx2U2xsfppwsLYvDgzEKXPxX+E+KWQe3IlEt kMeo9PtjBsrpV8fOrS94ucMBMZcKizYYNfNtewbZrbNnzWolukf2+ydmaHU65ArIVHcC Szk2oQ837QfBqDDTG1h+Ks2gC4MbVkHhvMcb4egimm+bFeUFkC+Mxk8PsM3U9aO+Sm5/ 1TPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=is51R3scYAraxrPN6dNbcbgZQoP1Qp8ThJB0QHukNOE=; b=Q+4z8pzQHkxlaZwHYND9JCWOM+BrkLBgHcrZKQtIbqUmCxlsk8ZwmWELIh9JoWnm+K uBX2fNCATxDPxhqArkIVeZFmTrQBedsWU/auiU+2529ZAOKHnL2VPAsCLPyQN0At4LcN 4OHeI/rFUkYhnVpT46N83Vn/O6pyjZfrfcvIyHZ3j6Jb29jOiaSSCgo2BRuiIuBozKA9 lKJnjmITFL7bCfl5B5LqFYKP4kUYqE1ryaV83CuhowIyRjnqr3EXb9w+HZCrjOYP7KtY kIogdql1nOwFGGkONUvpEkPSmhVTvMvEJfknUK4VzGdRuvg/yi1ukytKivSilLmDj4iW VcKw== X-Gm-Message-State: AOAM531fzlKm+yTPJ5NluIx2cad5QPSiz5MF34ljU9pBKazH3mofKZtF XwrkGQuXsE3JxkQco7vtbMeOQoEpogceZalU8EWk/eNrr5Q= X-Google-Smtp-Source: ABdhPJwOVbn4Pq7MMU3xo1C/sS5SpCeP315UtvTJQodrOWbRLc8kzon+8ncdQUKcfRydBeMqjgWeMnV5/Yq9hlAfuGI= X-Received: by 2002:a05:6402:cb4:: with SMTP id cn20mr13769029edb.369.1601267131314; Sun, 27 Sep 2020 21:25:31 -0700 (PDT) MIME-Version: 1.0 From: Greg Balfour Date: Sun, 27 Sep 2020 23:25:20 -0500 Message-ID: Subject: Re: Refactoring calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars) To: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4C08Zj2mT1z3ZKZ X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Trow3kJ+; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gregbal4@gmail.com designates 2a00:1450:4864:20::533 as permitted sender) smtp.mailfrom=gregbal4@gmail.com X-Spamd-Result: default: False [-2.01 / 15.00]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.03)[-0.032]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FAKE_REPLY(1.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.995]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.983]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::533:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arch] 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:25:34 -0000 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. 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. 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-- From owner-freebsd-arch@freebsd.org Sun Sep 27 04:50:06 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 CE4103EF801 for ; Sun, 27 Sep 2020 04:50:06 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BzY9V0ZWKz4XKv for ; Sun, 27 Sep 2020 04:50:05 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: by mail-ej1-x633.google.com with SMTP id q13so3846624ejo.9 for ; Sat, 26 Sep 2020 21:50:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=is51R3scYAraxrPN6dNbcbgZQoP1Qp8ThJB0QHukNOE=; b=lkdZbE0F26Z+3ZOCzfn5yAgdS9a3VoRiRylKDAR6DQOYFMBgszfsevJ+Bq7zdQJ/Nw UQx2dLY0OKAm1VY/HPmJWcvtfYMUev71/tP6pUXCuavHBdOl0NMRcUF+pdKgQXsS+SV6 lb2XnbORrcdGEArpMty8Vf/wvoeOqEnJKe+pvvo9i47+tlKSwUrdPnwMzfsDnC90ipxV 8exv+Gmq11P2kfwf9MakHJ2YhuqS2s1XvlDihVY2g5Uk1CtsbfKMyCZs2dohKf1hku2b 26QH5w4WFdCgPyuBfTZG80QJ1z9S1/UXtYpWobg4bJLzJDrzlhIAcKf206TB/A8Gxo7m +X0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=is51R3scYAraxrPN6dNbcbgZQoP1Qp8ThJB0QHukNOE=; b=r5V1uiOuw0COjTwvFtYo3v0KcALJ9DqqtHN4lhWssmrPWy0Vq6N2mcZ+Y6Eh/GYy1x UZMo6uFF265TgV/hWIh2cJl7b6v/GGbQYE5f196bsRoST11Iu0G0dz+AAoffbQ9pm7qo 58hl+gQc6G7rmhhL0BWx4ZITldmZgq8RxbcFzMcPaQ83iXdmiN/poh5ThPhl0m+XWo5T 00vsKMYtfqdan8r2KX7nhtUwGkePlIuihxqy/QWdY6m0mfQ584ZTKDv+7X7CFiJP4VkC Fgm1pIFKQUeUzi9K8tBj7SseG6J3KnBIhuttRhfHCaP0+NvCAYTd+sbnHJlihNrk3ooV lyAQ== X-Gm-Message-State: AOAM5302W2hrAKiDCgYmOq9yJPG9HDrJvvF9fhrInSEX8obSO7zQ07fA 6g4wNqbwulLII4MtXMvFc2qGC+E2VLdLfOWjlH+angE5GsA= X-Google-Smtp-Source: ABdhPJy2+FjLXG/HmnBRIcpHm9nQ06Sw02FCZSRHVq6NTFgPpOWp1+Cmwfmn0v251T8kq/sMeTWm0ABU/shLBdHnDqc= X-Received: by 2002:a17:907:685:: with SMTP id wn5mr9629763ejb.285.1601182204576; Sat, 26 Sep 2020 21:50:04 -0700 (PDT) MIME-Version: 1.0 From: Greg Balfour Date: Sat, 26 Sep 2020 23:49:53 -0500 Message-ID: Subject: Re: Refactoring calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars) To: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4BzY9V0ZWKz4XKv X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lkdZbE0F; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gregbal4@gmail.com designates 2a00:1450:4864:20::633 as permitted sender) smtp.mailfrom=gregbal4@gmail.com X-Spamd-Result: default: False [-1.58 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.983]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_SHORT(0.40)[0.396]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::633:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arch] X-Mailman-Approved-At: Mon, 28 Sep 2020 06:09:50 +0000 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: Sun, 27 Sep 2020 04:50:06 -0000 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. 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. From owner-freebsd-arch@freebsd.org Mon Sep 28 15:06:12 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 CA5BA424E3E for ; Mon, 28 Sep 2020 15:06:12 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: from mail-ej1-x643.google.com (mail-ej1-x643.google.com [IPv6:2a00:1450:4864:20::643]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C0Qnw0R9Zz4TQp; Mon, 28 Sep 2020 15:06:11 +0000 (UTC) (envelope-from greg.bal4@gmail.com) Received: by mail-ej1-x643.google.com with SMTP id p9so9014550ejf.6; Mon, 28 Sep 2020 08:06:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cs9LikzKre3gmlp1I4QIvxoBRoBnIIJenS+wldQUrcU=; b=YTVL4vejF4wkVfY20ZzmwXBM1VztD0e3Xq5NXOfxKwxX/U6SsKVTNRVjTRhkhCV939 QRsED1753S8ynrnGdEKsXXcFGELdrUO1g72ls4MtbgUj2EYqNNM9myjujLRGWaGkMQ+A C40Nvb1maa5efPZKXDXHAnaQbAszMRFtckwngnNbxLfCv5+hzlx0hMptfOUNkMDpvtXW VDBlphScy00V0en+oa8/fwBYsrJiypA+UeF6ZSO2b9ZyviIds39ZWsVcinNc8p75YKeP frvtCwLSbthl1F1YD0IqeK1Q+dqUxPeTolbL2bxa1y2DFE3ZDPp9GSzOVO0WM2HgYeia xrAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cs9LikzKre3gmlp1I4QIvxoBRoBnIIJenS+wldQUrcU=; b=Bm5fMXHGjp5qdksWv71+jhACAyAHTxah9ZWr9M5HUlC8yBBD0PsbYv0JbVOpX5do8O ppUa9gHsbU+utB3HxcxXqi7OQ9uCVw7GRqGxnNln89s1Nhf2iA19ZRFKbRj6upaw4K7B NgExc8zQpQZeLGSvT/6BxwbIGyOX/GNoxsNMUFfsyFSjDWNkI2I+YNY3YlCoQOn73snm 3TaltaBu1u2jkdE1A5rjEO0XSIGD8SWuLW8biLMI/qpO+m9XE9DxCZU3Sd0eBzuMBx6t /79lnX/28BfgCSJzczofr0+Jclg6K+RPSE4jdQ1OCbLyV5GW+Lyxmgd0LjxoWq//6NU/ DjbQ== X-Gm-Message-State: AOAM530S8hfgWjEPOpcM5zzmqnWMek4zmpFJsQXlu6OU5Tok0ZL+Ppg6 VgncxoiHBFExwh1L8p2qj2vUgya+8wG6r+R4Wj6CrYMwF/E= X-Google-Smtp-Source: ABdhPJywt3Knz8ZKuhbI0BQaVsNcQeTJbPao/b+8k7x7V+gQi4rVTN9LBKDYOn1yx2W2Ccs3A1R2qOgFYD4mPiGH20Y= X-Received: by 2002:a17:907:685:: with SMTP id wn5mr2014276ejb.285.1601305570646; Mon, 28 Sep 2020 08:06:10 -0700 (PDT) MIME-Version: 1.0 References: <20200928045733.GE72348@eureka.lemis.com> In-Reply-To: <20200928045733.GE72348@eureka.lemis.com> From: Greg Balfour Date: Mon, 28 Sep 2020 10:05:59 -0500 Message-ID: Subject: Re: Refactoring calendar(1) (was: svn commit: r365984 - head/usr.bin/calendar/calendars) To: "Greg 'groggy' Lehey" Cc: freebsd-arch@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4C0Qnw0R9Zz4TQp X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=YTVL4vej; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gregbal4@gmail.com designates 2a00:1450:4864:20::643 as permitted sender) smtp.mailfrom=gregbal4@gmail.com X-Spamd-Result: default: False [-3.62 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.982]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::643:from]; NEURAL_HAM_SHORT(-0.63)[-0.634]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; 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 15:06:12 -0000 On Sun, Sep 27, 2020 at 11:57 PM Greg 'groggy' Lehey wrote: > > 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. I've added my patch to bug 205580. As fas as bug 246943 goes, I've never had a .calendar in root so I've never had to consider this issue. But I would agree with comment #4 in the report. For a fix, I think adding a knob in calendar files per comment #13 is the best solution. However I would not be against removing the -a flag. I would just refactor my use case of calendar(1). I'm tired of keeping my patch up to date so I may just go that route anyway.