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

Top Page
Delete this message
Reply to this message
Author: Marcin Owsiany
Date:  
To: exim-users
Subject: Re: [Exim] "@@" mechanism in a ${lookup } command
On Fri, Aug 02, 2002 at 07:29:06PM +0200, Marcin Owsiany wrote:
> But dbm;/some/list.dbm is quite different from @@dbm;/some/list.dbm


Oh well, I managed to emulate the "@@" behavior with the following rule:

  headers_add = "${if \
        or{\
                {match\
                 {${lookup{${domain:${return_path}}}dbm{/etc/exim/lista.dbm}}}\
                 {(^|:)${local_part:${return_path}}(\\$|:)}\
                }\
                {match\
                 {${lookup{${domain:${return_path}}}dbm{/etc/exim/lista.dbm}}}\
                 {(^|:)\\\\*(\\$|:)}\
                }\
        }\
        {X-Header: yes}\
        {X-Header: no}\
  }"


(Note: those using an old version of exim need to modify the "lookup" to
include "$value":

       {${lookup{${domain:${return_path}}}dbm{/etc/exim/lista.dbm}{$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