diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-05 14:59:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-05-05 14:59:33 +0100 |
commit | 5dd1ccbb33e53b9a3903970bbd623569869ad008 (patch) | |
tree | a7bb39de8f90e042019e7ed7e9bcd286d174393e /src/libmime/mime_parser.c | |
parent | 569825264466b743f741514f117afae29c4b8dad (diff) | |
download | rspamd-5dd1ccbb33e53b9a3903970bbd623569869ad008.tar.gz rspamd-5dd1ccbb33e53b9a3903970bbd623569869ad008.zip |
[Minor] Allow attaching of urls to the mime parts
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index 590ee57d6..4fc37ad3d 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -683,6 +683,7 @@ rspamd_mime_parse_normal_part (struct rspamd_task *task, } part->part_number = MESSAGE_FIELD (task, parts)->len; + part->urls = g_ptr_array_new (); g_ptr_array_add (MESSAGE_FIELD (task, parts), part); msg_debug_mime ("parsed data part %T/%T of length %z (%z orig), %s cte", &part->ct->type, &part->ct->subtype, part->parsed_data.len, @@ -1017,6 +1018,7 @@ rspamd_mime_parse_multipart_part (struct rspamd_task *task, } part->part_number = MESSAGE_FIELD (task, parts)->len; + part->urls = g_ptr_array_new (); g_ptr_array_add (MESSAGE_FIELD (task, parts), part); st->nesting ++; rspamd_mime_part_get_cte (task, part->raw_headers, part, FALSE); |