From owner-freebsd-ports-bugs@freebsd.org Sat Sep 26 10:48:05 2020 Return-Path: Delivered-To: freebsd-ports-bugs@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 04ED23FAB29 for ; Sat, 26 Sep 2020 10:48:05 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bz5906R5hz4RN8 for ; Sat, 26 Sep 2020 10:48:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id DB11D3FAB28; Sat, 26 Sep 2020 10:48:04 +0000 (UTC) Delivered-To: ports-bugs@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 DADA03FABA5 for ; Sat, 26 Sep 2020 10:48:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bz5905Wfvz4RbZ for ; Sat, 26 Sep 2020 10:48:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A119522CCE for ; Sat, 26 Sep 2020 10:48:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 08QAm4kA079115 for ; Sat, 26 Sep 2020 10:48:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 08QAm4Z5079114 for ports-bugs@FreeBSD.org; Sat, 26 Sep 2020 10:48:04 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 249860] mail/fetchmail: rc.conf overrides set daemon interval Date: Sat, 26 Sep 2020 10:48:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mandree@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mandree@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: attachments.isobsolete cc assigned_to flagtypes.name attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Sep 2020 10:48:05 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249860 Matthias Andree changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #218297|0 |1 is obsolete| | CC| |mandree@FreeBSD.org Assignee|ports-bugs@FreeBSD.org |mandree@FreeBSD.org Attachment #218317| |maintainer-approval?(chalpi Flags| |n@cs.wisc.edu) --- Comment #2 from Matthias Andree --- Created attachment 218317 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D218317&action= =3Dedit revised patch/overhaul of fetchmail.in I've added some documentation to the comments of files/fetchmail.in and whi= le writing that, I've figured that we have a similar situation for the logging facility (--syslog vs. --logfile) where we need to make a similar change. I've also found that the root/$fetchmail_user split can skew our results because a fetchmail --configdump run as root from the script may refuse out= put with this error message (I am running the script as root and fetchmailrc is owned by fetchmail): File /usr/local/etc/fetchmailrc must be owned by you. Consequence: we need to add su -m $user -c sh to our fetchmail --configdump runs. Then, the script does not change the "name" variable to fetchmail_$user but isn't written that way, so we manually need to pull up the typical rc.subr variables, for instance, ${name}_env from ${name}_${user}_env. Added. I've pondered the fetchmail_home_prefix, too - we can safely query the actu= al home directory (rather than second-guess and make something up) with getent passwd $fetchmail_user | cut -f6 -d: Added. Also, the global run will lose the user name because the user variable is unset, and I've replaced it with $name, but not tested the output cosmetica= lly. In case passwords are missing, the rcfile will stall the boot interactively= , so I've added exec