]> diplodocus.org Git - nmh/blobdiff - uip/send.c
README.manpages: Add `Common errors and subjective conventions'.
[nmh] / uip / send.c
index a205dfec1ffeba2db8cc83351cf4f4b9032b238a..de94af2dc9b046f0aa35d9e10c0ec1ca56370d15 100644 (file)
@@ -73,6 +73,8 @@
     X("tls", TLSminc(-3), TLSSW) \
     X("initialtls", TLSminc(-10), INITTLSSW) \
     X("notls", TLSminc(-5), NTLSSW) \
+    X("certverify", TLSminc(-10), CERTVERSW) \
+    X("nocertverify", TLSminc(-12), NOCERTVERSW) \
     X("sendmail program", 0, MTSSM) \
     X("mts smtp|sendmail/smtp|sendmail/pipe", 2, MTSSW) \
     X("messageid localname|random", 2, MESSAGEIDSW) \
@@ -241,7 +243,8 @@ main (int argc, char **argv)
                    continue;
 
                case DEBUGSW: 
-                   debugsw++;  /* fall */
+                   debugsw++;
+                   /* FALLTHRU */
                case NFILTSW: 
                case FRMTSW: 
                case NFRMTSW: 
@@ -256,6 +259,8 @@ main (int argc, char **argv)
                case TLSSW:
                case INITTLSSW:
                case NTLSSW:
+               case CERTVERSW:
+               case NOCERTVERSW:
                    vec[vecp++] = --cp;
                    continue;
 
@@ -278,8 +283,8 @@ main (int argc, char **argv)
 
                case SASLMECHSW:
                    if (!(saslmech = *argp) || *saslmech == '-')
-                       adios (NULL, "missing argument to %s", argp[-2]);
-                   /* Fall through */
+                       adios (NULL, "missing argument to %s", argp[-1]);
+                   /* FALLTHRU */
 
                case ALIASW: 
                case FILTSW: 
@@ -297,14 +302,14 @@ main (int argc, char **argv)
                    continue;
                
                case ATTACHSW:
-                   advise(NULL, "The -attach switch is deprecated");
+                   inform("The -attach switch is deprecated");
                    continue;
                case NOATTACHSW:
-                   advise(NULL, "The -noattach switch is deprecated");
+                   inform("The -noattach switch is deprecated");
                    continue;
 
                case ATTACHFORMATSW:
-                   advise(NULL, "The -attachformat switch is deprecated");
+                   inform("The -attachformat switch is deprecated");
                    continue;
            }
        } else {
@@ -342,7 +347,7 @@ main (int argc, char **argv)
                        showfile (++argp, msgs[0]);
                        break;
                    default:
-                       advise (NULL, "say what?");
+                       inform("say what?");
                        break;
                }
            }
@@ -479,8 +484,10 @@ go_to_it:
         switch (sendsbr (vec, vecp, program, msgs[msgnum], &st, 1, auth_svc)) {
            case DONE: 
                done (++status);
+               /* FALLTHRU */
            case NOTOK: 
-               status++;       /* fall */
+               status++;
+               /* FALLTHRU */
            case OK:
                break;
        }