Re: [exim] Replacing subject header when spam scanning: new …

Pàgina inicial
Delete this message
Reply to this message
Autor: Alexander Shikoff
Data:  
A: Tim Jackson
CC: exim-users
Assumpte: Re: [exim] Replacing subject header when spam scanning: new idea & FAQ suggestion
Hello,

On Sun, Nov 06, 2005 at 08:59:40AM +0000, Tim Jackson wrote:
[...skipped...]
> However, using Exim 4.52, I thought I'd give the following trick a go:
>
> IN DATA ACL (normal kind of stuff):
>   warn    message       = X-Spam-Flag: YES
>           spam          = someuser

>
> IN APPROPRIATE ROUTERn:
>   headers_remove = Subject
>   headers_add = ${if {eq{$h_X-Spam-Flag:}{YES}}
>                      {Subject: *****SPAM***** $h_Subject:}
>                      {Subject: $h_Subject:}
>                  }

>
> Superficially, this appears to work. Am I missing some obvious downside
> to this method? Is there something about the processing of headers_add
> and headers_remove that means that you might somehow end up losing the
> Subject altogether in some circumstance?


I'm using a trick like yours with exim 4.50 to remove/add header if virus
was detected. But I carry out one interesting issue: header Subject is always
being added twice. I wrote about this issue here some monthes ago, but
nobody can give a sane explanation. Can you take a look on headers after
modification? How many Subject: header do you see? Thanks.

-- 
Kind Regards,    Alexander Shikoff
minotaur@???
Mob.: +380 67 946 31 49