From d33724740bb99f811af62490fb704d8578710197 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 1 Aug 2001 07:19:56 +0000 Subject: Handle RFC2822 use of !. svn path=/trunk/; revision=3433 --- rfc822.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rfc822.c b/rfc822.c index 4fec9941..031b9973 100644 --- a/rfc822.c +++ b/rfc822.c @@ -101,7 +101,7 @@ const unsigned char *host; /* server hostname */ last_nws = *from; if (*from == '<') state = 3; - else if (*from == '@') + else if (*from == '@' || *from == '!') has_host_part = TRUE; else if (*from == '"') state = 2; @@ -158,7 +158,7 @@ const unsigned char *host; /* server hostname */ break; case 3: /* we're in a <>-enclosed address */ - if (*from == '@') + if (*from == '@' || *from == '!') has_host_part = TRUE; else if (*from == '>' && from[-1] != '<') { -- cgit v1.2.3