break;
case OK:
- buildvec = argsplit(buildmimeproc, &buildprogram, &i);
+ buildvec = argsplit(buildmimeproc, &buildprogram, &i);
buildvec[i++] = "-auto";
if (distfile)
buildvec[i++] = "-dist";
*/
if (auth_svc) {
+#ifdef OAUTH_SUPPORT
const char *errmsg;
- if (!setup_oauth_params(vec, nvecsp, auth_svc, &errmsg))
- adios(NULL, "%s", errmsg);
+ if (setup_oauth_params(vec, nvecsp, auth_svc, &errmsg) != OK) {
+ adios(NULL, errmsg);
+ }
+#else
+ adios(NULL, "send built without OAUTH_SUPPORT, "
+ "so auth_svc %s is not supported", auth_svc);
+#endif /* OAUTH_SUPPORT */
}
/*
}
break;
#else
- adios(NULL, "sendfrom built without OAUTH_SUPPORT, "
+ NMH_UNUSED(auth_svc);
+ adios(NULL, "send built without OAUTH_SUPPORT, "
"so -saslmech xoauth2 is not supported");
#endif /* OAUTH_SUPPORT */
}
sizeof(errbuf)))
adios(NULL, "Unable to retrieve oauth profile entries: %s",
errbuf);
-
+
+ vec[(*vecp)++] = getcpy("-authservice");
+ vec[(*vecp)++] = getcpy(auth_svc);
vec[(*vecp)++] = getcpy("-oauthcredfile");
vec[(*vecp)++] = getcpy(mh_oauth_cred_fn(auth_svc));
vec[(*vecp)++] = getcpy("-oauthclientid");