spamassassin-dev November 2011 archive
Main Archive Page > Month Archives  > spamassassin-dev archives
spamassassin-dev: [Bug 6692] add_header - "template tag&quo

[Bug 6692] add_header - "template tag" conditional

From: <bugzilla-daemon_at_nospam>
Date: Sun Nov 06 2011 - 00:14:06 GMT

--- Comment #4 from Karsten Bräckelmann <> 2011-11-06 00:14:06 UTC ---
(In reply to comment #3)
> add_header_cond all _FOO_ _BAR_

Ah, the "languages" repetition in the original example! Forgot the header name,
should have been

      add_header_cond all HeaderName _FOO_ _BAR_

Same with (b) of course.

> An alternative would be, to implement an option to remove headers if empty.
> add_header all Languages _LANGUAGES_
> hack_header all Languages
> The first option is the traditional, unconditional add_header, or possibly the
> default as with the Level header. The second marks the header for suppression,
> if empty. This also works out of the box with stock headers, without resorting
> to the remove_header option.

And also can be used to specify a different type for conditional removal, if
desired, like "ham" or "spam" even if the stock header is added to "all".

-- Configure bugmail: ------- You are receiving this mail because: ------- You are the assignee for the bug.