Mailing List Archive

Captured tags
Hi,

I'm aiming to extract the domain part from the To: address field,
specifically targeting email addresses like info@domain.com to capture just
domain.com. However, the current rule consistently captures the string
starting with @, such as @domain.com.

header __TO_DOMAIN To:addr =~ /\@(?<H_TO_DOM>[^\s@]+)/

How to fix this rule or any easyway to capture value of To: domain

I noticed a test file where %{HEADER(From:addr:domain)} is used to extract
the domain. I'm unsure if %{HEADER(To:addr:domain)} is supported, as
testing it did not resolve the issue.

Jimmy