From: Ken Hornstein Date: Fri, 8 Sep 2017 16:08:41 +0000 (-0400) Subject: Add a -credentials argument when we call post. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9a4413187b1cf9562bceef8cfe442278ed67afd9?ds=sidebyside Add a -credentials argument when we call post. If we are using -check, post(8) will need to talk to a remote SMTP server, and it might need to perform authentication when doing so. So include a -credentials option if there is the appropriate line in the user's profile. --- diff --git a/uip/whom.c b/uip/whom.c index c1ef6592..d172f946 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -74,6 +74,12 @@ main (int argc, char **argv) vec[vecp++] = "-library"; vec[vecp++] = getcpy (m_maildir ("")); + if ((cp = context_find ("credentials"))) { + /* post doesn't read context so need to pass credentials. */ + vec[vecp++] = "-credentials"; + vec[vecp++] = cp; + } + /* Don't need to feed fileproc or mhlproc to post because it doesn't use them when used for whom. */