[exim] How to remove all X-Spam* headers

Top Page
Delete this message
Reply to this message
Author: Jörg Sommer
Date:  
To: exim-users
Subject: [exim] How to remove all X-Spam* headers
Hi,

is it possible to remove all headers they match a pattern in a router? I
saw different headers beginning with X-Spam or X-List. I want to remove
them all. The only idea I have is to extract all these header names from
$message_headers. Is there an easier way?

headers_remove = ${sg{$message_headers}{:.*\n}{:}}

Kind regards, Jörg.
-- 
“…anytime you install something new on the Windows platform, you risk
spending the next five or six hours trying to figure out what happened”
            (Robert Roblin, Adobe)