aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-10 16:24:00 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-12-10 16:24:00 +0000
commit772964f83b82f6d597e22c8b4d08220ab7df3f43 (patch)
tree2b60442a53ab5f65f9676f97c56726a8c70f08a8 /src
parentf5ba29a49be3ed568aa9009bc000e5d9d6fc57bc (diff)
downloadrspamd-772964f83b82f6d597e22c8b4d08220ab7df3f43.tar.gz
rspamd-772964f83b82f6d597e22c8b4d08220ab7df3f43.zip
Revert "Revert "[Fix] Use decoded values when parsing mime addresses""
This reverts commit a4255c642865592ed07c79113d78c86d1650d27c.
Diffstat (limited to 'src')
-rw-r--r--src/libmime/mime_headers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index 12661f0ea..2769ae633 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -53,22 +53,22 @@ rspamd_mime_header_check_special (struct rspamd_task *task,
break;
case 0x76F31A09F4352521ULL: /* to */
task->rcpt_mime = rspamd_email_address_from_mime (task->task_pool,
- rh->value, strlen (rh->value), task->rcpt_mime);
+ rh->decoded, strlen (rh->decoded), task->rcpt_mime);
rh->type = RSPAMD_HEADER_TO|RSPAMD_HEADER_RCPT|RSPAMD_HEADER_UNIQUE;
break;
case 0x7EB117C1480B76ULL: /* cc */
task->rcpt_mime = rspamd_email_address_from_mime (task->task_pool,
- rh->value, strlen (rh->value), task->rcpt_mime);
+ rh->decoded, strlen (rh->decoded), task->rcpt_mime);
rh->type = RSPAMD_HEADER_CC|RSPAMD_HEADER_RCPT|RSPAMD_HEADER_UNIQUE;
break;
case 0xE4923E11C4989C8DULL: /* bcc */
task->rcpt_mime = rspamd_email_address_from_mime (task->task_pool,
- rh->value, strlen (rh->value), task->rcpt_mime);
+ rh->decoded, strlen (rh->decoded), task->rcpt_mime);
rh->type = RSPAMD_HEADER_BCC|RSPAMD_HEADER_RCPT|RSPAMD_HEADER_UNIQUE;
break;
case 0x41E1985EDC1CBDE4ULL: /* from */
task->from_mime = rspamd_email_address_from_mime (task->task_pool,
- rh->value, strlen (rh->value), task->from_mime);
+ rh->decoded, strlen (rh->decoded), task->from_mime);
rh->type = RSPAMD_HEADER_FROM|RSPAMD_HEADER_SENDER|RSPAMD_HEADER_UNIQUE;
break;
case 0x43A558FC7C240226ULL: /* message-id */ {