nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] send -sasl and -user

2012-05-13 00:05:30
and gmail wouldn't take it.  Near as my testing shows, when send/post go to
read .netrc, it doesn't use the '-server' value to look up 'machine' and then
pick up the login/password fields - once I added '-user 
valdis(_at_)vt(_dot_)edu', it
was then able to find the right line in .netrc and it started working.

So ... I guess what's happening is I call ruserpass() with "user" (see
sm_get_pass() in smtp.c), and I set up user like this:

    if (user == NULL)
        user = getusername();

But ... from what I see, I do pass in the hostname where you're
going to.  So I think in this case it's trying to match up
smtp.gmail.com, but it wasn't finding "valdis" there (because that's
the default).  I _think_ that if you had another valdis(_at_)vt(_dot_)edu on
a different machine entry, it wouldn't match it.  Could you set
a breakpoint or two inside of ruserpass() to be sure?

--Ken

_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>