Added -messageid switch to send(1) and post(8). This allows selection
[mmh] / uip / whatnowsbr.c
index a5dbb2b..1d21bd3 100644 (file)
@@ -1075,6 +1075,8 @@ static struct swit  sendswitches[] = {
     { "notls", TLSminc(-5) },
 #define MTSSW            47
     { "mts smtp|sendmail/smtp|sendmail/pipe", 2 },
+#define MESSAGEIDSW      48
+    { "messageid localname|random", 2 },
     { NULL, 0 }
 };
 
@@ -1252,6 +1254,7 @@ sendit (char *sp, char **arg, char *file, int pushed)
                case USERSW:
                case PORTSW:
                case MTSSW:
+               case MESSAGEIDSW:
                    vec[vecp++] = --cp;
                    if (!(cp = *argp++) || *cp == '-') {
                        advise (NULL, "missing argument to %s", argp[-2]);