diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-24 14:46:00 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-05-24 14:46:00 +0100 |
commit | 7f71260a4eb5467a6e99e08c4d6aa8f8d5449c18 (patch) | |
tree | a097a4501667a05b6883ab06d287f7c9a96b1612 /src/libmime | |
parent | c34d732005404401bb2646f5f4f2bf6b81891197 (diff) | |
download | rspamd-7f71260a4eb5467a6e99e08c4d6aa8f8d5449c18.tar.gz rspamd-7f71260a4eb5467a6e99e08c4d6aa8f8d5449c18.zip |
[Minor] Fix processing message ids without braces
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/mime_headers.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c index caf69cd16..cf6d0f763 100644 --- a/src/libmime/mime_headers.c +++ b/src/libmime/mime_headers.c @@ -73,32 +73,32 @@ rspamd_mime_header_check_special (struct rspamd_task *task, end = p + strlen (p); if (*p == '<') { - p ++; + p++; + } - if (end > p) { - gchar *d; + if (end > p) { + gchar *d; - if (*(end - 1) == '>') { - end --; - } + if (*(end - 1) == '>') { + end --; + } - id = rspamd_mempool_alloc (task->task_pool, end - p + 1); - d = id; + id = rspamd_mempool_alloc (task->task_pool, end - p + 1); + d = id; - while (p < end) { - if (g_ascii_isgraph (*p)) { - *d++ = *p++; - } - else { - *d++ = '?'; - p++; - } + while (p < end) { + if (g_ascii_isgraph (*p)) { + *d++ = *p++; + } + else { + *d++ = '?'; + p++; } + } - *d = '\0'; + *d = '\0'; - task->message_id = id; - } + task->message_id = id; } break; |