Re: [Exim] $sender_data in 4.34?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Marilyn Davis
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] $sender_data in 4.34?
On Sun, 20 Jun 2004, Fred Viles wrote:

> On 20 Jun 2004 at 15:00, Marilyn Davis wrote about
>     "[Exim] $sender_data in 4.34?":

>
> | I'm trying to use the new $sender_data feature:
> |...
> | So I'm checking senders in a router, and checking the value of
> | $sender_data in the next router:
> |...
> | get_outside_id:
> |   driver = redirect
> |   senders = OUTSIDE_ID
> |   debug_print = get_outside_id sender_data = $sender_data
> |   data =
> |
> | get_inside_id:
> |   driver = redirect
> |   debug_print = get_inside_id sender_data = $sender_data
> |   address_data = ADDRESS_INFO
> |   data =
> |...
> | expanding: ${lookup mysql{select addresses.id from addresses, domains where addresses.local_part='${quote_mysql:$sender_address_local_part}'and domains.name='${quote_mysql:$sender_address_domain}' and domains.id=addresses.domain_id}{$value}{0}}
> |    result: 59
> | address match: subject=marilyn@??? pattern=59
> | deliberate.com in "59"? no (end of list)
> | marilyn@??? in "59"? no (end of list)
> | get_outside_id router skipped: senders mismatch
> |...

>
> | And it goes on. There's no data in sender_data. What am I doing wrong?
>
> Just a guess, but I wouldn't be surprised if the senders= condition
> needs to *succeed* for $sender_data to be set.


Thank you Fred. That's a good idea.

So I brute-forced a successful senders condition:

get_outside_id:
driver = redirect
senders = marilyn@???
debug_print = get_outside_id sender_data = $sender_data
data =

get_inside_id:
driver = redirect
debug_print = get_inside_id sender_data = $sender_data
address_data = ADDRESS_INFO
data =

And the debug went:

--------> get_outside_id router <--------
local_part=marilyn domain=maildance.com
checking senders
address match: subject=marilyn@??? pattern=marilyn@???
deliberate.com in "deliberate.com"? yes (matched "deliberate.com")
marilyn@??? in "marilyn@???"? yes (matched "marilyn@???")
expanding: get_outside_id sender_data = $sender_data
result: get_outside_id sender_data =
get_outside_id sender_data =
calling get_outside_id router
rda_interpret (string):
expanded:
file is not a filter file
parse_forward_list:
get_outside_id router declined for marilyn@???
--------> get_inside_id router <--------
local_part=marilyn domain=maildance.com
expanding: get_inside_id sender_data = $sender_data
result: get_inside_id sender_data =
get_inside_id sender_data =
processing address_data
expanding: $domain
result: maildance.com
expanding: $local_part
result: marilyn
expanding: select addresses.id from addresses, domains where addresses.domain_id = domains.id and domains.name= '${quote_mysql:$domain}' and addresses.local_part = '${quote_mysql:$local_part}'

So, that didn't work.

Nice idea though.

Thank you.

Marilyn




>
> - Fred
>
>
>
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##
>
>


--