get spam score in subject of spam_admin emails

Admin Beckspaced admin at beckspaced.com
Fri Oct 28 09:41:00 CEST 2016


dear amavis users,

i know that i can set the score in the email subject via

$sa_spam_subject_tag = '*** Spam (_SCORE_) *** ';

this works fine and every email gets the spam score in it - great!

but i also do send a copy of the detected spam to the spam admin to 
investigate.
this is done via a policy bank and setting spam admin

$policy_bank{'SOMEBANK'} = {
   ...
   spam_admin_maps  => ["spam\@$mydomain"],
   ...
};

if i do this setup also the spam admin gets send a notify about spammy email
this email has a subject in the format of:

Spam FROM SOMEBANK [185.76.78.134]:43814 <customer-support at grplp.com>
Spam FROM SOMEBANK [181.177.237.29]:40869 <ka_ling at asia.com>

in the email body i can find the SPAM score:

Content analysis details:   (13.2 points, 5.0 required)

is it possible to also have the spam score in the email subject 
included, so it would display like so

Spam (_SCORE_) FROM SOMEBANK [185.76.78.134]:43814 
<customer-support at grplp.com>
e.g. Spam (13.2) FROM SOMEBANK [181.177.237.29]:40869 <ka_ling at asia.com>

is something like this possible?

as this would save me lots of time looking for the spam score in the 
email body itself ;)

any tips, hints or suggestions would be great!

thanks & all the best wishes
becki





More information about the amavis-users mailing list