On Thu, Feb 05, 2004 at 07:57:58PM +0100, Andy Spiegl wrote: > 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?
I was noticing that myself. My random guess is that it's a shell thing. 'cat foo | sa-learn' means start a process and aim STDOUT from 'cat' to STDIN of 'sa-learn'. 'sa-learn ... < foo' tells the shell to make 'foo' available as the STDIN of 'sa-learn'. So therefore you can seek() on the latter, but not the former. Anwyay, I'm checking in a kluge for 3.0.0 to fix this. It could be made to work in 2.6x as well, but would require some mods. :( -- Randomly Generated Tagline: "A word to the wise: a credentials dicksize war is usually a bad idea on the net." (David Parsons in c.o.l.development.system, about coding in C.)
pgpkZIvD5iGgK.pgp
Description: PGP signature
