Good afternoon, Andy,
On Thu, 5 Feb 2004, Andy Spiegl wrote:
> > Have you tried
> >
> > cat spammybox | ssh server "sa-learn --spam --mbox -"
>
> Yes, of course. :-)
> But sa-learn only spits out the same perl-errors as without the "-".
> I didn't mention it because the manpage says it's without the "-".
>
> cat spammybox | sa-learn --spam --mbox -
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm line 324.
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm line 324.
> Use of uninitialized value in string at
> /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm line 331.
> Use of uninitialized value in concatenation (.) or string at
> /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm line 334.
> unable to open : No such file or directory
> Use of uninitialized value in pattern match (m//) at
> /usr/share/perl5/Mail/SpamAssassin/ArchiveIterator.pm line 324.
> ...
> ..
> .
>
> BUT you are right that it works like this: (BTW, also without the "-")
> sa-learn --spam --mbox - < spammybox
> Learned from 0 message(s) (5 message(s) examined).
>
> I don't understand where the difference is!?
> In both cases sa-learn sees it coming from stdin, right?
Nope. The "< spammybox" is what's providing the _file_
spamassasin needs. The "-" is ignored, to the best of my understanding.
Many thanks, Theo, for explaining that a file is needed.
Cheers,
- Bill
---------------------------------------------------------------------------
"This virus only works on Linux. It works on the honor system.
Please forward this email to everyone you know, then delete a bunch of
files."
-- Ross Carlson
--------------------------------------------------------------------------
William Stearns ([EMAIL PROTECTED]). Mason, Buildkernel, freedups, p0f,
rsync-backup, ssh-keyinstall, dns-check, more at: http://www.stearns.org
--------------------------------------------------------------------------