Re: [Exim] "@@" mechanism in a ${lookup } command

Top Pagina
Delete this message
Reply to this message
Auteur: Marcin Owsiany
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] "@@" mechanism in a ${lookup } command
On Thu, Aug 01, 2002 at 04:52:52PM +0100, Philip Hazel wrote:
> On Thu, 1 Aug 2002, Marcin Owsiany wrote:
>
> > headers_add = "${lookup{$return_path}@@dbm{/my/list.dbm}{X-Header: yes}}"
> >
> > Exim says "Failed to expand headers_add or headers_remove: missing
> > lookup type".
>
> You've used the wrong syntax. The "@@" shouldn't be there. Just remove
> it. Take a look at the section on lookups in the chapter on string
> expansions.


But dbm;/some/list.dbm is quite different from @@dbm;/some/list.dbm

The first one only looks up a value for a key (domain), and the second
one also looks for the local part in the value.

Marcin
--
Marcin Owsiany <marcin@???>              http://marcin.owsiany.pl/
GnuPG: 1024D/60F41216  FE67 DA2D 0ACA FC5E 3F75  D6F6 3A0D 8AA0 60F4 1216


"Every program in development at MIT expands until it can read mail."
                                                              -- Unknown