X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:date:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; q=dns; s=default; b=Malh
	Il6EsFzJsk0gh92SzedhLiTM7C93VTScvq4mrWjPUTOT5lNjM8MES8r4nldo7bUS
	GQLB8hptibt9yNB5IJIO2F0KAW/IEpeDN254DAJUGAI6FrD+S+9mWS91Oci60Mkl
	8F0XAlOk5ptWVpgIeXRMicPAElD5+qOmSqi/4gI=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:from:date:to:subject:message-id:references
	:mime-version:content-type:in-reply-to; s=default; bh=mJplOBASiZ
	BB8k0YcrjwgQx42i4=; b=Q8PTFIn9al8H1WTOi+BHH/fgMRSrdrMEzznTiVQN1z
	DjeN5LComslWriocy6bFwyVnRnNsJcon1uraJYkLm6u9XvGJHrYlIeTqVyvNJeVz
	Wm3Cf76kO3zL4GMXFY0VZbNdksHtBnONKng9i46rMcdtJIXed4sZNCdHGoUcA9ns
	o=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=carrier, junction, participation, stephen
X-HELO: mail-pf1-f177.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=berkeley-edu.20150623.gappssmtp.com; s=20150623;        h=from:date:to:subject:message-id:references:mime-version         :content-disposition:in-reply-to:user-agent;        bh=9k9J7hrgGZ/nYFGruQ/uUrq3ywcs1xVo+NNnX0+JWc8=;        b=cxX/t4TfL0kfld+jsTFziFTgN06ywB5R5niTbCm2/pEvX5Z6uUTB92R2RhLHnNhPCZ         qyqK5XYMvqK1JVlt/QaDrTafALHIf+fZM+UASDDgAeacD8LNETUvQSY+pSNuR491rNFS         Nf99LvsWpWivtmHkjA89JfyD8agwCvleyqPU6ODexidBuzp0fzVmriFLYHSLYB33PY50         NLgEpOnZmTz462nP1e6e7kazT8LU2/d86vkozw1TgEqAebZuk45q2X/lmeCazZodBn3y         khJQ9FUuNDm0BNVRGDw4nOKa4KsdOXFkjgwVuneICZs3505nEQ2oeuZHsRsElTBUDv2x         y98Q==
From: Stephen Carrier <carrier@berkeley.edu>
Date: Wed, 9 Oct 2019 13:03:38 -0700
To: cygwin@cygwin.com
Subject: Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
Message-ID: <20191009200338.GA3790@zebra>
References: <20191002004739.GA5215@zebra> <a43f1570-c87b-6b83-c8bf-b824a1aacc40@SystematicSw.ab.ca> <20191002181838.GA3281@zebra> <eaffbcc1-415d-3cb3-a3f4-445c186d7f27@SystematicSw.ab.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <eaffbcc1-415d-3cb3-a3f4-445c186d7f27@SystematicSw.ab.ca>
User-Agent: Mutt/1.9.1 (2017-09-22)
X-IsSubscribed: yes

On Wed, Oct 02, 2019 at 01:38:13PM -0600, Brian Inglis wrote:
> On 2019-10-02 12:18, Stephen Carrier wrote:
> > On Tue, Oct 01, 2019 at 08:43:40PM -0600, Brian Inglis wrote:
> >> On 2019-10-01 18:47, Stephen Carrier wrote:
> >>> The latest verion of the msmtp package: 1.8.5+20190811+git7912c76-1 .
> >>> Differs from the previous version: 1.6.6-1 .
> >>>
> >>> In that the location of the system-wide configuration file is changed
> >>> from /etc/msmtprc to /usr/etc/msmtprc.
> >>>
> >>> I think this has the potential to break installations during an upgrade.
> >>>
> >>> In my case it only confused me as I set up a new system.
> >>>
> >>> Please consider changing this default back to what it was for the
> >>> convenience of those who will otherwise need to figure this out.
> >>
> >> Definitely not a standard location and nothing there currently on my system.
> >> The package contents shows only server configuration, nothing on /usr/etc/, no
> >> defaults provided in /etc/defaults/usr/etc/, and /usr/bin/msmtp-config defaults
> >> the CONFDIR to /etc, so unless you have a symlink, link or junction from /etc to
> >> /usr/etc, or changed the location during the server config, /etc/ should have
> >> been used.
> > 
> > This is not what I meant.  The package doesn't provide a configuration
> > file.  msmtp-config generates one in /etc/msmtprc, exactly as I would
> > want and expect since that's where to find the configuration file for
> > previous versions.
> > 
> > The problem is that the binary looks for its configuration file in a
> > different place:
> 
> > $ msmtp --version
> > msmtp version 1.8.5
> > Platform: x86_64-pc-cygwin
> > ....
> > System configuration file name: /usr/etc/msmtprc
> 
> > and only after I moved the configuration file to that nonstandard location
> > would msmtp start working instead of complaining that it couldn't find
> > any configuration file.
> > 
> > This seems like something that could be fixed by tweaking the package
> > build scripts; I think it would be great to do that.
> 
> So this is a discrepancy between the built exe and the config script, which
> should be resolved by having the built exe use the standard SYSCONFDIR, by
> removing ${prefix} from its definition.
> [changing subject]

Could the package maintainer join in?  I don't see how discussing the
minutae of the build process actually helps without the maintainer's
participation.

Pre-existing msmtp installations use /etc/msmtprc, and the current
configuration script creates a valid configuration in that same location.
Clearly, fixing the binary and not the configuration script is the way
forward, unless there is compelling reason to move the configuration
file from where it used to be.

Thanks,

Stephen Carrier

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

