> 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?

> However the first pattern doesn't seem robust to me. It excludes
> something that has 'backup' in the middle of the localpart.

That’s a feature! Or a kuludge, more likely. (If someone is already sending to 
a ‘backup’ account then the message isn’t backed up again).


-- 
Apple broke AppleScripting signatures in Mail.app, so no random signatures.

Reply via email to