On Fri, 07 May 2021 10:19:49 -0400 Steve Dondley wrote: > I want to extract the first part of an email address from the > "Delivered-To" header and use it witin a custom rule. > > Example pseudo code: > > my ($first_part) = $email_file =~ /^Deliver-To: (.*)/; > > body __LOCAL_AWKWARD_INTRO /hi $first_part/i
Why would you want to do this? Surely the value in this is "hi" being followed by an email address - regardless of a match. If anything the mismatch is more spammy.