aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c4
1 files 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] != '<')
{