From: David Levine Date: Thu, 24 Mar 2016 01:40:31 +0000 (-0400) Subject: Changed sign of minchars for the SASL-related switches from X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/630af73cbbf6d7a883bb3011937ad5e87508d18b?ds=inline;hp=-c Changed sign of minchars for the SASL-related switches from negative to positive so the won't be hidden from help messages. I think. --- 630af73cbbf6d7a883bb3011937ad5e87508d18b diff --git a/uip/inc.c b/uip/inc.c index a47b3367..f1bafd90 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -70,10 +70,10 @@ X("version", 0, VERSIONSW) \ X("help", 0, HELPSW) \ X("snoop", -5, SNOOPSW) \ - X("sasl", SASLminc(-4), SASLSW) \ - X("nosasl", SASLminc(-6), NOSASLSW) \ - X("saslmech", SASLminc(-8), SASLMECHSW) \ - X("authservice", SASLminc(-11), AUTHSERVICESW) \ + X("sasl", SASLminc(5), SASLSW) \ + X("nosasl", SASLminc(3), NOSASLSW) \ + X("saslmech", SASLminc(5), SASLMECHSW) \ + X("authservice", SASLminc(0), AUTHSERVICESW) \ X("proxy command", 0, PROXYSW) \ #define X(sw, minchars, id) id, diff --git a/uip/mhlogin.c b/uip/mhlogin.c index a08305c8..e6b791b6 100644 --- a/uip/mhlogin.c +++ b/uip/mhlogin.c @@ -13,11 +13,11 @@ #include #define MHLOGIN_SWITCHES \ - X("saslmech", 1, SASLMECHSW) \ - X("authservice", -11, AUTHSERVICESW) \ - X("snoop", 1, SNOOPSW) \ - X("help", 1, HELPSW) \ - X("version", 1, VERSIONSW) \ + X("saslmech", 0, SASLMECHSW) \ + X("authservice", 0, AUTHSERVICESW) \ + X("snoop", 0, SNOOPSW) \ + X("help", 0, HELPSW) \ + X("version", 0, VERSIONSW) \ #define X(sw, minchars, id) id, DEFINE_SWITCH_ENUM(MHLOGIN); diff --git a/uip/msgchk.c b/uip/msgchk.c index d1b1cb78..e0eaeb8b 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -31,9 +31,9 @@ X("version", 0, VERSIONSW) \ X("help", 0, HELPSW) \ X("snoop", -5, SNOOPSW) \ - X("sasl", SASLminc(-4), SASLSW) \ - X("saslmech", SASLminc(-5), SASLMECHSW) \ - X("authservice", SASLminc(-11), AUTHSERVICESW) \ + X("sasl", SASLminc(4), SASLSW) \ + X("saslmech", SASLminc(5), SASLMECHSW) \ + X("authservice", SASLminc(0), AUTHSERVICESW) \ X("proxy command", 0, PROXYSW) \ #define X(sw, minchars, id) id, diff --git a/uip/post.c b/uip/post.c index 836a817c..db457ad2 100644 --- a/uip/post.c +++ b/uip/post.c @@ -76,11 +76,11 @@ X("server host", 6, SERVSW) /* specify alternate SMTP server */ \ X("snoop", -5, SNOOPSW) /* snoop the SMTP transaction */ \ X("partno", -6, PARTSW) \ - X("sasl", SASLminc(-4), SASLSW) \ - X("nosasl", SASLminc(-6), NOSASLSW) \ - X("saslmaxssf", SASLminc(-10), SASLMXSSFSW) \ - X("saslmech", SASLminc(-5), SASLMECHSW) \ - X("authservice", SASLminc(-11), AUTHSERVICESW) \ + X("sasl", SASLminc(4), SASLSW) \ + X("nosasl", SASLminc(6), NOSASLSW) \ + X("saslmaxssf", SASLminc(10), SASLMXSSFSW) \ + X("saslmech", SASLminc(5), SASLMECHSW) \ + X("authservice", SASLminc(0), AUTHSERVICESW) \ X("user", SASLminc(-4), USERSW) \ X("port server submission port name/number", 4, PORTSW) \ X("tls", TLSminc(-3), TLSSW) \ diff --git a/uip/send.c b/uip/send.c index a9d48420..a623964f 100644 --- a/uip/send.c +++ b/uip/send.c @@ -62,10 +62,10 @@ X("server host", 6, SERVSW) \ X("snoop", 5, SNOOPSW) \ X("sasl", SASLminc(4), SASLSW) \ - X("nosasl", SASLminc(-6), NOSASLSW) \ - X("saslmaxssf", SASLminc(-10), SASLMXSSFSW) \ - X("saslmech mechanism", SASLminc(-5), SASLMECHSW) \ - X("authservice", SASLminc(-11), AUTHSERVICESW) \ + X("nosasl", SASLminc(6), NOSASLSW) \ + X("saslmaxssf", SASLminc(6), SASLMXSSFSW) \ + X("saslmech mechanism", SASLminc(6), SASLMECHSW) \ + X("authservice", SASLminc(0), AUTHSERVICESW) \ X("user username", SASLminc(-4), USERSW) \ X("attach", -6, ATTACHSW) \ X("noattach", -8, NOATTACHSW) \ diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index b9518e8b..0aca3e97 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -945,12 +945,12 @@ buildfile (char **argp, char *file) X("draftfolder +folder", -6, SDRFSW) \ X("draftmessage msg", -6, SDRMSW) \ X("nodraftfolder", -3, SNDRFSW) \ - X("sasl", SASLminc(-4), SASLSW) \ - X("nosasl", SASLminc(-6), NOSASLSW) \ - X("saslmaxssf", SASLminc(-10), SASLMXSSFSW) \ - X("saslmech", SASLminc(-5), SASLMECHSW) \ - X("authservice", SASLminc(-11), AUTHSERVICESW) \ - X("user username", SASLminc(-4), USERSW) \ + X("sasl", SASLminc(4), SASLSW) \ + X("nosasl", SASLminc(6), NOSASLSW) \ + X("saslmaxssf", SASLminc(10), SASLMXSSFSW) \ + X("saslmech", SASLminc(5), SASLMECHSW) \ + X("authservice", SASLminc(0), AUTHSERVICESW) \ + X("user username", SASLminc(4), USERSW) \ X("attach fieldname", 6, SNDATTACHSW) \ X("noattach", 0, SNDNOATTACHSW) \ X("attachformat", 7, SNDATTACHFORMAT) \