Mailing List Archive

svn commit: r1916164 - in /spamassassin/trunk: MANIFEST t/data/nice/spf4 t/spf.t
Author: gbechis
Date: Thu Mar 7 08:45:40 2024
New Revision: 1916164

URL: http://svn.apache.org/viewvc?rev=1916164&view=rev
Log:
test with large TXT record replies
bz #8213

Added:
spamassassin/trunk/t/data/nice/spf4 (with props)
Modified:
spamassassin/trunk/MANIFEST
spamassassin/trunk/t/spf.t

Modified: spamassassin/trunk/MANIFEST
URL: http://svn.apache.org/viewvc/spamassassin/trunk/MANIFEST?rev=1916164&r1=1916163&r2=1916164&view=diff
==============================================================================
--- spamassassin/trunk/MANIFEST (original)
+++ spamassassin/trunk/MANIFEST Thu Mar 7 08:45:40 2024
@@ -389,6 +389,7 @@ t/data/nice/orig_ip_hdr.eml
t/data/nice/spf1
t/data/nice/spf2
t/data/nice/spf3
+t/data/nice/spf4
t/data/nice/spf3-received-spf
t/data/nice/spf4-received-spf-nofold
t/data/nice/spf5-received-spf-crlf

Added: spamassassin/trunk/t/data/nice/spf4
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/data/nice/spf4?rev=1916164&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spamassassin/trunk/t/data/nice/spf4
------------------------------------------------------------------------------
svn:mime-type = message/rfc822

Modified: spamassassin/trunk/t/spf.t
URL: http://svn.apache.org/viewvc/spamassassin/trunk/t/spf.t?rev=1916164&r1=1916163&r2=1916164&view=diff
==============================================================================
--- spamassassin/trunk/t/spf.t (original)
+++ spamassassin/trunk/t/spf.t Thu Mar 7 08:45:40 2024
@@ -11,7 +11,7 @@ plan skip_all => "Net tests disabled" un
plan skip_all => "Need Mail::SPF" unless HAS_MAILSPF;
plan skip_all => "Can't use Net::DNS Safely" unless can_use_net_dns_safely();

-plan tests => 72;
+plan tests => 74;

# ---------------------------------------------------------------------------

@@ -85,6 +85,13 @@ ok_all_patterns();
sarun ("-t < data/spam/spf3", \&patterns_run_cb);
ok_all_patterns();

+# check large TXT record - bz #8213
+%patterns = (
+ q{ -0.0 SPF_HELO_PASS }, 'helo_pass',
+ q{ -0.0 SPF_PASS }, 'pass',
+);
+sarun ("-t < data/nice/spf4", \&patterns_run_cb);
+ok_all_patterns();

# Test using an assortment of trusted and internal network definitions