public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Stephen Carrier <carrier@berkeley.edu>
To: cygwin@cygwin.com
Subject: Re: location of msmtp system-wide configuration
Date: Wed, 02 Oct 2019 18:18:00 -0000	[thread overview]
Message-ID: <20191002181838.GA3281@zebra> (raw)
In-Reply-To: <a43f1570-c87b-6b83-c8bf-b824a1aacc40@SystematicSw.ab.ca>

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.

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

  reply	other threads:[~2019-10-02 18:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-02  0:47 Stephen Carrier
2019-10-02  2:43 ` Brian Inglis
2019-10-02 18:18   ` Stephen Carrier [this message]
2019-10-02 19:38     ` msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR} Brian Inglis
2019-10-09 20:03       ` Stephen Carrier
2019-10-09 20:10         ` Ken Brown
2019-10-10 10:09           ` Jari Aalto
2019-10-11  1:45             ` Stephen Carrier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191002181838.GA3281@zebra \
    --to=carrier@berkeley.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).