On Mon, Jul 25, 2005 at 12:31:46AM +0200, christophe wrote:
> spamd is running perfectly as a daemon.
> I copied a spam mail in the file 'spam'.

Ok.

> If i run one of these 2 commands :
> $spamassassin < spam
> $spamc -E < spam
> i get an output with 'X-Spam-Flag: YES', which is what i want to treat the
> email with my maler.

Right, the message is displayed on STDOUT w/ markup and everything.

> But when i run :
> $cat spam
> No line with 'X-Spam-Flag: YES' appears.

Of course not.  "spam" is the original file without markup.

> I don't understand why no header is added in the 'spam' file
> There must something i forgot.
> Could anyone help me, please ?

Are you expecting SpamAssassin to read in the file "spam", then write the
output back to the same file?  If so, that's not how SpamAssassin works.
Basically you'd want to do something like:

$spamc < spam > spam.out

That will filter the message in the file 'spam' through spamc<->spamd, and the
resulting output will go into the file called spam.out.

-- 
Randomly Generated Tagline:
"Now they show you how detergents take out bloodstains, a pretty violent 
 image there. I think if you've got a T-shirt with a bloodstain all over 
 it, maybe laundry isn't your biggest problem.  Maybe you should get rid
 of the body before you do the wash."         - Jerry Seinfeld

Attachment: pgp1uvP2yF5fa.pgp
Description: PGP signature

Reply via email to