On Thu, Mar 17, 2005 at 12:15:35PM +0100, Paul Boven wrote:
> Hoi Eric,
> Eric Dantan Rzewnicki wrote:
> >if I run: 
> >sa-learn --showdots --mbox --ham -p 
> >/opt/MailScanner/etc/spam.assassin.prefs.conf <ham_box>
> >sa-learn just hangs. Same happens for --spam.
> >strace shows it stuck on a read(0,
> The reason it is stuck on read(0, is that it's expecting input on its 
> STDIN. Try this:
> sa-learn --show-dots --mbox -ham [-p prefs] < <ham_box>
> 
> Where < means it reads stdin from that file. This is equivalent to
> cat <ham_box> | sa-learn --show-dots --mbox --ham [-p prefs]

Hmm. I understand what you're saying, but sa-learn has never worked that
way. AFAIK it takes the mbox as a commandline argument which can include
shell globbing and such.

Anyway, my issue was resolved once I realized that I had an old version
installed earlier in my path than the new sa-learn. I can't test your
suggestion because I don't have the problem version around anymore.

Thanks though,
-- 
Eric Dantan Rzewnicki  |  Systems Administrator
Technical Operations Division  |  Radio Free Asia
2025 M Street, NW  |  Washington, DC 20036  |  202-530-4900
CONFIDENTIAL COMMUNICATION
This e-mail message is intended only for the use of the addressee and
may contain information that is privileged and confidential. Any 
unauthorized dissemination, distribution, or copying is strictly 
prohibited. If you receive this transmission in error, please contact
[EMAIL PROTECTED]

Reply via email to