From 5f683c2df3f6c04309d90851395083e9009c6206 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 28 May 1997 20:05:07 +0000 Subject: Yet more pparsing improvements. svn path=/trunk/; revision=1038 --- rfc822.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rfc822.c') diff --git a/rfc822.c b/rfc822.c index c9dc37b9..6e9dd1a9 100644 --- a/rfc822.c +++ b/rfc822.c @@ -194,6 +194,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */ else if (*hp == '(') /* address comment -- ignore */ { parendepth = 1; + oldstate = SKIP_JUNK; state = INSIDE_PARENS; } else if (*hp == '<') /* begin
*/ @@ -221,6 +222,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */ else if (*hp == '(') /* beginning of comment */ { parendepth = 1; + oldstate = BARE_ADDRESS; state = INSIDE_PARENS; } else if (*hp == '<') /* beginning of real address */ @@ -248,7 +250,7 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */ else if (*hp == ')') --parendepth; if (parendepth == 0) - state = SKIP_JUNK; + state = oldstate; break; case INSIDE_BRACKETS: /* possible <>-enclosed address */ -- cgit v1.2.3