Procmail and spamassassin question
I'm trying to set up a rule in procmail that will show the spam score in the body of the email. I'm not sure if it's possible, but it would be a great help if it worked.
I'm using fetchmail to download the emails from several accounts. Procmail then sorts the emails according to some rules. One of those rules i want be that if the email is to my "spam account", i want spamassassin to check it and write the "X-Spam-Status" line in the body of the email, so it will be easier for me to adjust spamassassin scores.
Can this be done? Any help is appreciated.
Thanx in advance.
Forgive me if I get this wrong.
I currently use procmail to pipe our mail through spamassassin.
It writes the score to the subject line and also to the headers of the message.
Is this what you are trying to do?
Although i want that line to be the first line in the body of the email, putting it in the subject will work as well. And of course i want it to be in the headers too.
How do u do that?
In my procmailrc file I have the following line after it passes through some other stuff...
* < 256000
That pipes it through spamassassin
Then I have the following lines in my spamassassin/local.cf file...
# How many hits before a message is considered spam.
# Whether to change the subject of suspected spam
# Text to prepend to subject if rewrite_subject is used
subject_tag *****SPAM***** SCORE _HITS_
# Encapsulate spam in an attachment
# Use terse version of the spam report
Ok... I thought i had to do it in the procmailrc. But instead it looks like i should have read more about spamassassin... he he.
Thanxs. I'll give it a try later.
Rather, I find that this portion works for me in /etc/mail/spamassassin/local.cf:
|All times are GMT -5. The time now is 11:35 PM.|