aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/rfc822.c b/rfc822.c
index 909b1b7b..5f8e21b7 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -145,7 +145,16 @@ const unsigned char *host; /* server hostname */
case 2: /* we're in a string */
if (*from == '"')
- state = 1;
+ {
+ char *bp;
+ int bscount;
+
+ bscount = 0;
+ for (bp = from - 1; *bp == '\\'; bp--)
+ bscount++;
+ if (bscount % 2)
+ state = 1;
+ }
break;
case 3: /* we're in a <>-enclosed address */