You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2018/08/20 20:52:11 UTC
svn commit: r1838489 - in /spamassassin/branches/3.4/t: data/spam/razor2
razor2.t
Author: kmcgrail
Date: Mon Aug 20 20:52:11 2018
New Revision: 1838489
URL: http://svn.apache.org/viewvc?rev=1838489&view=rev
Log:
rewrite of razor2 test and a sample email for testing
Added:
spamassassin/branches/3.4/t/data/spam/razor2
Modified:
spamassassin/branches/3.4/t/razor2.t
Added: spamassassin/branches/3.4/t/data/spam/razor2
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/t/data/spam/razor2?rev=1838489&view=auto
==============================================================================
--- spamassassin/branches/3.4/t/data/spam/razor2 (added)
+++ spamassassin/branches/3.4/t/data/spam/razor2 Mon Aug 20 20:52:11 2018
@@ -0,0 +1,345 @@
+From justinec@usbusinessfund.com Mon Aug 20 10:23:02 2018
+DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed;
+ d=go.net-results.com;
+ h=from:reply-to:to:subject:content-type:mime-version; s=smtpapi;
+ bh=9UjMHBEnh2c4l2GTSHWXBIbK7Rc=; b=V2G5BPO8qKkGko+lcEmszPiJ0Axq0
+ cVUld06BWTnQuHXrFSvJPVKT9Z8A+z7Gbq60QXPdvNhZcrO8ksIcOMqmYrd0pe7S
+ 4be/XA3DhVE2+Q5yQahYvZgT8IoQHwxIczTfi+AFF+JhnEjNy2Wf0uKM1tT9u87Y
+ y69Asqr8O+yisg=
+Received: by filter1834p1mdw1.sendgrid.net with SMTP id filter1834p1mdw1-32073-5B7ACEC6-B
+ 2018-08-20 14:23:02.736644296 +0000 UTC m=+231411.025806713
+Received: from apps.net-results.com (135.110.198.104.bc.googleusercontent.com [104.198.110.135])
+ by ismtpd0006p1sjc2.sendgrid.net (SG) with ESMTP id _QQ7dsbzQKqLEFSIQLdHVw
+ for <ju...@usbusinessfund.com>; Mon, 20 Aug 2018 14:23:02.306 +0000 (UTC)
+X-MA-ID: MA1-7d54da344b7f86d0
+From: Justine Craine <ju...@usbusinessfund.com>
+Reply-to: Justine Craine <ju...@usbusinessfund.com>
+To: redacted@gmail.com
+Subject: Redacted Line of Credit - 3.5% - Expiring TODAY
+Date: Mon, 20 Aug 2018 14:23:46 +0000 (UTC)
+Content-Type: multipart/alternative;
+ boundary="=_5a36252c3c98214b21efce6ffaf37035"
+MIME-Version: 1.0
+Message-ID: <_Q...@ismtpd0006p1sjc2.sendgrid.net>
+X-SG-EID: BgIdHtUktYE9aRLBUUdStN4sy8cLAU9EjexejtKwHGGsGYYQamAMbHuMgjZCiubDjk2DDR5xHsqOA6
+ 7OJrNn4O0R4s5gB6e8MylOXw7B6uvZUJTE3Vzq+1itSwTSkftcIWR9Lf1LhB/HhlFkWJcTI8A8LCwA
+ HLXSB2M09gC/NHPJ67XVpQHJIKVpPJICSU9B+EjQ2FjVfoh0FpN5SMtbXO1y4T5wBPBwRqU4pLA81u
+ w=
+X-SG-ID: SmDFk6fVVFXrSNgMN4Q94eTYvDJsRNEuT6KG3wiSWLybff8JtZS+MdjXLHov1krR
+X-KAM-Reverse: Passed - Reverse DNS of o24.whitelabel.net-results.com/167.89.16.100
+X-Relay-Addr: 167.89.16.100
+X-Relay-Host: o24.whitelabel.net-results.com
+X-Relay-Time: Mon Aug 20 10:24:05 2018
+Status: RO
+
+--=_5a36252c3c98214b21efce6ffaf37035
+Content-Type: text/plain; charset=utf-8
+Content-Transfer-Encoding: quoted-printable
+
+Redacted
+
+Good morning. Wanted to follow-up in regards to your upcoming projects, I r=
+an
+your current business score with D&B and its a 78 out of 80 which is tops in
+your industry. We have pre-approved Redacted for a line of
+credit at 3.50% with access to funds for at least $219,344.00 The funds can=
+ be
+used for unsecured working capital lines of credit or new and used equipment
+purchases. Call me anytime to further discuss
+
+Or click here to get a free quote. https://usbfund.com/?ref=3D1AUG#li=3DMA1=
+-36018e82c3855749a4e26bed7f4c1491&cs=3DMA1-f5d6f79e08a2f1dfa3c74584ea0fadbf
+
+My best,
+
+
+Justine Craine
+Credit Officer
+[https://debrjehuga0z2.cloudfront.net/18595/images/usbf-logo.png]#li=3DMA1-=
+3afd5f09c41eb9374be473522ac7a9fd&cs=3DMA1-f5d6f79e08a2f1dfa3c74584ea0fadbf
+
+(949) 390-5410 Office
+(949) 258-5018 Fax
+justinec@usbusinessfund.com
+
+
+1 MacArthur Place
+Suite #350
+Santa Ana, CA 92707
+US
+If you no longer wish to receive these emails, simply click on the following
+link: Click here to unsubscribe. http://host-0.net-results.com/subscription=
+_preferences.php?utm_campaign=3DCampaign%3A%20942OIJSD%20-%20USBFUND&utm_me=
+dium=3Demail&utm_source=3DNet-Results&li=3DMA1-3afd5f09c41eb9371bd6d2c3d40f=
+bc6b&cs=3DMA1-f5d6f79e08a2f1dfa3c74584ea0fadbf
+
+--=_5a36252c3c98214b21efce6ffaf37035
+Content-Type: text/html; charset=utf-8
+Content-Transfer-Encoding: quoted-printable
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org=
+/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns=3D"http://www.w3.org/1999/xhtml" xmlns:v=3D"urn:schemas-microso=
+ft-com:vml" xmlns:o=3D"urn:schemas-microsoft-com:office:office" style=3D"">=
+<head><meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Ty=
+pe"><title>Redacted Line of Credit - 3.5% - Expiring TODAY</t=
+itle><style type=3D"text/css">table{border-collapse:collapse;table-layout:f=
+ixed}a img,img{border:0;outline:0;height:auto;text-decoration:none}h1,h2,h3=
+,h4,h5,h6{display:block!important;margin:0!important;padding:0!important;li=
+ne-height:125%;font-weight:700;text-align:left;font-style:normal}h1{font-si=
+ze:40px}h2{font-size:26px}h3{font-size:18px}h4{font-size:16px}p{margin:1em =
+0}body,html{height:100%;width:100%}#emlTbl,#emlWrp,body{height:100%!importa=
+nt;margin:0;padding:0;width:100%!important}table,td{mso-table-lspace:0;mso-=
+table-rspace:0;border-collapse:collapse!important}a,blockquote,body,li,p,ta=
+ble,td{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}.maUserConte=
+nt{color:#5d5d5d;line-height:150%}#regionFooter .maUserContent,#regionPrevi=
+ew .maUserContent{line-height:125%}.ExternalClass,.ExternalClass div,.Exter=
+nalClass font,.ExternalClass p,.ExternalClass span,.ExternalClass td{line-h=
+eight:100%}#outlook a{padding:0}img{-ms-interpolation-mode:bicubic;height:a=
+uto!important}a{word-wrap:break-word;-ms-word-break:break-all}.maImageGroup=
+Left table,.maImageGroupRight table{table-layout:auto}.imgGroupImgContainer=
+ img{max-width:inherit!important}.maUserContent sub,.maUserContent sup{line=
+-height:0}* div * center .widthSixHundred{width:100%;max-width:600px}.Exter=
+nalClass center .widthSixHundred{width:100%;max-width:600px}body{margin:0!i=
+mportant}div[style*=3D"margin: 16px 0"]{margin:0!important;font-size:100%!i=
+mportant}#MessageViewBody,#MessageWebViewDiv{width:100%!important}#MessageV=
+iewBody a{color:inherit;text-decoration:none;font-size:inherit;font-family:=
+inherit;font-weight:inherit;line-height:inherit}a[x-apple-data-detectors]{c=
+olor:inherit!important;text-decoration:none!important;font-size:inherit!imp=
+ortant;font-family:inherit!important;font-weight:inherit!important;line-hei=
+ght:inherit!important}a{text-decoration:none}@media only screen and (min-wi=
+dth:480px){.gmailfix{display:none;display:none!important}}@media only scree=
+n and (max-width:480px){a,blockquote,body,li,p,table,td{-webkit-text-size-a=
+djust:none!important}#regionPreview{display:block!important}h1{font-size:24=
+px!important;line-height:125%!important}h2{font-size:20px!important;line-he=
+ight:125%!important}h3{font-size:18px!important;line-height:125%!important}=
+h4{font-size:16px!important;line-height:125%!important}#emlWrp{padding:10px=
+!important}#emlCanvas{width:100%!important;max-width:600px!important}.width=
+SixHundred{width:100%!important}.maAdaptWidth{width:100%!important}.rowCont=
+entContainer{display:block!important;max-width:600px!important;width:100%!i=
+mportant;min-width:0!important}.maImageCaptionColumn .maImageGroupLeft .maT=
+extAlignLeft,.maImageCaptionColumn .maImageGroupRight .maTextAlignRight,.ma=
+ImageCardColumn .maImageGroupLeft .maTextAlignLeft,.maImageCardColumn .maIm=
+ageGroupRight .maTextAlignRight{padding-top:9px!important}.maBoxedTextColum=
+n .maTextAlignLeft,.maBoxedTextColumn .maTextAlignRight,.maFooterColumn .ma=
+TextAlignLeft,.maFooterColumn .maTextAlignRight,.maMultiTextColumn .maTextA=
+lignLeft,.maMultiTextColumn .maTextAlignRight{padding-left:18px!important;p=
+adding-right:18px!important}.maBoxedTextColumn .maTextAlignRight{padding-le=
+ft:18px!important;padding-right:18px!important}#regionFooter .maUserContent=
+,#regionPreview .maUserContent{line-height:115%}.maImageColumn img{max-widt=
+h:100%!important}.maImageGroupColumn .maImageAlignRight .imgGroupImgContain=
+er{padding-left:9px!important;padding-top:9px!important}.maImageGroupColumn=
+ .maImageAlignLeft .imgGroupImgContainer{padding-right:9px!important;paddin=
+g-bottom:9px!important}u+.body .gmail{min-width:100vw}div>u+.body .gmail{mi=
+n-width:initial!important}.gmailfix{display:none;display:none!important}}</=
+style><!--[if gte mso 9]>
+ <xml>
+ <o:OfficeDocumentSettings>
+ <o:AllowPNG/>
+ <o:PixelsPerInch>96</o:PixelsPerInch>
+ </o:OfficeDocumentSettings>
+ </xml>
+ <![endif]--><style type=3D"text/css" id=3D"builderInlineStyles">td[class~=
+=3DmaUserContent]{font-family:arial,'helvetica neue',helvetica,sans-serif;f=
+ont-size:14px}td[class~=3DmaUserContent] h5{color:#7c7b7b}td[class~=3DmaUse=
+rContent] h4{color:#7c7b7b}td[class~=3DmaUserContent] h3{color:#5d5d5d}td[c=
+lass~=3DmaUserContent] h2{color:#545454}td[class~=3DmaUserContent] h1{color=
+:#5d5d5d}a{text-decoration:none}</style></head><body id=3D"body" class=3D"b=
+ody">
+ <div class=3D"gmail" style=3D"">
+ <center class=3D"inbox">
+ <table id=3D"emlTbl" align=3D"center" border=3D"0" cellspacing=3D"0" ce=
+llpadding=3D"0" width=3D"100%" style=3D"margin:0;height:100%!important;widt=
+h:100%!important;font-family:arial,'helvetica neue',helvetica,sans-serif;fo=
+nt-size:14px;background-color:#fff" bgcolor=3D"#ffffff"><tbody><tr><td id=
+=3D"emlWrp" valign=3D"top" align=3D"center" style=3D"margin:0;padding:20px;=
+border-top:0;height:100%!important;width:100%!important">
+ <table id=3D"emlCanvas" border=3D"0" cellspacing=3D"0" cellpadding=
+=3D"0" class=3D"widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=
+=3D"width:600px"><tbody><tr style=3D""><td valign=3D"top" align=3D"center" =
+class=3D"regionContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=
+=3D"regionTable widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=
+=3D"width:600px;background-color:#fff"><tbody><tr><td valign=3D"top" class=
+=3D"regionWrapper regionPreviewWrapper" id=3D"regionPreview">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" cla=
+ss=3D"widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=3D"width:=
+600px"><tbody><tr><td valign=3D"top" class=3D"rowContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"=
+ width=3D"100%" style=3D"" align=3D""><tbody><tr><td valign=3D"top" class=
+=3D"blockContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=
+=3D"0" class=3D"maAdaptWidth" width=3D"100%" style=3D""><tbody><tr><td vali=
+gn=3D"top" style=3D"padding:0" class=3D"maMultiTextColumn">
+ <table align=3D"left" border=3D"0" cellspacing=
+=3D"0" cellpadding=3D"0" width=3D"100%"><tbody><tr><td valign=3D"top" style=
+=3D"padding:0;background-color:transparent">
+ <table border=3D"0" cellspacing=3D"0" cellp=
+adding=3D"0" class=3D"maAdaptWidth" width=3D"100%" style=3D"" align=3D"left=
+"><tbody><tr><td valign=3D"top" width=3D"100%" style=3D"padding:9px 18px" c=
+lass=3D"maTextAlignLeft">
+ <table border=3D"0" cellspacing=3D"0" c=
+ellpadding=3D"0" width=3D"100%" style=3D""><tbody><tr><td valign=3D"top" cl=
+ass=3D"maUserContent" style=3D"font-family: arial,'helvetica neue',helvetic=
+a,sans-serif; font-size: 14px; font-weight: 400; padding: 0; text-align: le=
+ft;">
+ <p><span style=3D"color:#000">Redac=
+,=C2=A0</span>
+ </p>
+ <p><span style=3D"color:#000">Good =
+morning.=C2=A0 Wanted to follow-up in regards to your upcoming projects, I =
+ran your current business score with D&B and its a 78 out of 80 which i=
+s tops in your=C2=A0industry. We have pre-approved Redacted =
+=C2=A0for a line of credit at 3.50% with access to=C2=A0funds for at least =
+$219,344.00 The funds can be used for unsecured working capital lines of=C2=
+=A0credit or new and used equipment purchases. Call me anytime to further d=
+iscuss</span>
+ <br><br>Or <a href=3D"http://link.=
+usbusinessfund.com/wf/click?upn=3DW4brReBhLiuN2VUs54Q0GPbGvPNswuAjcfzzcUeqf=
+NnzNsRWPXO61OGJHUdwkeUePpaCq-2BfnLLVjt5R4-2BHzin3-2FEVq7jCDwey3zulR82JukQfj=
+B8VuMtsD8YKNPCWxYTzfyr6GybV3gmUwVf3RkW2YDlAELsthV4mKPZeh-2BnNaI-3D_YGt1Lokl=
+uyQvbdToNVmLk5ufOsjUTej34vIiTEYFn6Ros4vHqs498-2Bd-2B-2FEuaYuLHUR7RIkCFSU3Y2=
+srZxJ6CjKmG2dktoD6H9rJHcg7Y715-2BwpDMydiK7psgNfbp6yIywZjqSBLvtL8EFUGiVNpzBH=
+jFl4OBwVJhm0iUk5RjhnXa2ypsS8XtHoS-2FcgcEPkBHy70DiGmjttJ6APvgc73-2BvTmR8LrZK=
+IKOX3OW9oOAdU0tJ4i-2F5pIxx-2FlBMM9mSKfs2TZHjGC17gl17xL0bATOyQ-3D-3D" style=
+=3D"text-decoration: none;">click here to get a free quote.</a>
+ </p>
+ <p><span style=3D"color:#000"><span=
+ style=3D"font-family:arial,helvetica neue,helvetica,sans-serif">My best,</=
+span></span>
+ </p>
+ <p>
+ <br><span style=3D"color:#000"><b>=
+Justine Craine</b><br><i><b>Credit Officer</b></i></span><span style=3D"fon=
+t-size:12px"><span style=3D"font-family:arial,helvetica neue,helvetica,sans=
+-serif"><b><i></i></b></span></span>
+ <br><img src=3D"http://18595.1.hos=
+ted.cdnma.com/18595/images/usbf-logo.png"></p>
+ <p><span style=3D"color:#000">(949)=
+ 390-5410=C2=A0Office=C2=A0<br>
+(949) 258-5018=C2=A0Fax<br>
+justinec@usbusinessfund.com</span>
+ <br>=C2=A0</p>
+ </td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr><tr style=3D""><td valign=3D"top" align=3D"center" class=3D"=
+regionContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=
+=3D"regionTable widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=
+=3D"width:600px;background-color:#fff"><tbody><tr><td valign=3D"top" class=
+=3D"regionWrapper regionHeaderWrapper" id=3D"regionHeader">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" cla=
+ss=3D"widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=3D"width:=
+600px"><tbody><tr><td valign=3D"top" class=3D"rowContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"=
+ width=3D"100%" style=3D"" align=3D""><tbody><tr><td valign=3D"top" class=
+=3D"blockContentContainer"></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr><tr style=3D""><td valign=3D"top" align=3D"center" class=3D"=
+regionContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=
+=3D"regionTable widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=
+=3D"width:600px;background-color:#fff"><tbody><tr><td valign=3D"top" class=
+=3D"regionWrapper regionBodyWrapper" id=3D"regionBody">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" cla=
+ss=3D"widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=3D"width:=
+600px"><tbody><tr><td valign=3D"top" class=3D"rowContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"=
+ width=3D"100%" style=3D"" align=3D""><tbody><tr><td valign=3D"top" class=
+=3D"blockContentContainer"></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr><tr style=3D""><td valign=3D"top" align=3D"center" class=3D"=
+regionContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" class=
+=3D"regionTable widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=
+=3D"width:600px;background-color:#fff"><tbody><tr><td valign=3D"top" class=
+=3D"regionWrapper regionFooterWrapper" id=3D"regionFooter">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0" cla=
+ss=3D"widthSixHundred" width=3D"600" lang=3D"x-gmail-width" style=3D"width:=
+600px"><tbody><tr><td valign=3D"top" class=3D"rowContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=3D"0"=
+ width=3D"100%" style=3D"" align=3D""><tbody><tr><td valign=3D"top" class=
+=3D"blockContentContainer">
+ <table border=3D"0" cellspacing=3D"0" cellpadding=
+=3D"0" class=3D"maAdaptWidth" width=3D"100%" style=3D""><tbody><tr><td vali=
+gn=3D"top" style=3D"padding:0" class=3D"maMultiTextColumn">
+ <table align=3D"left" border=3D"0" cellspacing=
+=3D"0" cellpadding=3D"0" width=3D"100%"><tbody><tr><td valign=3D"top" style=
+=3D"padding:0;background-color:transparent">
+ <table border=3D"0" cellspacing=3D"0" cellp=
+adding=3D"0" class=3D"maAdaptWidth" width=3D"100%" style=3D"" align=3D"left=
+"><tbody><tr><td valign=3D"top" width=3D"100%" style=3D"padding:9px 18px" c=
+lass=3D"maTextAlignLeft">
+ <table border=3D"0" cellspacing=3D"0" c=
+ellpadding=3D"0" width=3D"100%" style=3D""><tbody><tr><td valign=3D"top" cl=
+ass=3D"maUserContent" style=3D"font-family: arial,'helvetica neue',helvetic=
+a,sans-serif; font-size: 14px; font-weight: 400; padding: 0; text-align: le=
+ft;">
+ <div style=3D"text-align:center">=
+=C2=A0
+ <div class=3D"__ma__postal_address=
+"><span style=3D"font-family:arial,helvetica neue,helvetica,sans-serif">1 M=
+acArthur Place<br>
+Suite #350<br>
+Santa Ana, CA 92707<br>
+US</span>
+ </div>
+ <br><span style=3D"font-family:ari=
+al,helvetica neue,helvetica,sans-serif">If you no longer wish to receive th=
+ese emails, simply click on the following link:=C2=A0<a class=3D"__ma__unsu=
+bscribe" href=3D"http://link.usbusinessfund.com/wf/click?upn=3Dy538qPeYJFjl=
+Fy4kUPPVRfm3HPU5aLDk-2Brg8JeYuuBwG3WGO8ksgj3NZYh7Eq2kpMK-2FBWhSdALl4ernQE9w=
+HSJm9L6-2B2wFpjvYurDo0IMb8ib2V-2B97ccpINoa3riwTcYUXKyCgfJe0CPq8JEsujczxozsV=
+fqShcRMul83ZF6nKjT7oRJbongR5MTz1zE7K-2FbDtmCiRTuOAfS5uasWQFqk-2F-2B-2BNInHz=
+mh1pEmXM-2BbU-2B-2B8EyoeS8WZbKIVxRi2y8TxMrSwJUyhuPNHvayBBlwW8B3KJy6whrxG-2B=
+6MBNSYs0Xt2s3sZsARcmSqI-2Fs2H0qYjF_YGt1LokluyQvbdToNVmLk5ufOsjUTej34vIiTEYF=
+n6Ros4vHqs498-2Bd-2B-2FEuaYuLHUR7RIkCFSU3Y2srZxJ6CjKmG2dktoD6H9rJHcg7Y715-2=
+BwpDMydiK7psgNfbp6yIy9nkzNmHEUog-2BTkCMOL79PE2LfuOOcdEZpJwfn0J9xI6TGYsbOHLX=
+NFpBUY83JAnRu1-2FIIqyN2bhrKlyYRcNQHvE2pOb-2FuGThmgUGSpkHjN4rVekZ-2FyB3L1ex5=
+rbviq0QQQ-2Fh7Dq2VAyYO4Cjp-2FYgoA-3D-3D" title=3D"Click here to unsubscribe=
+." style=3D"text-decoration: none;">Click here to unsubscribe.</a></span>
+ </div>
+ </td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></td>
+ </tr></tbody></table></center>
+ </div>
+ <div class=3D"gmailfix" style=3D"white-space:nowrap;font:15px courier;lin=
+e-height:0;height:0">=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
+=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
+=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
+=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0</div>
+=20
+<img src=3D"http://link.usbusinessfund.com/wf/open?upn=3DYGt1LokluyQvbdToNV=
+mLk5ufOsjUTej34vIiTEYFn6Ros4vHqs498-2Bd-2B-2FEuaYuLHUR7RIkCFSU3Y2srZxJ6CjKm=
+G2dktoD6H9rJHcg7Y715-2BwpDMydiK7psgNfbp6yIyxvH3wlBqpx2sv8sHjsUOMCU4DuGQHL3G=
+JZ-2Fs1AiIO08z73y3oa5DJraDLWfz-2B4b99x3PwDglO3ile-2Bk5-2FecuQVI1We3Fzmy73Ev=
+kRty9-2BtCcf9-2FWqqvLaqH-2BfLJqogTmjG1Cx3zKMn29LyHfMK9E8RGJn3H-2Fg6flO3naKc=
+CP2zQ-3D" alt=3D"" width=3D"1" height=3D"1" border=3D"0" style=3D"height:1p=
+x !important;width:1px !important;border-width:0 !important;margin-top:0 !i=
+mportant;margin-bottom:0 !important;margin-right:0 !important;margin-left:0=
+ !important;padding-top:0 !important;padding-bottom:0 !important;padding-ri=
+ght:0 !important;padding-left:0 !important;"/>
+</body></html>
+
+
+
+--=_5a36252c3c98214b21efce6ffaf37035--
+
Modified: spamassassin/branches/3.4/t/razor2.t
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/t/razor2.t?rev=1838489&r1=1838488&r2=1838489&view=diff
==============================================================================
--- spamassassin/branches/3.4/t/razor2.t (original)
+++ spamassassin/branches/3.4/t/razor2.t Mon Aug 20 20:52:11 2018
@@ -1,44 +1,44 @@
#!/usr/bin/perl
-use lib '.'; use lib 't';
-use SATest; sa_t_init("razor2");
+use lib '.';
+use lib 't';
+use SATest;
+sa_t_init("razor2");
use constant HAS_RAZOR2 => eval { require Razor2::Client::Agent; };
+use constant HAS_RAZOR2_IDENT => eval { -r $ENV{'HOME'}.'/.razor/identity'; };
use Test::More;
plan skip_all => "Net tests disabled" unless conf_bool('run_net_tests');
plan skip_all => "Needs Razor2" unless HAS_RAZOR2;
+plan skip_all => "Needs Razor2 Identity File Needed. razor-register / razor-admin -register has not been run, or $ident is unreadable." unless HAS_RAZOR2_IDENT;
plan tests => 2;
diag('Note: Failures may not be an SpamAssassin bug, as Razor tests can fail due to problems with the Razor servers.');
# ---------------------------------------------------------------------------
-my $ident = $ENV{'HOME'}.'/.razor/identity';
-if (! -r $ident) {
- $razor_not_available = "razor-register / razor-admin -register has not been run, or $ident is unreadable.";
- warn "$razor_not_available\n";
-}
-
-if (! $razor_not_available) {
- system ("razor-report < data/spam/001");
- if (($? >> 8) != 0) {
- warn "'razor-report < data/spam/001' failed. This may cause this test to fail.\n";
- }
-}
+#report the email as spam so it fails below. This process is not likely to work and I can't find a test point for razor. KAM 2018-08-20
+#unless (HAS_RAZOR2 or HAS_RAZOR2_IDENT) {
+# system ("razor-report < data/spam/001");
+# if (($? >> 8) != 0) {
+# warn "'razor-report < data/spam/001' failed. This may cause this test to fail.\n";
+# }
+#}
tstpre ("
loadplugin Mail::SpamAssassin::Plugin::Razor2
");
+#RAZOR2 file was from real-world spam in August 2018
#TESTING FOR SPAM
%patterns = (
q{ Listed in Razor2 }, 'spam',
);
-sarun ("-t < data/spam/001", \&patterns_run_cb);
-plan skip_all_patterns($razor_not_available);
+sarun ("-t < data/spam/razor2", \&patterns_run_cb);
+ok_all_patterns();
#TESTING FOR HAM
%patterns = ();
@@ -47,4 +47,4 @@ plan skip_all_patterns($razor_not_availa
);
sarun ("-t < data/nice/001", \&patterns_run_cb);
-plan skip_all_patterns($razor_not_available);
+ok_all_patterns();