X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/61ccf1dbeea93978803303d2cd43efa5da2cc7d1..965ab049343bc05dd4b6c881b84c517ddda7dfa6:/uip/post.c diff --git a/uip/post.c b/uip/post.c index e0bc4773..69f5b821 100644 --- a/uip/post.c +++ b/uip/post.c @@ -15,12 +15,9 @@ #include #include #include - #include #include -#include - #ifdef HAVE_SYS_TIME_H # include #endif @@ -92,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, @@ -497,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]);