Great Circle Associates Majordomo-Workers
(October 1997)
 

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

Subject: Re: mkdigest problems with 1.94.4
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Thu, 9 Oct 1997 09:38:45 -0500 (CDT)
To: dshaw @ cs . jhu . edu (David Shaw)
Cc: majordomo-workers @ GreatCircle . COM, cwilson @ slurp . neu . sgi . com (Chan Wilson)
In-reply-to: <199710072323.TAA00329@osprey.cs.jhu.edu> from "David Shaw" at Oct 7, 97 07:23:42 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ David Shaw writes: ]
> 
> There seems to be a wee problem with mkdigest under 1.94.4.  If you are
> virtual domains (eg, calling majordomo with the -c flag and an alternate
> .cf file), mkdigest won't work. 
> 
> This line in majordomo (in &do_mkdigest):
> open(DIGEST,
>                 "$homedir/digest -m -C -l $list $list_outgoing 2>&1 |");
> 
> Should read:
> open(DIGEST,
>                 "$homedir/digest -m -C -l $list -c $cf $list_outgoing 2>&1 |");
> 
> That way, the $cf file passed to majordomo is passed on to digest. 
> Without this, digest tries to use the .cf file in the main majordomo
> directory, which may or may not be the correct one for the list being
> mkdigested. 

Interesting that this is just now showing up since it's been possible
to specify both -c and -C since 1.94.2. There should probably also be
a change in the digest usage line and documentation, since it still
indicates that -C and -c are mutually exclusive:

    &abort("Usage: digest {-r|-R|-m|-p} [-c config|(-C -l list)]\nStopped");

Two places in the code: a good candidate to be defined as either a
variable or a sub in just one place, e.g.:

    $usage = "Usage: digest {-r|-R|-m|-p} [-c config ] [-C -l list]";
    ...
    &abort("$usage\nStopped");

-- 
 Dave Wolfe


References:
Indexed By Date Previous: Re: documentation
From: Kevin Kelleher <kevink@MIT.EDU>
Next: Re: documentation
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: mkdigest problems with 1.94.4
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Snapshot 199710080
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>

Google
 
Search Internet Search www.greatcircle.com