[rt-users] Is $RT::RTAddressRegexp case-sensitive?
Larry Stone
lcs at MIT.EDU
Mon Jun 16 23:40:36 EDT 2003
It looks like the regexp to match email addresses to be ignored (for
the purpose of importing To: and Cc: addresses when creating a ticket
from email), $RT::RTAddressRegexp, is being used in a case-sensitive
comparision. See RT/EmailParser.pm line 611, which is the only use
of it I can find:
$address =~ /$RT::RTAddressRegexp/
Is there a good reason not to have an "i" suffix after the "/"?
Since the hostname part of an email address is definitely case-insensitive,
and mailbox usually are, the comparison ought to be case-insensitive to
catch all legal expressions of the addresses.
I've confirmed that an address with an uppercase hostname is not matched
by a lowercase pattern that otherwise catches the desired addresses.
-- Larry
More information about the rt-users
mailing list