-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 26 May 2009, afo cliff wrote:
Thanks. I must be using the stock spam_assassin_check because I see
this in mimedefang-filter:
my($hits, $req, $names, $report) = spam_assassin_check();
I tried adding the line below under the change_header lines and all
that ended up in the email header was "X-Spam-Tests:" with no data
action_add_header("X-Spam-Tests", "$test");
Hmm, read up man mimedefang-filter, $test is the 3rd return value of
spam_assassin_check(), hence, it's named $names in your filter.
Also, in this particular case it is not necessary to quote the variable,
in fact, it would waste a bit of ressources, use these lines for example:
my($hits, $req, $names, $report) = spam_assassin_check();
action_add_header("X-Spam-Tests", $names);
action_add_header("X-Spam-Score", $hits);
On Mon, May 25, 2009 at 2:50 AM, Steffen Kaiser
<[email protected]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 21 May 2009, afo cliff wrote:
add_header all Pyzor _PYZOR_
add_header all DCC _DCCG_: _DCCR_
If you use the stock spam_assassin_check() function, there is a '$test'
return value of the comma separated list of SpamAssassin test names.
Use it in combination with action_add_header().
- --
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBShzl99lJzF6z/k3SAQJS3wf+MCCrRDwTM12+w1N27EldFhb5y+aT9/6o
BFiRKi28BAqWA2tfEf0otzJ//75sG02ZsSf8+lD43wxijnZaltWu21YD9Km7PTw2
VZFw5NgdjSAAFUKL5o8mGIs1xQyXAazMRrnUWZWR0mGXy1hbaVQ/HVMv2EH6NLSX
7B4Mru7JqFkGH3R7r/kTY0Y+p0b47ySourHGqNYqDvf3lqwWMOBIoiuB6OJ0vgzv
9Y1QE4TzFsdI11cCcUy87WTgzXpjYMhUF30S+fYSpKNZdAj/8BrVXb4HFxxzwQRv
q73+BipG7O2VDFAPqxzBtsnWQc+tbaWFrAMf2EFOeSNBuQW2suwDgA==
=+axd
-----END PGP SIGNATURE-----
_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID. You may ignore it.
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang