On Thu, Feb 26, 2004 at 12:08:21AM -0800, [EMAIL PROTECTED] wrote:
> The report_safe format should *always* be an message/rfc822 attachment.
> It's foolproof, easy, and standard -- we should stick by it.

Yeah, as long as we keep the detection of that markup the same, it
doesn't matter what the contents are.

> Now, removing markup from non-marked-as-spam messages is always going to
> be a bit more up in the air, but I think we should also try to keep this
> as stable as possible from version to version.

I think we've done pretty well at this, although we could standardize
more.  For instance, we've pretty much claimed the X-Spam-* header space,
so removing the markup there is as easy as dropping all those headers.
Old (2.4x and before) did the whole X-Spam-Prev-* thing for content-type
and the like.  I think we should continue to support that generically by
using the following algorithm and making subject/from/to rewriting put the
original in X-Spam-Prev format (as was already brought up on the list):

1) For each X-Spam-Prev-(.+) header in the message, delete $1 and rename
X-Spam-Prev-$1 to $1.

2) Delete all X-Spam-.* headers in the message


It keeps things all standardized, removes us needing to load the configs
to figure out the rewrite RE, etc, etc.

-- 
Randomly Generated Tagline:
"I believe in getting into hot water; it keeps you clean." - G. K. Chesterton

Attachment: pgpvXzaHXPjkk.pgp
Description: PGP signature

Reply via email to