]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix processing message ids without braces
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 May 2019 13:46:00 +0000 (14:46 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 24 May 2019 13:46:00 +0000 (14:46 +0100)
src/libmime/mime_headers.c

index caf69cd16623f8aed770bbfe08a9ae38923ebb3c..cf6d0f763c5044899809b72527884d9a667c72a4 100644 (file)
@@ -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;