I spent my last days googling, reading tutorials, man pages and spamassassin
web sites and tried many differents settings for spamassassin (version 3.0.4)
but without success. So i have no other solutions than asking you.

Here is the content of my /etc/mail/spamassassin/local.cf file :
----------------------------------------------
required_hits 5
report_safe 0
add_header spam Flag _YESNOCAPS_
add_header all Status _YESNO_, score=_SCORE_ required=_REQD_ tests=_TESTS_
autolearn=_AUTOLEARN_ version=_VERSION_
add_header all Level _STARS(*)_
add_header all Checker-Version SpamAssassin _VERSION_ (_SUBVERSION_) on
_HOSTNAME_
auto_whitelist_path        /var/spool/spamassassin/auto-whitelist
auto_whitelist_file_mode   0666
dcc_home                   /var/lib/dcc
----------------------------------------------

spamd is running perfectly as a daemon.
I copied a spam mail in the file 'spam'.
And there i meet a _very_ weird paradox.
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.
But when i run :

$cat spam

No line with 'X-Spam-Flag: YES' appears. Yet, i thought my config file was
well written. because i put this line :

add_header spam Flag _YESNOCAPS_

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


--
Christophe

Attachment: pgpAMJpmBapVW.pgp
Description: PGP signature

Reply via email to