Hi Adam,

> 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?

Thanks,
 Andy.

-- 
                              o      _     _         _
  ------- __o       __o      /\_   _ \\o  (_)\__/o  (_)          -o)
  ----- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/       /\\
  ---- (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_    _\_v
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Sometimes it is better to apologize afterwards than to ask for
 permission beforehand.

Reply via email to