Suggestion for $RTAddressRegexp

Since e-mail addresses are case-insensitive, I suggest adding //i to the
RTAddressRegexp regular expressions in the following files:

./lib/RT/EmailParser.pm: line 438
./lib/RT/Interface/Email.pm: line 190

-=Kevin=-

True. But I will quote RFC 2821:

The local-part of a mailbox MUST BE treated as case sensitive.
Therefore, SMTP implementations MUST take care to preserve the case of
mailbox local-parts. Mailbox domains are not case sensitive. In
particular, for some hosts the user “smith” is different from the user
"Smith". However, exploiting the case sensitivity of mailbox local-parts
impedes interoperability and is discouraged.

So, I would imagine that a far superior number of the users have mailers
that followed the heeding of the RFC and have not used case sensitivity.
Also, this is not modifying the address just telling the regex to ignore
case when trying to determine if the address is an RT address. At the
very least, you would need to split the local-part and the domain since,
per the RFC, domains are case insensitive.

-=Kevin=-From: Patrick Morris [mailto:pmorris@hermesinfotech.com]
Sent: Tuesday, September 20, 2005 10:04 AM
To: O’Brien, Kevin; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] Suggestion for $RTAddressRegexp

E-mail addresses aren’t necessarily case-insensitive. It depends on the
mailer implementation. I could list several mailers that are
case-sensitive.

From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of O’Brien,
Kevin
Sent: Monday, September 19, 2005 10:11 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Suggestion for $RTAddressRegexp

Since e-mail addresses are case-insensitive, I suggest adding //i to the
RTAddressRegexp regular expressions in the following files:

./lib/RT/EmailParser.pm: line 438

./lib/RT/Interface/Email.pm: line 190

-=Kevin=-

True. But I will quote RFC 2821:

The local-part of a mailbox MUST BE treated as case sensitive. Therefore,
SMTP implementations MUST take care to preserve the case of mailbox
local-parts. Mailbox domains are not case sensitive. In particular, for some
hosts the user “smith” is different from the user “Smith”. However,
exploiting the case sensitivity of mailbox local-parts impedes
interoperability and is discouraged.

So, I would imagine that a far superior number of the users have mailers
that followed the heeding of the RFC and have not used case sensitivity.
Also, this is not modifying the address just telling the regex to ignore
case when trying to determine if the address is an RT address. At the very
least, you would need to split the local-part and the domain since, per the
RFC, domains are case insensitive.
You can use (?i:blabla) to make part of the RE case insensetive. I
think Jesse will apply docs patch for this.

-=Kevin=-


From: Patrick Morris [mailto:pmorris@hermesinfotech.com]
Sent: Tuesday, September 20, 2005 10:04 AM
To: O’Brien, Kevin; rt-users@lists.bestpractical.com
Subject: RE: [rt-users] Suggestion for $RTAddressRegexp

E-mail addresses aren’t necessarily case-insensitive. It depends on the
mailer implementation. I could list several mailers that are
case-sensitive.


From: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf
Of O’Brien, Kevin
Sent: Monday, September 19, 2005 10:11 PM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Suggestion for $RTAddressRegexp

Since e-mail addresses are case-insensitive, I suggest adding //i to the
RTAddressRegexp regular expressions in the following files:

./lib/RT/EmailParser.pm: line 438

./lib/RT/Interface/Email.pm: line 190

-=Kevin=-


http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from
http://rtbook.bestpractical.com

Best regards, Ruslan.

True. But I will quote RFC 2821:

The local-part of a mailbox MUST BE treated as case sensitive.
Therefore, SMTP implementations MUST take care to preserve the case of
mailbox local-parts. Mailbox domains are not case sensitive. In
particular, for some hosts the user “smith” is different from the user
"Smith". However, exploiting the case sensitivity of mailbox
local-parts impedes interoperability and is discouraged.

Note that the RFC only deals with the SMTP transport activity, not
local delivery. The local part of the address is handled locally,
so while the transport can’t make assumptions, the local system
can do whatever it wants. So, we have a system where User@remote.site
may or may not be the same as user@remote.site but odds are
pretty good that he is. But, User@local.site is going to be the
same as user@local.site on any unix-like box unless you have done
something bizarre (which is allowed…) Aren’t standards wonderful?

Les Mikesell
les@futuresource.com

If you need that, I recommend using this (?i) like so:

$RTAddressRegexp=’^(?i)(foo@example.com|bar@example.com)$’

Take a look at:
http://gossamer-threads.com/lists/rt/users/20564?search_string=%2BRTAddressR
egexp%20%2Bcase;#20564

-=| BenFrom: rt-users-bounces@lists.bestpractical.com

[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of O’Brien,
Kevin
Sent: Tuesday, September 20, 2005 1:11 AM
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Suggestion for $RTAddressRegexp

Since e-mail addresses are case-insensitive, I suggest adding //i to the
RTAddressRegexp regular expressions in the following files:

./lib/RT/EmailParser.pm: line 438

./lib/RT/Interface/Email.pm: line 190

-=Kevin=-