Tony Finch ha scritto:
>> In a router I've tried this:
>> local_part_suffix= +${substr{6}{2}{$tod_logfile}}
>> local_part_suffix_optional
>> to accept email addressed to user+currentdayofmonth@domain but doesn't
>> work. The suffix never matches. What's wrong?
> local_part_suffix is not expanded.
Ach...
I've resolved with this router:
## Accept user-ddmmyyyy@domain and redirect to user@domain
auto_daily_alias:
driver = redirect
check_ancestor
condition = ${if eq {${substr{-9}{10}{$local_part}}}
{-${substr{6}{2}{$tod_logfile}}${substr{4}{2}{$tod_logfile}}${substr{0}{4}{$tod_logfile}}}
{true}{false}}
data = ${substr{-9}{$local_part}}@$domain