https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6485
Summary: Certain variables from plugins not available to report
function (e.g. _ASN_)
Product: Spamassassin
Version: 3.3.1
Platform: PC
OS/Version: Windows ME
Status: NEW
Severity: trivial
Priority: P5
Component: Plugins
AssignedTo: [email protected]
ReportedBy: [email protected]
This bug/enhancement request is similar to but different from these other two:
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5655
https://issues.apache.org/SpamAssassin/show_bug.cgi?id=6484
Could we alter the report generating function so that variables from the
Mail::SpamAssassin::Plugin::ASN plugin are available for substitution in the
"report" template? Currently, "Report ... _ASN_ ..." does not work.
I am not sufficiently familiar with SA to know where report generation and
substitution is done in the code, else I would have attempted or suggested a
possible patch. However, I know these (pseudo-)code snippets are on the right
track:
$label = Desired label to substitute
$data = Resulting information to substitute
push @{$self->{main}->{conf}->{asnlookups}},
{ zone=>$zone, asn_tag=>$asn_tag, route_tag=>$route_tag };
foreach my $entry (@{$self->{main}->{conf}->{asnlookups}}) {
$data = $scanner->{tag_data}->{$entry->{asn_tag}}
if $label = $entry->{asn_tag};
$data = $scanner->{tag_data}->{$entry->{route_tag}}
if $label = $entry->{route_tag};
}
--
Configure bugmail:
https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.