aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rfc822.c b/rfc822.c
index 0d9f448b..f7a74212 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -162,8 +162,11 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */
}
else if (*hp == '\\') /* handle RFC822 escaping */
{
- *tp++ = *hp++; /* take the escape */
- *tp++ = *hp; /* take following char */
+ if (state != INSIDE_PARENS)
+ {
+ *tp++ = *hp++; /* take the escape */
+ *tp++ = *hp; /* take following char */
+ }
}
else switch (state)
{