projects
/
mmh
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
706236b
)
Add support for a -nosasl switch.
author
Ken Hornstein
<kenh@pobox.com>
Sun, 25 Nov 2012 04:50:31 +0000
(23:50 -0500)
committer
Ken Hornstein
<kenh@pobox.com>
Sun, 25 Nov 2012 05:50:01 +0000
(
00:50
-0500)
man/inc.man
patch
|
blob
|
history
uip/inc.c
patch
|
blob
|
history
diff --git
a/man/inc.man
b/man/inc.man
index
5156db8
..
627c20e
100644
(file)
--- a/
man/inc.man
+++ b/
man/inc.man
@@
-34,7
+34,7
@@
inc \- incorporate new mail
.RB [ \-nopack ]
.RB [ \-proxy
.IR command ]
.RB [ \-nopack ]
.RB [ \-proxy
.IR command ]
-.RB [ \-sasl ]
+.RB [ \-sasl " | " \-nosasl ]
.RB [ \-saslmech
.IR mechanism ]
.RB [ \-snoop ]
.RB [ \-saslmech
.IR mechanism ]
.RB [ \-snoop ]
@@
-320,6
+320,7
@@
switch.
.RB ` \-changecur '
.RB ` \-format "' defaulted as described above"
.RB ` \-nosilent '
.RB ` \-changecur '
.RB ` \-format "' defaulted as described above"
.RB ` \-nosilent '
+.RB ` \-nosasl '
.RB ` \-truncate "' if `" \-file " name' not given, `" \-notruncate "' otherwise"
.RB ` \-width "' defaulted to the width of the terminal"
.RB ` \-nopack '
.RB ` \-truncate "' if `" \-file " name' not given, `" \-notruncate "' otherwise"
.RB ` \-width "' defaulted to the width of the terminal"
.RB ` \-nopack '
diff --git
a/uip/inc.c
b/uip/inc.c
index
12da6ba
..
8716edd
100644
(file)
--- a/
uip/inc.c
+++ b/
uip/inc.c
@@
-89,9
+89,11
@@
static struct swit switches[] = {
{ "snoop", -5 },
#define SASLSW 20
{ "sasl", SASLminc(-4) },
{ "snoop", -5 },
#define SASLSW 20
{ "sasl", SASLminc(-4) },
-#define SASLMECHSW 21
+#define NOSASLSW 21
+ { "nosasl", SASLminc(-6) },
+#define SASLMECHSW 22
{ "saslmech", SASLminc(-8) },
{ "saslmech", SASLminc(-8) },
-#define PROXYSW 22
+#define PROXYSW 23
{ "proxy command", 0 },
{ NULL, 0 }
};
{ "proxy command", 0 },
{ NULL, 0 }
};
@@
-359,6
+361,9
@@
main (int argc, char **argv)
case SASLSW:
sasl++;
continue;
case SASLSW:
sasl++;
continue;
+ case NOSASLSW:
+ sasl = 0;
+ continue;
case SASLMECHSW:
if (!(saslmech = *argp++) || *saslmech == '-')
case SASLMECHSW:
if (!(saslmech = *argp++) || *saslmech == '-')