ports/mail/p5-Mail-SpamAssassin/patches/patch-sa-update_raw

13 lines
570 B
Text

sa-update uses deprecated method rdatastr
Index: sa-update.raw
--- sa-update.raw.orig
+++ sa-update.raw
@@ -1458,7 +1458,7 @@ sub do_dns_query {
next if !$rr; # no answer records, only rcode
next if $rr->type ne $rr_type;
# scalar context!
- my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdatastr;
+ my $text = $rr->UNIVERSAL::can('txtdata') ? $rr->txtdata : $rr->rdstring;
push(@result,$text) if defined $text && $text ne '';
}
printf("DNS %s query: %s -> %s\n", $rr_type, $query, join(", ",@result))