I make some improvements and bugfixes in amavis-milter.c from amavisd-new 20020517 and backport it into amavisd 20020531 ( not tested ). Amavisd patch is against patched version ( with patch from amavis-user mailing list http://marc.theaimsgroup.com/?l=amavis-user&m=102364605104887&w=2).
Download patches
for amavisd-new
for amavisd
Changelog:
Both AMaViSd and AMaViSd-new
# amavis-milter -p socket -D -x "X-Virus-Scanned by" -X "AMaViSd-new"
milter add this line:
X-Virus-Scanned by: AMaViSd-new
Old version - send of one parameter
if (r>0) {
set variable
test variable length
send parameter
test return code from send
}
if (r>0){
receive reply
}
New version - send one parameter
set variable
sendamavisd(parameters...
optional test return code
AMaViSd-new specific