| Main Archive Page > Month Archives > spamassassin-dev archives |
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6692
--- Comment #4 from Karsten Bräckelmann <guenther@rudersport.de> 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: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.