[rt-users] Request for feature
Tim Pierce
twp at gamelogic.com
Mon Mar 22 12:01:36 EST 2004
On Mon, Mar 22, 2004 at 07:19:03PM +0300, Dmitry Monakhov wrote:
> Hi, All!
>
> There is very useful configuration parameter in
> /opt/rt3/etc/RT_SiteConfig.pm file
>
> Set($RTAddressRegexp , '^(server|support|presale|rva)\@domain\.com$');
>
> However the search is performed in case sensitive mode but rfc822
> describe mail addresses in case unsensitive mode.
> So, the following modification in /opt/rt3/lib/RT/EmailParser.pm file
> would be quite reasonable
>
> 645c645
> < $address =~ /$RT::RTAddressRegexp/ ) {
> ---
> > $address =~ m/$RT::RTAddressRegexp/i ) {
I have not tested this, but you should be able to write the regular
expression to be case-insensitive without changing the RT core code,
using the "(?i)" construct:
Set($RTAddressRegexp , '^(?i)(server|support|presale|rva)\@domain\.com$');
See the perlre man page for more information.
I agree that it would make more sense for case-insensitive matching to
be the default.
More information about the rt-users
mailing list