You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/09/24 04:34:19 UTC
[Bug 3816] New: Add an X-header to know when added a Subject header
http://bugzilla.spamassassin.org/show_bug.cgi?id=3816
Summary: Add an X-header to know when added a Subject header
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P3
Component: spamassassin
AssignedTo: dev@spamassassin.apache.org
ReportedBy: lwilton@earthlink.net
This comes from thinking about bug 3605.
The objection to adding a Subject header when none exists seems to be that
there is no way to tell that the header did not previously exist; thus there is
no way to safely strip the added Subject header back out when recreating the
pristine mail.
The obvious solution would seem to be to know when the header was added when it
did not previously exist.
I can see two potential fairly trivial and completely reversable ways to do
this.
1. Add an X-Spam-Added-Subject-Header: Yes
2. Since there was no Subject header, there was no subject header text. Create
a Subject header that includes unique text such as "Subject Header added by
SpamAssassin", in addition to whatever the 'rewrite' rules require for the
Subject header.
With either method, SA can now reasonably unequivocably determine that it added
a subject header where none had previously existed, and remove it when
rebuilding the pristene message.
(For the objection that either of these headers can be faked in the original
mail, and the result would then not be identical to the original mail, I submit
that X-Spam-Status and the like get stripped from the original mail anyway, and
can not be put back when rebuilding the pristine mail. Thus, even now it is
impossible to accurately rebuild the original message if it contains certian SA-
generated text/headers. This would be in no way different.)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.