X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/e19df85ee3edbc78b6029aa2344bb62bf4270747..4f0974c322efcd33c95404db5b44e53ba00696b4:/uip/msgchk.c diff --git a/uip/msgchk.c b/uip/msgchk.c index d7b2c2f0..a4613c27 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -336,7 +336,7 @@ checkmail (char *user, char *home, int datesw, int notifysw, int personal) if (datesw && st.st_atime) printf ("; last read on %s", dtime (&st.st_atime, 1)); if (notifysw) - printf ("\n"); + putchar('\n'); return status; } @@ -350,23 +350,20 @@ remotemail (char *host, char *port, char *user, char *proxy, int notifysw, const char *auth_svc) { int nmsgs, nbytes, status; - 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; } /* open the 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 || pop_stat (&nmsgs, &nbytes) == NOTOK /* check for messages */ || pop_quit () == NOTOK) { /* quit POP connection */ advise (NULL, "%s", response);