You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by mm...@apache.org on 2010/03/30 03:18:22 UTC

svn commit: r928955 - /spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm

Author: mmartinec
Date: Tue Mar 30 01:18:22 2010
New Revision: 928955

URL: http://svn.apache.org/viewvc?rev=928955&view=rev
Log:
Bug 4260: rewrite DNS code to use a single socket, event-based model;
Bug 6338: Use of Bit 0x20 in DNS Labels to Improve Transaction Identity;
Remove case sensitivity on DNS label in a query section
when 'dns_options dns0x20' is NOT used - RFC 1035 does NOT require
DNS server to preserve case in a query section of a reply, even
though in practice all mainstream DNS servers do preserve it.
In effect, code before this patch was half-way between dns0x20
and nodns0x20 setting.

Modified:
    spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm

Modified: spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm
URL: http://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm?rev=928955&r1=928954&r2=928955&view=diff
==============================================================================
--- spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm (original)
+++ spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm Tue Mar 30 01:18:22 2010
@@ -500,6 +500,7 @@ sub _packet_id {
     #
     my $qname = $ques->qname;
     $qname =~ s/\\([0-9]{3}|.)/length($1)==1 ? $1 : chr($1)/gse;
+    $qname = lc $qname  if !$self->{conf}->{dns_options}->{dns0x20};
     return join '/', $id, $qname, $ques->qtype, $ques->qclass;
 
   } else {