X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/55f65ae2d3baf60396d3359db952460939de03ca..965ab049343bc05dd4b6c881b84c517ddda7dfa6:/uip/post.c diff --git a/uip/post.c b/uip/post.c index 84bc1418..69f5b821 100644 --- a/uip/post.c +++ b/uip/post.c @@ -89,6 +89,7 @@ X("fileproc", -4, FILEPROCSW) \ X("mhlproc", -3, MHLPROCSW) \ X("mts smtp|sendmail/smtp|sendmail/pipe", 2, MTSSW) \ + X("credentials legacy|file:filename", 0, CREDENTIALSSW) \ X("messageid localname|random", 2, MESSAGEIDSW) \ #define X(sw, minchars, id) id, @@ -494,6 +495,21 @@ main (int argc, char **argv) save_mts_method (cp); continue; + case CREDENTIALSSW: { + /* post doesn't read the profile, so insert credentials + entry the hard way. */ + struct node *np = (struct node *) mh_xmalloc (sizeof *np); + + if (!(cp = *argp++) || *cp == '-') + adios (NULL, "missing argument to %s", argp[-2]); + np->n_name = "credentials"; + np->n_field = cp; + np->n_context = 0; + np->n_next = m_defs; + m_defs = np; + continue; + } + case MESSAGEIDSW: if (!(cp = *argp++) || *cp == '-') adios (NULL, "missing argument to %s", argp[-2]);