aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--rcfile_l.l11
2 files changed, 7 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index b4319eb5..a8e34d6b 100644
--- a/NEWS
+++ b/NEWS
@@ -13,6 +13,7 @@ fetchmail-5.0.8 ():
* Fix to CRAM endianness patch, by Dan Root via Lawrence Rogers.
* Suppress duplicates by message ID in multidrop mode.
* NTLM support for querying Microsoft Exchange servers, from Grant Edwards.
+* Lexer fix by Brian Boutel.
There are 263 people on fetchmail-friends and 441 on fetchmail-announce.
diff --git a/rcfile_l.l b/rcfile_l.l
index 2a51ff06..f5c89b7c 100644
--- a/rcfile_l.l
+++ b/rcfile_l.l
@@ -19,7 +19,7 @@ int prc_lineno = 1;
%a 4000
%p 3000
-%s NAME
+%s NAME AUTHKIND
%%
@@ -74,10 +74,11 @@ proto(col)? { return PROTOCOL; }
service { return SERVICE; }
port { return PORT; }
interval { return INTERVAL; }
-auth(enticate)? { return AUTHENTICATE; }
-kerberos(_v)?4 { return KERBEROS4; }
-kerberos(_v)?5 { return KERBEROS5; }
-kerberos { return KERBEROS; }
+auth(enticate)? { BEGIN(AUTHKIND); return AUTHENTICATE; }
+kerberos(_v)?4 { BEGIN(0); return KERBEROS4; }
+kerberos(_v)?5 { BEGIN(0); return KERBEROS5; }
+kerberos { BEGIN(0); return KERBEROS; }
+<AUTHKIND>password { BEGIN(0); return PASSWORD; }
timeout { return TIMEOUT;}
envelope { return ENVELOPE; }
qvirtual { return QVIRTUAL; }