Re: [exim] address_data

Góra strony
Delete this message
Reply to this message
Autor: Craig Jackson
Data:  
Dla: cjackson
CC: exim-users
Temat: Re: [exim] address_data
Craig Jackson wrote:
> Hi,
> I'd like to use address_data to hold a value, but I'm unsure of the
> syntax. These are the routers. Is this correct?
>
> # Route user mail to IMAP junk folders
> # send_to_user_imap:
> #    driver = accept
> #    address_data = $address_data junk_delivery=${lookup 
> mysql{MYSQL_USE_SA}{$value}{0}}
> #    condition = ${if and { \
> #       { def:h_X-Cheetah-Spam:} \
> #       { eq {${extract{junk_delivery}{$address_data}}}{-1}} \
> #       }{1}{0}}
> #    transport = user_junk
> #    unseen

>
> # Keep copy of mail routed to users IMAP folders
> # keep_copy_spam:
> #    driver = accept
> #    condition = ${if and { \
> #       { def:h_X-Cheetah-Spam:} \
> #       { eq {${extract{junk_delivery}{$address_data}}}{-1}} \
> #       }{1}{0}}
> #    transport = save_spam

>
> Is there a better wayto do this?


Nevermind. I found a better way: set acl_m4 in the content scanning acl
to be the result of the MYSQL_USE_SA and use that variable ib the router.