]> diplodocus.org Git - nmh/commitdiff
Added oauth switch to whatnow.
authorDavid Levine <david.levine@gonift.com>
Sun, 13 Mar 2016 19:40:23 +0000 (15:40 -0400)
committerDavid Levine <david.levine@gonift.com>
Sun, 13 Mar 2016 19:40:23 +0000 (15:40 -0400)
uip/whatnowsbr.c

index d8862dc9fc2250b1baf5f92ff545501a3a478b57..e81312626a343b22255e7e2d03110c6327622c1b 100644 (file)
@@ -956,6 +956,7 @@ buildfile (char **argp, char *file)
     X("sendmail program", 0, MTSSM) \
     X("mts smtp|sendmail/smtp|sendmail/pipe", 2, MTSSW) \
     X("messageid localname|random", 2, MESSAGEIDSW) \
+    X("oauth service", 5, OAUTHSW) \
 
 #define X(sw, minchars, id) id,
 DEFINE_SWITCH_ENUM(SEND);
@@ -1146,6 +1147,7 @@ sendit (char *sp, char **arg, char *file, int pushed)
                case MTSSM:
                case MTSSW:
                case MESSAGEIDSW:
+               case OAUTHSW:
                    vec[vecp++] = --cp;
                    if (!(cp = *argp++) || *cp == '-') {
                        advise (NULL, "missing argument to %s", argp[-2]);