aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-08-01 07:19:56 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-08-01 07:19:56 +0000
commitd33724740bb99f811af62490fb704d8578710197 (patch)
treea74e37a5b72cc285b7e16dba5eed34374836199e
parent7f04e83b85169d0981d860be24e861c52bfb74f6 (diff)
downloadfetchmail-d33724740bb99f811af62490fb704d8578710197.tar.gz
fetchmail-d33724740bb99f811af62490fb704d8578710197.tar.bz2
fetchmail-d33724740bb99f811af62490fb704d8578710197.zip
Handle RFC2822 use of !.
svn path=/trunk/; revision=3433
-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] != '<')
{