Author: Andrew C Aitchison Date: To: exim-users CC: George L. Yermulnik, Gary Stainburn Subject: Re: [exim] exim filters to/from/cc address
On Tue, 23 Jul 2019, George L. Yermulnik via Exim-users wrote:
> On Tue, 23 Jul 2019 at 12:10:22 (+0100), Gary Stainburn via Exim-users wrote:
>> In my user filter I have a number of entries similar to
>> if ($h_from: matches "user@domain") or
>> ($h_to: matches "user@domain") or
>> ($h_cc: matches "user@domain") then
>> deliver mobilephone@???
>> which is used to forward important emails to my phone.
>> Is there an wasier way to do this, e.g. a variable containing all recipients, or all addresses?
> Seem like you're looking for this?
> if foranyaddress $recipients ( $thisaddress is "user@domain" ) then
I'd be surprised if "$recipients" includes "$h_from:"
if $sender_address:,$h_from:,$h_to:,$h_cc:,$h_received: contains "user@domain"
Andrew C. Aitchison Kendal, UK
This message was posted to the following mailing lists: