X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/2e04b8ea0e57e411665aa6a8814ff65db0d4cd2b..984c278593ba8b52cc30caf8d8dfaf184f3c5b4c:/uip/whatnowsbr.c diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index d0423f53..03c0bbba 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -1255,13 +1255,6 @@ sendit (char *sp, char **arg, char *file, int pushed) if (user == NULL) { adios (NULL, "must specify -user with -saslmech xoauth2"); } - - vec[vecp++] = "-authservice"; - if (saslmech && ! strcasecmp(saslmech, "xoauth2")) { - vec[vecp++] = mh_oauth_do_xoauth (user, auth_svc, snoop ? stderr : NULL); - } else { - vec[vecp++] = auth_svc; - } } #else NMH_UNUSED(saslmech); @@ -1277,7 +1270,7 @@ sendit (char *sp, char **arg, char *file, int pushed) closefds (3); - if (sendsbr (vec, vecp, program, file, &st, 1) == OK) + if (sendsbr (vec, vecp, program, file, &st, 1, auth_svc) == OK) done (0); }