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.."
|
|