Great Circle Associates Majordomo-Workers
(September 1996)
 

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

Subject: Re: quoted address becomes useless
From: "Earle F. Ake Mr" <akee @ wpdis03 . wpafb . af . mil>
Date: Wed, 25 Sep 1996 00:53:07 -0400 (EDT)
To: tibbs @ hpc . uh . edu (Jason L Tibbitts III)
Cc: hadavi @ bagels . ENET . dec . com, majordomo-workers @ GreatCircle . COM
In-reply-to: <ufa20frbhya.fsf@sina.hpc.uh.edu> from "Jason L Tibbitts III" at Sep 24, 96 06:40:13 pm

According to Jason L Tibbitts III:
> 
> >>>>> "MH" == Mike Hadavi, DTN: 244-6605, Loc: AKO2-2/A5 24-Sep-1996 0950 -0400 <hadavi@bagels.ENET.dec.com> writes:
> 
> MH> It would be nice if someone familiar with 1.94 could comment on how
> MH> 1.94 deals with "John Smith"@foo.bar.com. 
> 
> It will perform exactly as 1.93 did.  This is non-optimal, but rewriting
> the address parser is not in the cards for a 1.9x release.  (I get the
> feeling I've said this before.)  My 1.95 development stuff has much better
> bad address handling; I can easily add a check to make sure there is
> something before the first @ sign in a stripped address.
> 
> I am not certain that this address is even legal rfc822, but something
> tells me that it might just be OK.  I don't have rfc822 in front of me at
> the moment, so I won't comment further.

	I came up with a simple fix although it is late and I have not run
all the different address cases through it.  Try modifying majordomo.pl so
that it must have a space following the 2nd '"' before it deletes them.  It
will then work for "John Smith"@foo.bar.com.  As I say, use at your own risk
as I have not tested it much!


-Earle
-- 
Earle Ake                   MSG/SID                  akee@wpdis03.wpafb.af.mil
Hassler Communication Systems Technology, Inc.       ake@hcst.com
HCST: 2332 Grange Hall Road; Beavercreek, OH 45431-2345  Phone: 513-427-9000
Base: 4375 Chidlaw Rd. Suite 6; WPAFB, OH 45433-5006 513-257-7492 DSN:787-7492

*** majordomo.pl~	Tue Sep 17 14:14:07 1996
--- majordomo.pl	Wed Sep 25 00:43:36 1996
***************
*** 94,100 ****
  sub main'ParseAddrs {
      local($_) = shift;
      1 while s/\([^\(\)]*\)//g; 		# strip comments
!     1 while s/"[^"]*"//g;		# strip comments"
      split(/,/);				# split into parts
      foreach (@_) {
  	1 while s/.*<(.*)>.*/\1/;
--- 94,100 ----
  sub main'ParseAddrs {
      local($_) = shift;
      1 while s/\([^\(\)]*\)//g; 		# strip comments
!     1 while s/"[^"]*"\s//g;		# strip comments"
      split(/,/);				# split into parts
      foreach (@_) {
  	1 while s/.*<(.*)>.*/\1/;



Follow-Ups:
References:
Indexed By Date Previous: Re: Majordomo 1.94 Beta 3, whee!!
From: "Randall S. Winchester" <rsw@Glue.umd.edu>
Next: Re: Problems with mj1.94b3
From: "Randall S. Winchester" <rsw@Glue.umd.edu>
Indexed By Thread Previous: Re: quoted address becomes useless
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Re: quoted address becomes useless
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com