Skip Menu |

This queue is for tickets about the Mail-Audit-Qmail CPAN distribution.

Report information
The Basics
Id: 426
Status: resolved
Priority: 0/
Queue: Mail-Audit-Qmail

People
Owner: Nobody in particular
Requestors: ndi-cpan [...] bumppo.net
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: transliteration obliterates dashes
I had to pick up the Camel book to figure out how /c interacts with tr ("complemented" is a term of art? is that from sed?), but once there, I realized that the idiomatic email address sanitization: $to =~ tr/A-Za-z:,.-@//cd; is either accidentally trying to take a range from "." to "@" and left out a lot of important characters (like the numbers), or is deliberately creating that character range but neglects to include a dash in the searchlist. Dash is ascii 45, period is ascii 46. Either way, it's weeding out dashes, a particularly qmail-unfriendly thing to do. If the range was created intentionally, then the colon is already in it (ascii 58, while the range goes up to 64 before the letters take over). I peeked at RFC2822 to find a nice concise rule about what characters are permitted, but so far it's just making me feel slightly queasy.
Date: Thu, 28 Mar 2002 14:25:26 -0800 (PST)
From: Ask Bjoern Hansen <ask [...] valueclick.com>
To: Guest via RT <bug-Mail-Audit-Qmail [...] rt.cpan.org>
Subject: Re: [cpan #426] transliteration obliterates dashes
On Thu, 28 Mar 2002, Guest via RT wrote: Show quoted text
> Either way, it's weeding out dashes, a particularly qmail-unfriendly > thing to do.
Ouch. Very true. It was not intentional. And I forgot about the numbers too. On second thought I question the whole idea of cleaning up the address. I don't know why it should do that at all. Show quoted text
> If the range was created intentionally, then the colon is already in it > (ascii 58, while the range goes up to 64 before the letters take over). I > peeked at RFC2822 to find a nice concise rule about what characters are > permitted, but so far it's just making me feel slightly queasy.
;-) yeah; the real rules are quite tricky. You can embed comments within the address if I recall correctly. -- ask bjoern hansen, http://ask.netcetera.dk/ !try; do();