On 2025-09-07 14:58, Will Yardley wrote:
> On Sun, Sep 07, 2025 at 04:48:16PM -0500, Tim Chase wrote:
>> Is there a proper way to create a filter that would catch an address if
>> it was in the To:, CC:, BCC:, Envelope-To or Delivered-To: header?
>> 
>> I see that ~h can be used for matching *any* header, but I was hoping
>> for recipient-y headers only.
> 
> It would be cool if there was a builtin filter that matched that; absent
> that, though, you an use regex within the filter to do that, e.g.,
> 
> ~h "^(Envelope|X-Original|Delivered)-To: foo@example\.org"

Great, that seems to do the trick.  Thanks!

-tkc
-- 





Reply via email to