Great Circle Associates Majordomo-Workers
(January 1997)
 

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

Subject: Re: Problem with double @@ sings, perl5, Solaris
From: Oliver Xymoron <oxymoron @ waste . org>
Date: Tue, 7 Jan 1997 11:28:57 -0600 (CST)
To: Dave Wolfe <david_wolfe @ risc . sps . mot . com>
Cc: Bruce Barnett <barnett @ grymoire . crd . ge . com>, majordomo-workers @ GreatCircle . COM
In-reply-to: <199701071613.KAA22266@miaow.risc.sps.mot.com>

On Tue, 7 Jan 1997, Dave Wolfe wrote:

> [ Bruce Barnett writes: ]
> > 
> > For example, the following
> > 
> > 		$V{'FROM'} = $config_opts{$opt_l, "sender"}. "@" .
> > 		    $config_opts{$opt_l,"resend_host"};
> > 
> > creates a From: that doesn't have a host name, just "mylist-digest@"
> > 
> > This causes the From: address to be 
> > 
> > 	mylist-digest@@hostname
> 
> Be sure to set 'resend_host' in the list .config file (list-digest
> .config file?). Digest really ought to check that string construction
> better and default $whereami if 'resend_host' isn't set.

I posted this patch back around Christmas but didn't see any response to
it:

This changes digest to use a reasonable default for resend_host if it
is unset.

--- digest.old	Fri Dec 27 12:32:34 1996
+++ digest	Fri Dec 27 12:34:45 1996
@@ -357,9 +357,11 @@
 		$V{'DIGEST_LINES'} = $config_opts{$opt_l, "digest_maxlines"};
 		$V{'MAX_AGE'} = $config_opts{$opt_l, "digest_maxdays"};
 		$V{'ERRORS-TO'} = $config_opts{$opt_l,"sender"} . "@" .
-					$config_opts{$opt_l,"resend_host"};
+					($config_opts{$opt_l,"resend_host"}
+					 ||$whereami);
 		$V{'FROM'} = $config_opts{$opt_l, "sender"}. "@" .
-					$config_opts{$opt_l,"resend_host"};
+					($config_opts{$opt_l,"resend_host"}
+					 ||$whereami);
 		$V{'INCOMING'} = "$digest_work_dir/$opt_l";
 		$V{'NAME'} = $config_opts{$opt_l,"digest_name"};
 		$V{'REALLY-TO'} = $ARGV[0];


--
 "Love the dolphins," she advised him. "Write by W.A.S.T.E.." 


Indexed By Date Previous: Re: Typo in 1.94.1 sample.cf: $avg_15_minute
From: Brock Rozen <brozen@webdreams.com>
Next: Possible bug in access_check
From: Lou Katz <lou@metron.com>
Indexed By Thread Previous: More open+confirm
From: Oliver Xymoron <oxymoron@waste.org>
Next: Possible bug in access_check
From: Lou Katz <lou@metron.com>

Google
 
Search Internet Search www.greatcircle.com