nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.netrc Parsing Only Uses First Matching Machine.


From: Ralph Corderoy
Subject: .netrc Parsing Only Uses First Matching Machine.
Date: Mon, 09 Dec 2019 12:24:39 +0000

Hi,

Reading ruserpass(), I think it stops reading the file after dealing
with the first ‘machine’ entry that matches.  This tallies with ftp(1)'s
documentation, for example, but not fetchmail(1)'s, and nmh has needs
more like the latter.

For example, a .netrc with

    machine m  login u  password p
    machine m  login v  password q

should allow nmh to find the password to use when u@m is given, but also
v@m.

Aside, I'm having all kinds of trouble getting mhmail(1) to use my Gmail
credentials in ~/.netrc using Git's master branch in trying to help
Norm.  ruserpass() could do with some debug that can be enabled to see
what it's thinking.

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]