diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-08-01 07:19:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-08-01 07:19:56 +0000 |
commit | d33724740bb99f811af62490fb704d8578710197 (patch) | |
tree | a74e37a5b72cc285b7e16dba5eed34374836199e | |
parent | 7f04e83b85169d0981d860be24e861c52bfb74f6 (diff) | |
download | fetchmail-d33724740bb99f811af62490fb704d8578710197.tar.gz fetchmail-d33724740bb99f811af62490fb704d8578710197.tar.bz2 fetchmail-d33724740bb99f811af62490fb704d8578710197.zip |
Handle RFC2822 use of !.
svn path=/trunk/; revision=3433
-rw-r--r-- | rfc822.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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] != '<') { |