[ 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:
|
|