Re: [exim] Feature Request

Pàgina inicial
Delete this message
Reply to this message
Autor: Christian Schmidt
Data:  
A: exim-users
Assumpte: Re: [exim] Feature Request
Hello Marc,

Marc Perkel, 21.04.2006 (d.m.y):

> Marc Perkel wrote:
> > Like to have a feature like add_header called perhaps add_unique_header
> > which will only add the header if that header isn't already there.
> >
> >
> Also would like to see a replace_header command to delete and existing
> header if there and replace it with a newer version.


That can be done using a system filter, e.g.:

### Tag Subject line of recognized Spam Mails:
if "${if def:header_X-New-Subject: {there}}" is there
then
headers remove subject
headers add "Subject: $h_X-New-Subject:"
headers remove X-New-Subject
endif

...where the X-New-Subject: is created in an ACL.

Regards,
Christian Schmidt

--
Am Abend manche Hülle fällt, die sonst des Leibes Fülle hält.