Great Circle Associates Majordomo-Workers
(March 1999)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Mj::Addr allows spaces
From: Jason L Tibbitts III <tibbs @ math . uh . edu>
Date: 06 Mar 1999 17:00:17 -0600
To: majordomo-workers @ greatcircle . com, Omar Thameen <omar @ clifford . inch . com>
In-reply-to: Omar Thameen's message of "Sat, 6 Mar 1999 13:08:33 -0500"
References: <19990306130833.A386@clifford.inch.com>
User-agent: Gnus/5.070065 (Pterodactyl Gnus v0.65) Emacs/20.3

>>>>> "OT" == Omar Thameen <omar@clifford.inch.com> writes:

OT> I have just discovered that if I feed it an email address with a space
OT> like so:

OT> johndoe@somewhere. com

OT> it finds it to be valid.

That address is perfectly 100% legal.  RFC822 allows whitespace all over
the place.  Here's an example (from RFC822, Section 3.1.4, page 6):

            Muhammed.(I am  the greatest) Ali @(the)Vegas.WBA

Mj::Addr handles this just fine; note that the stripped form does not
contain the spaces:

[tibbs@morpheus 2.0]$ mj_shell -p XX show 'Muhammed.(I am  the greatest) Ali @(the)example.com'
  Address: Muhammed.(I am  the greatest) Ali @(the)example.com
    Address is valid.
      Mailbox: Muhammed.Ali@example.com
      Comment: I am  the greatest the
    Address is not registered.

OT> Is this an oversight, or is my use of the module inappropriate?

Neither.

OT> I realize that if you try to subscribe such an address to the list via
OT> the usual interface, it will indeed fail.

Hopefully not with Majordomo2.  This kind of thing seems to work fine for
me.  Majordomo1 probably barfs on it, but it's address parser isn't very
good so I wouldn't be surprised.

BTW, Mj::Addr has been significantly rewritten since the early days; it's
now completely object-oriented (which makes address operations much easier
within Mj2) but the parser is essentially the same.  I suppose I could add
a setting to reject extraneous whitespace, but it wouldn't be terribly easy
to make use of it and whitespace isn't even of questionable legality so I
don't know what the point would be.

 - J<


Follow-Ups:
References:
Indexed By Date Previous: Mj::Addr allows spaces
From: Omar Thameen <omar@clifford.inch.com>
Next: Help with testing/installing Majordomo 2
From: Huy Thi Nguyen <hnguyen@rock.careers.csulb.edu>
Indexed By Thread Previous: Mj::Addr allows spaces
From: Omar Thameen <omar@clifford.inch.com>
Next: Re: Mj::Addr allows spaces
From: Omar Thameen <omar@clifford.inch.com>

Google
 
Search Internet Search www.greatcircle.com