http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4861
------- Additional Comments From [EMAIL PROTECTED] 2006-04-13 22:19 -------
(In reply to comment #3)
> How is plugin_report supposed to get access to the PerMsgStatus object?
I've been chatting with Sidney about this in IRC. The short answer is: you
can't since there is no
PerMsgStatus object when reporting. However, the plugin gets called with the
Message and Reporter
objects, which can be used together to get the Received metadata out.
Something like:
sub dcc_report {
my ($self, $options, $tmpf) = @_;
[...]
$options->{msg}->extract_message_metadata($options->{report}->{main});
then you can get the Received metadata via:
$options->{msg}->{metadata}->{$item}
where $item is relays_trusted, relays_trusted_str, num_relays_trusted,
relays_untrusted, etc.
The top of PerMsgStatus::extract_message_metadata() does this as part of a
normal check() run, but it's
simple to do in the DCC plugin as well. :)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.