[copying Theo... I'm not sure if --channel and --channelfile not being
compatible is intended]
Sharman Tiladu wrote:
--- "Daryl C. W. O'Shea" <[EMAIL PROTECTED]>
wrote:
Personally, I'd add updates.spamassassin.org to your
channel file. As
the SARE channel how-to says, you need to update the
(default)
updates.spamassassin.org channel at least once every
time you upgrade SA
if you want to use any other channels.
OK, so I am doing it now like this:
sa-update --channel updates.spamassassin.org
--channelfile
/var/lib/spamassassin/3.001007/updates_spamassassin_org/sare-sa-update-channels.txt
--gpgkey 856AA88A
And I run this command
# sa-update && service spamassassin restart
once everyday ?
Please advise. Thanks.
Looking at the code:
# Deal with channel-related options
if (defined $opt{'channel'} && scalar @{$opt{'channel'}} > 0) {
@channels = @{$opt{'channel'}};
}
if (defined $opt{'channelfile'}) {
unless (open(CHAN, $opt{'channelfile'})) {
die "Can't open ".$opt{'channelfile'}." for reading: $!\n";
}
dbg("channel: reading in channelfile ".$opt{'channelfile'});
@channels = ();
while(my $chan = <CHAN>) {
chomp $chan;
$chan =~ s/#.*$//; # remove comments
$chan =~ s/^\s+//; # remove leading whitespace
$chan =~ s/\s+$//; # remove tailing whitespace
next unless ($chan); # skip empty lines
$chan = lc $chan;
dbg("channel: adding $chan");
push(@channels, $chan);
}
close(CHAN);
}
...it looks like you'll have to add the updates.spamassassin.org to your
channel file, like I suggested before, rather than adding it as a
--channel parameter on the command line.
The POD doesn't make it clear that --channel and --channelfile aren't
compatible. I'm not sure if Theo intended this -- other than that it's
a messy way to have your config, I don't see a problem with both being
used. Theo?
Daryl