X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/99eca1508ae29f29217399cd8963dee9f6fbd4f9..07dbafdaf673d7f20d7f93ab4e8e42c6c7f00a2d:/uip/inc.c?ds=sidebyside diff --git a/uip/inc.c b/uip/inc.c index 83b6ec96..aadfe98b 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -413,25 +413,21 @@ main (int argc, char **argv) * a POP server? */ if (inc_type == INC_POP) { - struct nmh_creds creds = { 0, 0, 0 }; - if (auth_svc == NULL) { if (saslmech && ! strcasecmp(saslmech, "xoauth2")) { adios (NULL, "must specify -authservice with -saslmech xoauth2"); } - nmh_get_credentials (host, user, sasl, &creds); } else { if (user == NULL) { adios (NULL, "must specify -user with -saslmech xoauth2"); } - creds.user = user; } /* * initialize POP connection */ - if (pop_init (host, port, creds.user, creds.password, proxy, snoop, - sasl, saslmech, tls, auth_svc) == NOTOK) + if (pop_init (host, port, user, proxy, snoop, sasl, saslmech, + tls, auth_svc) == NOTOK) adios (NULL, "%s", response); /* Check if there are any messages */