https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8594
Bug ID: 8594
Summary: spamc --headers returns a message with no blank line
unchanged and unmarked, with exit 0 even with -x
Product: Spamassassin
Version: 4.0.2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: spamc/spamd
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: Undefined
Created attachment 6316
--> https://bz.apache.org/SpamAssassin/attachment.cgi?id=6316&action=edit
patch to treat the end of a message without a blank line as the end of the
headers under spamc --headers
spamc --headers has spamd send back only the rewritten headers of a message.
spamc then appends the body from its own copy, which follows the blank line
after the headers.
A message can consist of only headers, without the blank line that comes after
the headers when there is a body. spamc --headers finds no blank line in such a
message, so it outputs its original copy unchanged, with no X-Spam headers. It
exits 0, also with -x. In tests with report_safe 0 this happened for a message
that spamd had scored as spam.
The attached patch treats the end of a message without a blank line as the end
of the headers, with no body. spamc then appends nothing and returns the
rewritten headers from spamd. For a malformed message with a body but no blank
line after its headers, spamc returns spamd's reply instead of the original.
With report_safe 0 that is the same output as spamc gives without --headers.
--
You are receiving this mail because:
You are the assignee for the bug.