public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* location of msmtp system-wide configuration
@ 2019-10-02  0:47 Stephen Carrier
  2019-10-02  2:43 ` Brian Inglis
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Carrier @ 2019-10-02  0:47 UTC (permalink / raw)
  To: cygwin

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.

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: location of msmtp system-wide configuration
  2019-10-02  0:47 location of msmtp system-wide configuration Stephen Carrier
@ 2019-10-02  2:43 ` Brian Inglis
  2019-10-02 18:18   ` Stephen Carrier
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2019-10-02  2:43 UTC (permalink / raw)
  To: cygwin

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.

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: location of msmtp system-wide configuration
  2019-10-02  2:43 ` Brian Inglis
@ 2019-10-02 18:18   ` Stephen Carrier
  2019-10-02 19:38     ` msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR} Brian Inglis
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Carrier @ 2019-10-02 18:18 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
  2019-10-02 18:18   ` Stephen Carrier
@ 2019-10-02 19:38     ` Brian Inglis
  2019-10-09 20:03       ` Stephen Carrier
  0 siblings, 1 reply; 8+ messages in thread
From: Brian Inglis @ 2019-10-02 19:38 UTC (permalink / raw)
  To: cygwin

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]

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
  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
  0 siblings, 1 reply; 8+ messages in thread
From: Stephen Carrier @ 2019-10-09 20:03 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
  2019-10-09 20:03       ` Stephen Carrier
@ 2019-10-09 20:10         ` Ken Brown
  2019-10-10 10:09           ` Jari Aalto
  0 siblings, 1 reply; 8+ messages in thread
From: Ken Brown @ 2019-10-09 20:10 UTC (permalink / raw)
  To: cygwin; +Cc: Jari Aalto

On 10/9/2019 4:03 PM, Stephen Carrier wrote:
> 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.

I've added the maintainer, Jari Aalto, to the Cc.  I don't think he reads the 
list regularly.

Ken

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
  2019-10-09 20:10         ` Ken Brown
@ 2019-10-10 10:09           ` Jari Aalto
  2019-10-11  1:45             ` Stephen Carrier
  0 siblings, 1 reply; 8+ messages in thread
From: Jari Aalto @ 2019-10-10 10:09 UTC (permalink / raw)
  To: Ken Brown; +Cc: cygwin

On 2019-10-09 20:10, Ken Brown wrote:
> On 10/9/2019 4:03 PM, Stephen Carrier wrote:
> >>> $ msmtp --version
> >>> msmtp version 1.8.5
> >>> Platform: x86_64-pc-cygwin
> >>> ....
> >>> System configuration file name: /usr/etc/msmtprc
>
> >>
> >> 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]
> 
> I've added the maintainer, Jari Aalto, to the Cc.  I don't think he reads the 
> list regularly.

Thanks, new releau uploaded with the fix
Jari

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: msmtp 1.8.5 built using ${prefix}/${SYSCONFDIR}
  2019-10-10 10:09           ` Jari Aalto
@ 2019-10-11  1:45             ` Stephen Carrier
  0 siblings, 0 replies; 8+ messages in thread
From: Stephen Carrier @ 2019-10-11  1:45 UTC (permalink / raw)
  To: cygwin

On Thu, Oct 10, 2019 at 01:09:14PM +0300, Jari Aalto wrote:
> On 2019-10-09 20:10, Ken Brown wrote:
> > On 10/9/2019 4:03 PM, Stephen Carrier wrote:
> > >>> $ msmtp --version
> > >>> msmtp version 1.8.5
> > >>> Platform: x86_64-pc-cygwin
> > >>> ....
> > >>> System configuration file name: /usr/etc/msmtprc
> >
> > >>
> > >> 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]
> > 
> > I've added the maintainer, Jari Aalto, to the Cc.  I don't think he reads the 
> > list regularly.
> 
> Thanks, new releau uploaded with the fix
> Jari

Thank you!  I have installed and it resolves the issue.

--Stephen

--
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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-10-11  1:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-02  0:47 location of msmtp system-wide configuration Stephen Carrier
2019-10-02  2:43 ` Brian Inglis
2019-10-02 18:18   ` Stephen Carrier
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

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).