On 2/9/2017 11:47 AM, @lbutlr wrote:
> 
>> On Feb 7, 2017, at 5:10 PM, Wietse Venema <wie...@porcupine.org> wrote:
>>
>> @lbutlr:
>>> if !/backup.*@/
>>> /^([^+_]*).*@(.*)/   backup+${1}.${2}@domain.tld
>>> endif
>>>
>>> […]
>>>
>>> However, I would like to exclude a specific domain from this backup =
>>> including all mail TO and FROM the domain.
>>
>> if !/backup.*@/
>> if !/@example\.com$/
>> /^([^+_]*).*@(.*)/   backup+${1}.${2}@domain.tld
>> endif
>> endif
> 
> And if a second domain wants the same exclusion? I can’t do multiple tests in 
> the map, right?

I think you'll have to nest more if..endif statements for the
negative matching to work.

if !/backup.*@/
if !/@example\.com$/
if !/@example\.org$/
/^([^+_]*).*@(.*)/   backup+${1}.${2}@domain.tld
endif
endif
endif



  -- Noel Jones

Reply via email to