Re: [exim] supplying headers_add from an lsearch won't work

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Lena
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] supplying headers_add from an lsearch won't work
> From: Don Walker

> I also want to add headers in the same manner using another file which
> also contains an entry for each list with the headers_add content, as in
>
> headers_add = ${lookup{$local_part}lsearch{/etc/exim/mladdhdr}}
>
> where the file mladdhdr contains entries like
>
> mylist: To: aaaaa@??? \n\ From: xxxxx@???


Try:

headers_add = ${expand:${lookup{$local_part}lsearch{/etc/exim/mladdhdr}}}

mylist: To: aaaaa@???\nFrom: xxxxx@???