Re: [Exim] Modifying a subject header

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: Tobias Galitzien
CC: Exim List
題目: Re: [Exim] Modifying a subject header
On Thu, 16 Mar 2000, Tobias Galitzien wrote:

> Explicitly: I have set rbl_warn_header so every mail coming from a host
> in RBL does carry the X-RBL-Warning header. Now I want to change the
> subject of every mail with this X-RBL-Warning header to "SPAM: <original
> subject>".
>
> Any easy (or not so easy) way to do this?


In a system filter, this might work. I have not tried it, so no
guarantee:

if $h_X-RBL-Warning: is not "" then

headers add "New-Subject: SPAM: $h_subject:"
headers remove subject
neaders add "Subject: $h_new-subject:"
headers remove new-subject

endif

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.