Re: [exim] How to modify the Subject header

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marc Haber
Date:  
À: exim-users
Sujet: Re: [exim] How to modify the Subject header
On Sat, 3 Jun 2006 20:03:30 +0100, "John Hall" <j@???> wrote:
>I'm running SpamAssassin in the data ACL. I have the following in my
>ACLS that adds a modified subject header:
>
> warn  message = X-Local-NewSubject: [spam $spam_score] $h_Subject:
>        condition = ${if >{$spam_score_int}{50}{1}{0}}

>
>And then in the system filter I replace the original header with the new one:
>
>if $h_X-Local-NewSubject: is not "" then
>        headers add "X-Local-OldSubject: $h_Subject"
>        headers remove "Subject"
>        headers add "Subject: $h_X-Local-NewSubject"
>        headers remove "X-Local-NewSubject"
>endif


There is a better way using ACL variables mentioned in the wiki. Why
do people keep posting outdated and deprecated mechanisms?

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834