diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2020-07-25 20:47:55 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2020-07-25 20:47:55 +0300 |
commit | e9562a6f19d4baff5116df161954c91e684a6e3f (patch) | |
tree | b6c38ce1fdd05bca3464eae97508440213bc1f75 /libmailutils | |
parent | b3c4a8be9286967ecfd7c720f2eafd598db06cb3 (diff) | |
download | mailutils-e9562a6f19d4baff5116df161954c91e684a6e3f.tar.gz mailutils-e9562a6f19d4baff5116df161954c91e684a6e3f.tar.bz2 |
decodemail: double-quote decoded personal parts of email addresses
* decodemail/decodemail.c: Take care to double-quote decoded personal
parts of email addresses.
* libmailutils/address/parse822.c (mu_parse822_quoted_string): Don't
skip 8-bit characters.
Diffstat (limited to 'libmailutils')
-rw-r--r-- | libmailutils/address/parse822.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libmailutils/address/parse822.c b/libmailutils/address/parse822.c index 05ca9c08c..8094c5e87 100644 --- a/libmailutils/address/parse822.c +++ b/libmailutils/address/parse822.c @@ -464,14 +464,9 @@ mu_parse822_quoted_string (const char **p, const char *e, char **qstr) /* invalid character... */ *p += 1; } - else if (mu_parse822_is_char (c)) - { - rc = str_append_char (qstr, c); - *p += 1; - } else { - /* invalid character... */ + rc = str_append_char (qstr, c); *p += 1; } if (rc) |