From 9a4413187b1cf9562bceef8cfe442278ed67afd9 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Fri, 8 Sep 2017 12:08:41 -0400 Subject: [PATCH] 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. --- uip/whom.c | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ -- 2.56.0