Hi all,<br><br>As I mentioned in a recent post, I'm trying to use Amavis::Custom in v2.8.0 to build a database of quarantined messages. This was working with 2.6.6, but it looks like Amavis::In::Message has since changed, and some of the functions have been moved to Amavis::In::Message::PerRecip, I believe.<br>
<br>Now I don't understand why $msginfo->infected seems to no longer exist. Is there a replacement equivalent?<br><br>Here is the code section from my amavisd-custom.conf file:<br><br>package Amavis::Custom;<br>use strict;<br>
<br>BEGIN {<br> import Amavis::Log qw(write_log);<br> import Amavis::Conf qw(:platform :confvars c cr ca $myhostname);<br> import Amavis::Util qw(do_log prolong_timer ll untaint safe_encode safe_decode);<br> import Amavis::rfc2821_2822_Tools;<br>
}<br>...<br>sub before_send {<br> my($self,$conn,$msginfo) = @_;<br><br> my($loc_logid) = $msginfo->log_id; # log ID string, e.g. '48262-21-2'<br> my($loc_size) = $msginfo->msg_size; # mail size in bytes<br>
#my($loc_level) = $msginfo->spam_level; # spam level (without per-recip boost)<br> my($loc_digest) = $msginfo->body_digest;<br> my($loc_partit) = $msginfo->partition_tag;<br> my($loc_mail) = $msginfo->mail_id;<br>
<br> my ($loc_rmbxname,$loc_infect,$loc_slevel);<br> for my $r (@{$msginfo->per_recip_data}) {<br> $loc_rmbxname = $r->recip_mbxname;<br> $loc_infect = $r->infected;<br> }<br><br>The only functions that don't work here are $r->infected and $msginfo->spam_level. Have they been moved? What is the best way to access this info?<br>
<br>Thanks,<br>Alex<br>