aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-08-10 19:03:23 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-08-10 19:03:23 +0000
commitb2e8fd732ce5e827b86f659bf7f93c5543c8ad78 (patch)
tree26efb5cca8141ed857dbb2c8320fa4e6ae4d21bc /rfc822.c
parentbc50723b35477d6d8e8305c7180762d89813dccd (diff)
downloadfetchmail-b2e8fd732ce5e827b86f659bf7f93c5543c8ad78.tar.gz
fetchmail-b2e8fd732ce5e827b86f659bf7f93c5543c8ad78.tar.bz2
fetchmail-b2e8fd732ce5e827b86f659bf7f93c5543c8ad78.zip
Ready to ship.
svn path=/trunk/; revision=3452
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rfc822.c b/rfc822.c
index 031b9973..7e110707 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -315,6 +315,12 @@ const unsigned char *hdr; /* header to be parsed, NUL to continue previous hdr *
state = INSIDE_BRACKETS;
tp = 0;
}
+ else if (*hp == '"') /* quoted word, copy verbatim */
+ {
+ oldstate = state;
+ state = INSIDE_DQUOTE;
+ address[NEXTTP()] = *hp;
+ }
else if (!isspace(*hp)) /* just take it, ignoring whitespace */
address[NEXTTP()] = *hp;
break;