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;