[patch] macro report_json_filtered

Markus Benning ich at markusbenning.de
Thu Dec 4 15:30:04 CET 2014


the attached patch adds a log macro report_json_filtered to amavisd.

This macro is like report_json but will remove all specified fields from
the output.


$logline_maxlen = ( 32*1024 ) - 50; # 32k max message size, keep 50 bytes for syslog
$log_templ = <<'EOD';

It may be usefull for filtering unused fields to save diskspace and to
avoid logging of message content (subject, user_agent).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: amavisd-report_json_filtered.patch
Type: text/x-diff
Size: 825 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20141204/5fc57dc9/attachment.patch>

More information about the amavis-users mailing list