Skip to content

Commit

Permalink
[Minor] Do not propagate broken headers flag for attached messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Apr 3, 2023
1 parent f62b23f commit e9fec34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libmime/mime_headers.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ rspamd_mime_headers_process (struct rspamd_task *task,
}
else if (g_ascii_isspace (*p)) {
/* Not header but some garbage */
task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS;
if (target == MESSAGE_FIELD (task, raw_headers)) {
/* Do not propagate flag from the attachments */
task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS;
}
state = 100;
next_state = 0;
}
Expand Down

1 comment on commit e9fec34

@aTanW
Copy link

@aTanW aTanW commented on e9fec34 Apr 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Please sign in to comment.