[exim] address_data

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Craig Jackson
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] address_data
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?


Thanks,
Craig Jackson