On 4/14/2013 9:16 AM, Marc Perkel wrote:
I'm trying to run a command and return the result into a variable in an ACL. How do you do that? The docs needs an example.

The command examples are:

date +%s
date --d $h_date: +%s

Thanks in advance.




I figured it out

# Date and Age

warn    condition = ${if def:h_Date:}
    set acl_m_now = ${run{/bin/date +%s}}
    set acl_m_date = ${run{/bin/date -d "$h_Date:" +%s}}
    set acl_m_age = ${eval:($acl_m_now-$acl_m_date)/86400}



--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to