Lint problems
Lance Haig
lhaig at haigmail.com
Mon Jun 19 12:14:32 IST 2006
Hi Glenn,
Thanks here we go
Lance
grep MailScannerVersion /usr/sbin/MailScanner | head -1
$MailScanner::Config::MailScannerVersion = '4.55.3'
grep -A 20 GetOptions /usr/sbin/MailScanner
my $result = GetOptions ("h|H|help" => \$WantHelp,
"v|V|version|Version" => \$Versions,
"lint" => \$WantLintOnly,
"value=s" => \$WantRuleCheck,
"from=s" => \$RuleCheckFrom,
"to=s@" => \@RuleCheckTo,
"ip=s" => \$RuleCheckIP,
"virus=s" => \$RuleCheckVirus,
"debug" => \$Debug,
"debug-sa" => \$DebugSpamAssassin);
if ($WantHelp) {
print STDERR "Usage:\n";
print STDERR "MailScanner [ -h|-v|--debug|--debug-sa|--lint ] |\n";
print STDERR " [--value=<option-name> --from=<from-address>\n";
print STDERR " --to=<to-address>, --to=<to-address-2>,
...]\n";
print STDERR " --ip=<ip-address>, --virus=<virus-name>
]\n";
print STDERR " <MailScanner.conf-file-location>\n";
exit 0;
}
Glenn Steen wrote:
> On 18/06/06, Lance Haig <lhaig at haigmail.com> wrote:
>> Glenn,
>>
>>
>> > Right, and that one should have the --lint option... Hmmm. It should
>> > have the --usage option too... How about checking that?
>> I just tried that and got the same error. it is strange
>>
>> > The error you
>> > quoted is analoguous with an older version, which would try to treat
>> > any unknown option like a MailScanner.conf file... Is why you got the
>> > advice to upgrade:-). There isn't an /usr/sbin/MailScanner.rpmnew, now
>> > is there?
>>
>> Nope there is nothing but old MS files
>>
>
>
> and
> grep -A 20 GetOptions /usr/sbin/MailScanner
> .... That should tell us once and for all if this is really the right
> script, or if something fishy is happening with your install.
>
> --
> -- Glenn
> email: glenn < dot > steen < at > gmail < dot > com
> work: glenn < dot > steen < at > ap1 < dot > se
More information about the MailScanner
mailing list