[Mimedefang] Matching question
Ashley M. Kirchner
ashley at pcraft.com
Mon Feb 25 19:23:10 EST 2002
"David F. Skoll" wrote:
> > if ($Sender =~ /newsletter\.online\.com/) {
>
> Be careful; $Sender sometimes has angle-brackets.
Theoretically, that shouldn't matter though, should it? I've been
extracting $Sender for a while now, and everything I get is in the form of:
#ZDNet: <Online#3.6184.ff-wC7ol8i3fyro.1.b at newsletter.online.com>
#Yahoo: <reminders at yahoo-inc.com>
#Me: "Ashley M. Kirchner" <ashley at pcraft.com>
And if I'm only matching part of that, ( =~ /newsletter\.online\.com/ or =~
/reminders\@/ or =~ /\@pcraft\.com/ ), it should work without complaining.
Unless I'm missing a fundamental problem. You don't usually get an angle
bracket within the domain name, or username - that's just asking for the MTA to
go 'huh?' and barf.
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:ashley at pcraft.com> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
More information about the MIMEDefang
mailing list