<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Spam Filter ISP Forums : Custom SQL Queries</title>
  <link>https://www.logsat.com/spamfilter/forums/</link>
  <description><![CDATA[This is an XML content feed of; Spam Filter ISP Forums : Spam Filter ISP Support : Custom SQL Queries]]></description>
  <pubDate>Thu, 12 Mar 2026 22:37:27 +0000</pubDate>
  <lastBuildDate>Fri, 11 Feb 2005 13:22:55 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.logsat.com/spamfilter/forums/RSS_post_feed.asp?TID=5043</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Spam Filter ISP Forums]]></title>
   <url>https://www.logsat.com/spamfilter/forums/forum_images/web_wiz_forums.png</url>
   <link>https://www.logsat.com/spamfilter/forums/</link>
  </image>
  <item>
   <title><![CDATA[Custom SQL Queries : I am, but I took at the spam for...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5185&amp;title=custom-sql-queries#5185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 11 February 2005 at 1:22pm<br /><br /><P>I am, but I took at the spam for my domain and the demo account has a ton of spam coming from your hotmail account. :)</P>]]>
   </description>
   <pubDate>Fri, 11 Feb 2005 13:22:55 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5185&amp;title=custom-sql-queries#5185</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : you noticed that??? :)  I thought...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5179&amp;title=custom-sql-queries#5179</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 10 February 2005 at 3:31pm<br /><br /><P>you noticed that??? :)&nbsp; </P><P>I thought you were a busy man like I am...</P><P>BTW - I love what you've done with it all...</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 15:31:50 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5179&amp;title=custom-sql-queries#5179</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : For those of you that have been...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5178&amp;title=custom-sql-queries#5178</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=2">Guests</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 10 February 2005 at 9:33am<br /><br /><P>For those of you that have been playing around with my spamfilter &lt;cough&gt; ric &lt;cough&gt; check back monday. My new version will be online sometime sunday or monday.</P><P>Kevin</P>]]>
   </description>
   <pubDate>Thu, 10 Feb 2005 09:33:43 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5178&amp;title=custom-sql-queries#5178</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : I&amp;#039;m not even sure of the...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5139&amp;title=custom-sql-queries#5139</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 1:25pm<br /><br />I'm not even sure of the load. But I know it scans 10,000 records in a matter of a second? All the emails go out at 6pm. So I'd say the load is minimal. I also run the delivery asp page right on the webserver.]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 13:25:46 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5139&amp;title=custom-sql-queries#5139</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : Kevin,To be honest, and trying...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5138&amp;title=custom-sql-queries#5138</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=22">Desperado</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 1:23pm<br /><br /><P>Kevin,<BR><BR>To be honest, and trying not to "toot my own horn", my nickname here is "Mr. Cisco".&nbsp; The only reason I was at it all night was because the customer, 2 states away, screwed up installing additional VPN Licenses and managed to blow out the existing keys so I had to walk him through getting SSH access to the device from my IP and I think he was a few fingers short of a full hand.</P><P>Back on topic, how much SQL load do you experience gathering your "Notifier" information.&nbsp; I can imagine a high SQL load if the DB has a million or so records and a lot of users are sighed up.&nbsp; Or .. no?</P><P>Dan</P>]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 13:23:30 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5138&amp;title=custom-sql-queries#5138</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : Oh I know..i&amp;#039;ve still got...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5137&amp;title=custom-sql-queries#5137</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 12:48pm<br /><br /><P>Oh I know..i've still got more planned for it.h</P><P>&nbsp;</P><P>let me know if you need help with the pix. I do cisco in my sleep...literallly. I've woken up and had configs in my head and had to write them down because I solved the problem in my sleep! lol</P><P>Pix's....they are a tamable beast! LOL Most hate them. I love them.</P><span style="font-size:10px"><br /><br />Edited by kspare</span>]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 12:48:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5137&amp;title=custom-sql-queries#5137</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : Kevin, What did I say ... something...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5136&amp;title=custom-sql-queries#5136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=22">Desperado</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 12:36pm<br /><br /><P>Kevin,</P><P>What did I say ... something like "Once you start it's hard to stop"?!</P><P>I was at work ALL Night working on a PIX Firewall configuration and now ... while I should be going home, I am screwing around trying to figure our why my "favicon" for the SpamFilter manager is intermitant. Why am I doing this?&nbsp; I think it's an illness!</P><P>Dan</P>]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 12:36:36 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5136&amp;title=custom-sql-queries#5136</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : I must mention that I started...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5135&amp;title=custom-sql-queries#5135</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 11:52am<br /><br />I must mention that I started this code based on some code dan gave me a year or so ago, so thanks Dan :)]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 11:52:27 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5135&amp;title=custom-sql-queries#5135</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : This is my listspam.asp code....]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5134&amp;title=custom-sql-queries#5134</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 11:49am<br /><br /><P>This is my listspam.asp code. I've modified it with the following features:</P><P>a Cell mouseover color change for the line your one.</P><P>During the mouse over it will show a popup with the reasons why the message was caught.</P><P>You can also click anywhere on the line to check the message.</P><P>Notice the security I put at the top of every page, so joe blow can't just access the asp code.</P><P><FONT size=1>&lt;%If Session("User") = "" Then<BR>&nbsp;&nbsp;Response.Redirect("/spam")<BR>&nbsp;&nbsp;END IF%&gt;<BR>&lt;!--#include file="db_connect.asp"--&gt;<BR>&lt;script language="JavaScript"&gt;<BR>&lt;!--<BR>function refresh()<BR>{<BR>window.location.reload();<BR>}<BR>//--&gt;<BR>&lt;/script&gt;<BR>&lt;script LANGUAGE="JavaScript"&gt;<BR>&lt;!--<BR>// Confirm Delete<BR>function confirmDeleteSubmit()<BR>{<BR>var agree=confirm("Are you sure you want to DELETE the selected messages?");<BR>if (agree)<BR>&nbsp;return true ;<BR>else<BR>&nbsp;return false ;<BR>}<BR>// --&gt;<BR>&lt;/script&gt;<BR>&lt;script LANGUAGE="JavaScript"&gt;<BR>&lt;!--<BR>// Confirm Send<BR>function confirmSendSubmit()<BR>{<BR>var agree=confirm("Are you sure you want to SEND the selected messages?");<BR>if (agree)<BR>&nbsp;return true ;<BR>else<BR>&nbsp;return false ;<BR>}<BR>// --&gt;<BR>&lt;/script&gt;</FONT></P><P><FONT size=1>&lt;/script&gt;</FONT></P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1>&lt;%<BR>&nbsp;Response.CacheControl = "no-cache"<BR>&nbsp;Response.AddHeader "Pragma", "no-cache"<BR>&nbsp;Response.Expires = -1<BR>&nbsp;<BR>&nbsp;Session.Timeout = 30<BR>&nbsp;EmailTo = Session("EmailTo")</FONT></P><P><FONT size=1>&nbsp;'Theoretically, this should never happen.<BR>&nbsp;If Len(EmailTo) &lt; 1 Then<BR>&nbsp;&nbsp;Session("EmailTo") = Null<BR>&nbsp;&nbsp;Session.Abandon<BR>&nbsp;&nbsp;Response.Redirect "ListSpam.asp"<BR>&nbsp;End If</FONT></P><P><FONT size=1>&nbsp;LoopCount = 0<BR>&nbsp;MaxLoop = 500<BR>%&gt;<BR>&lt;%<BR>&nbsp;&nbsp;'Generate Notification query.<BR>&nbsp;&nbsp;&nbsp;Email = Session("EmailTo")<BR>&nbsp;&nbsp;&nbsp;SQL = "SELECT Email, Notification "<BR>&nbsp;&nbsp;&nbsp;SQL = SQL &amp; "FROM tblLogins "<BR>&nbsp;&nbsp;&nbsp;SQL = SQL &amp; "WHERE (Email = '" &amp; Email &amp; "') "<BR>&nbsp;&nbsp;&nbsp;Set rs = con.Execute(SQL)<BR>&nbsp;&nbsp;&nbsp;Notification = rs("Notification")<BR>&nbsp;&nbsp;&nbsp;Session("Notification") = Notification<BR>&nbsp;&nbsp;&nbsp;con.Execute(SQL)</FONT></P><P><FONT size=1>&nbsp;&nbsp;%&gt;<BR>&nbsp;&nbsp;&lt;%&nbsp;<BR>&nbsp;'update the Notification field for this user<BR>&nbsp; IF Request.QueryString("notification") = "off" THEN<BR>&nbsp; SQL = "UPDATE tblLogins SET notification = 0"<BR>&nbsp; SQL = SQL &amp; "WHERE (Email = '" &amp; Email &amp; "') "<BR>&nbsp; Set rs = con.Execute(SQL)<BR>&nbsp; Response.Redirect "ListSpam.asp"<BR>ELSEIF Request.QueryString("notification") = "hourly" THEN<BR>&nbsp; SQL = "UPDATE tblLogins SET notification = 1"<BR>&nbsp; SQL = SQL &amp; "WHERE (Email = '" &amp; Email &amp; "') "<BR>&nbsp; Set rs = con.Execute(SQL)<BR>&nbsp; Response.Redirect "ListSpam.asp"<BR>ELSEIF Request.QueryString("notification") = "daily" THEN<BR>&nbsp; SQL = "UPDATE tblLogins SET notification = 2"<BR>&nbsp; SQL = SQL &amp; "WHERE (Email = '" &amp; Email &amp; "') "<BR>&nbsp; Set rs = con.Execute(SQL)<BR>&nbsp; Response.Redirect "ListSpam.asp"<BR>END IF<BR>%&gt;<BR>&lt;html&gt;<BR>&lt;head&gt;<BR>&nbsp;&lt;title&gt;Spam Filter - Suspected Spam List&lt;/title&gt;<BR>&nbsp;&lt;base target="_parent"&gt;<BR>&lt;script language="JavaScript"&gt;<BR>&lt;!--<BR>function FP_preloadImgs() {//v1.0<BR>&nbsp;var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();<BR>&nbsp;for(var i=0; i&lt;a.length; i++) { d.FP_imgs<em>=new Image; d.FP_imgs<em>.src=a<em>; }<BR>}</FONT></P><P><FONT size=1>function FP_swapImg() {//v1.0<BR>&nbsp;var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n&lt;args.length;<BR>&nbsp;n+=2) { elm=FP_getObjectByID(args&#091;n&#093;); if(elm) { doc.$imgSwaps&#091;doc.$imgSwaps.length&#093;=elm;<BR>&nbsp;elm.$src=elm.src; elm.src=args&#091;n+1&#093;; } }<BR>}</FONT></P><P><FONT size=1>function FP_getObjectByID(id,o) {//v1.0<BR>&nbsp;var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id);<BR>&nbsp;else if(o.layers) c=o.layers; else if(o.all) el=o.all&#091;id&#093;; if(el) return el;<BR>&nbsp;if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)<BR>&nbsp;for(n=0; n&lt;c.length; n++) { el=FP_getObjectByID(id,c&#091;n&#093;); if(el) return el; }<BR>&nbsp;f=o.forms; if(f) for(n=0; n&lt;f.length; n++) { els=f&#091;n&#093;.elements;<BR>&nbsp;for(m=0; m&lt;els.length; m++){ el=FP_getObjectByID(id,els&#091;n&#093;); if(el) return el; } }<BR>&nbsp;return null;<BR>}<BR>// --&gt;<BR>&lt;/script&gt;<BR>&lt;/head&gt;<BR>&lt;body link="#008000" vlink="#008000" alink="#FF0000"  onload="FP_preloadImgs(/*url*/'button44.gif',/*url*/'button4 5.gif',/*url*/'button47.gif',/*url*/'button48.gif',/*url*/'b utton4A.gif',/*url*/'button4B.gif',/*url*/'button4D.gif',/*u rl*/'button4E.gif',/*url*/'button7.gif',/*url*/'button8.gif' ,/*url*/'buttonA.gif',/*url*/'buttonB.gif',/*url*/'buttonD.g if',/*url*/'buttonE.gif')"&gt;</FONT></P><P><FONT size=1>&lt;font face="Arial"&gt;</FONT></P><P><FONT size=1>&lt;script&gt;<BR>function SelectAll()<BR>{<BR>&nbsp; void(d=document);<BR>&nbsp; void(el=d.getElementsByTagName('INPUT'));<BR>&nbsp; for(i=0;i&lt;el.length;i++)<BR>&nbsp;&nbsp;&nbsp; void(el<em>.checked=1) <BR>}<BR>&lt;/script&gt;</FONT></P><P><FONT size=1>&lt;script&gt;<BR>function DeSelectAll()<BR>{<BR>&nbsp; void(d=document);<BR>&nbsp; void(el=d.getElementsByTagName('INPUT'));<BR>&nbsp; for(i=0;i&lt;el.length;i++)<BR>&nbsp;&nbsp;&nbsp; void(el<em>.checked=0) <BR>}<BR>&lt;/script&gt;</FONT></P><P><FONT size=1>&lt;%<BR>&nbsp;'Determine if a sort order was chosen.<BR>&nbsp;Session("sortby") = Request.QueryString("SortBy")<BR>&nbsp;order_by = Trim(Request.QueryString("SortBy"))</FONT></P><P><FONT size=1>&nbsp;If order_by = "" Then<BR>&nbsp;&nbsp;order_by = "DESC-MsgDate"<BR>&nbsp;&nbsp;Session("SortDir") = "FILO"<BR>&nbsp;End If</FONT></P><P><FONT size=1>&nbsp;Select Case order_by<BR>&nbsp;&nbsp;Case "Subject"<BR>&nbsp;&nbsp;&nbsp;order_by = "Subject, MsgDate, EmailFrom"<BR>&nbsp;&nbsp;Case "EmailFrom"<BR>&nbsp;&nbsp;&nbsp;order_by = "EmailFrom, MsgDate, Subject"<BR>&nbsp;&nbsp;Case "MsgDate"<BR>&nbsp;&nbsp;&nbsp;order_By = "MsgDate, EmailFrom, Subject"<BR>&nbsp;&nbsp;Case "DESC-MsgDate"<BR>&nbsp;&nbsp;&nbsp;order_By = "MsgDate DESC, EmailFrom, Subject"<BR>&nbsp;End Select</FONT></P><P><FONT size=1>&nbsp;'Generate query.<BR>&nbsp;SQL = "SELECT QuarID, EmailFrom, Subject, MsgDate, MsgID, RejectDesc, RejectDetails "<BR>&nbsp;SQL = SQL &amp; "FROM tblQuarantine, tblRejectCodes "<BR>&nbsp;SQL = SQL &amp; "WHERE (EmailTo = '" &amp; EmailTo &amp; "') "<BR>&nbsp;SQL = SQL &amp; "AND (Deliver &lt;&gt; 1) "<BR>&nbsp;SQL = SQL &amp; "AND (Expire &lt;&gt; 1) "<BR>&nbsp;SQL = SQL &amp; "AND (tblQuarantine.RejectID = tblRejectCodes.RejectID) "<BR>&nbsp;SQL = SQL &amp; "ORDER BY " &amp; order_by<BR>&nbsp;Set rs = con.Execute(SQL)<BR>&nbsp;RecordCount = rs.RecordCount<BR>%&gt;<BR>&lt;/font&gt;<BR>&lt;div align="center"&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;font face="Arial"&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/font&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;table width="396"&gt;<BR>&nbsp; &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;td height="15" style="padding-left: 4px; padding-right: 4px" align="right"&gt;<BR>&nbsp;&lt;p align="right"&gt;&lt;font face="Century Gothic"&gt;&lt;big&gt;<BR>&nbsp;&lt;font size="3" color="#000080"&gt;Total Quarantined Messages For:&lt;/font&gt;&lt;/big&gt;&lt;/font&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td height="15" style="padding-left: 4px; padding-right: 4px"&gt;<BR>&nbsp;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;<BR>&nbsp; &lt;tr&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="263" align="right"&gt;<BR>&nbsp;&lt;p&gt;&lt;font face="Century Gothic"  color="#000080"&gt;&lt;strong&gt;&lt;%=Server.HTMLEncode(Ema ilTo)%&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt; </FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="111" align="left"&gt;<BR>&nbsp;&lt;b&gt;&lt;font color="#0099CC" face="Century  Gothic"&gt;&lt;%=Server.HTMLEncode(RecordCount)%&gt;&lt;/fon t&gt;&lt;/b&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;<BR>&nbsp; &lt;tr&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="263" align="right"&gt;<BR>&nbsp;&lt;font face="Century Gothic" color="#000080"&gt;&lt;strong&gt;Times Logged In:&lt;/strong&gt;&lt;/font&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="111" align="left"&gt;<BR>&nbsp;&lt;b&gt;&lt;font color="#0099CC" face="Century  Gothic"&gt;&lt;%=Session("Logins")%&gt;&lt;/font&gt;&lt;/b&g t;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;<BR>&nbsp; &lt;tr&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="263" align="right"&gt;<BR>&nbsp;&lt;p&gt;&lt;strong&gt;&lt;font face="Century Gothic" color="#000080"&gt;<BR>&nbsp;Maximum Entries Displayed:&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="111" align="left"&gt;<BR>&nbsp;&lt;b&gt;&lt;font color="#0099CC" face="Century  Gothic"&gt;&lt;%=MaxLoop%&gt;&lt;/font&gt;&lt;/b&gt;&lt;/td& gt;</FONT></P><P><FONT size=1>&nbsp; &lt;tr&gt;<BR>&nbsp;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="263" align="right"&gt;<BR>&nbsp;&lt;p&gt;&lt;strong&gt;&lt;font face="Century Gothic" color="#000080"&gt;&lt;% <BR>IF Session("Notification") = 0 THEN<BR>response.write "&lt;a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=hourly""&gt;&lt;span style=""text-decoration: none""&gt;Notification:&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>ELSEIF Session("Notification") = 1 THEN<BR>response.write "&lt;a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=daily""&gt;&lt;span style=""text-decoration: none""&gt;Notification:&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>ELSEIF Session("Notification") = 2 THEN<BR>response.write "&lt;a target=""content"" style=""color: #000080"" href=""listspam.asp?Notification=off""&gt;&lt;span style=""text-decoration: none""&gt;Notification:&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>END IF<BR>&nbsp;%&gt;&lt;/font&gt;&lt;/strong&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" width="111" align="left"&gt;<BR>&nbsp;&lt;b&gt;&lt;font color="#0099CC" face="Century Gothic"&gt;&lt;% <BR>IF Session("Notification") = 0 THEN<BR>response.write "&lt;a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=hourly""&gt;&lt;span style=""text-decoration: none""&gt;Off&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>ELSEIF Session("Notification") = 1 THEN<BR>response.write "&lt;a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=daily""&gt;&lt;span style=""text-decoration: none""&gt;Hourly&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>ELSEIF Session("Notification") = 2 THEN<BR>response.write "&lt;a target=""content"" style=""color: #0099CC"" href=""listspam.asp?Notification=off""&gt;&lt;span style=""text-decoration: none""&gt;Daily&lt;/span&gt;&lt;/a&gt;"&nbsp; &amp; vbCRLF</FONT></P><P><FONT size=1>END IF<BR>&nbsp;%&gt;&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;td style="padding-left: 4px; padding-right: 4px" colspan="2"&gt;<BR>&nbsp;&lt;p align="center"&gt;</FONT></P><P><FONT size=1>&nbsp; &lt;/tr&gt;<BR>&lt;/table&gt;<BR>&nbsp;&lt;form action="ResolveSpam.asp" method="post" target="content"&gt;<BR>&nbsp;&lt;font face="Century Gothic" size="2"&gt;<BR>&nbsp;&lt;tbody&gt;<BR>&lt;%<BR>&nbsp;If rs.EOF Then<BR>%&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;table border="0" width="475" id="table3"&gt;<BR>&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;a target="content" href="javascript:refresh()"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh"  onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"&gt;&lt;/a&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="content" href="PasswordChange.asp"&gt;&lt;img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password"  onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="_parent" href="Logout.asp"&gt;&lt;img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out"  onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR>&nbsp;&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&nbsp;&nbsp;&lt;tr&gt;&lt;td align="center" colspan="5"&gt;&lt;/font&gt;&lt;h2&gt;<BR>&nbsp;&lt;font face="Century Gothic" size="5"&gt;No potential spam found!&lt;/font&gt;&lt;/h2&gt;<BR>&nbsp;&lt;font face="Century Gothic" size="2"&gt;&lt;/td&gt;&lt;/tr&gt;</FONT></P><P><FONT size=1>&nbsp;&lt;/tbody&gt;</FONT></P><P><FONT size=1>&lt;%<BR>&nbsp;Else<BR>%&gt;</FONT></P><P><BR><FONT size=1>&lt;/font&gt;</FONT></P><P><BR><FONT size=1>&lt;table border="0" height="1%" id="table2"&gt;<BR>&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&lt;td&gt;&amp;nbsp;&lt;/td&gt;<BR>&nbsp;&lt;/tr&gt;<BR>&lt;/table&gt;</FONT></P><P><BR><FONT size=1>&lt;div align="center"&gt;<BR>&lt;table border="0" width="475" id="table3"&gt;<BR>&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;a target="content" href="javascript:refresh()"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh"  onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"&gt;&lt;/a&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;&lt;INPUT type=image border="0" onClick="return confirmDeleteSubmit()" name="cmdDelete" value="Delete" id="img4" src="button4C.gif" height="20" width="100" alt="Delete"  onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4D.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4C.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4E.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4D.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #FF0000; fp-font-color-hover: #FF0000; fp-font-color-press: #FF0000; fp-transparent: 1" fp-title="Delete"&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;INPUT type=image border="0" onClick="return confirmSendSubmit()" name="cmdSend" value="Send To My Inbox" id="img3" src="button49.gif" height="20" width="134" alt="Send To My Inbox"  onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4A.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button49.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4B.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button4A.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Send To My Inbox"&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" onclick="SelectAll()" value="Select All" id="img1" src="button46.gif" height="20" width="100" alt="Select All" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Select All"  onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'button47.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button46.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'button48.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button47.gif' )"&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" onclick="DeSelectAll()" value="De-Select All" id="img2" src="button43.gif" height="20" width="100" alt="De-Select All"  onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button44.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button43.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button45.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button44.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="De-Select All"&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="content" href="PasswordChange.asp"&gt;&lt;img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password"  onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="_parent" href="Logout.asp"&gt;&lt;img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out"  onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR>&nbsp;&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;/div&gt;<BR>&lt;/div&gt;</FONT></P><P><FONT size=1></FONT>&nbsp;</P><P><FONT size=1>&nbsp;&lt;table border="1" cellpadding="2" cellspacing="0" width="100%"&gt;<BR>&nbsp;&lt;thead align="center" valign="bottom"&gt;<BR>&nbsp;&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;Sel&lt;/font&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;No.&lt;/font&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;a target="content" href="ListSpam.asp?SortBy=EmailFrom"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;From&lt;/font&gt;&lt;/a&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;a target="content" href="ListSpam.asp?SortBy=Subject"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;Subject&lt;/font&gt;&lt;/a&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;% If Session("SortDir") = "FIFO" Then %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;&lt;font face="Century Gothic"&gt;&lt;a href="ListSpam.asp?SortBy=MsgDate"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/font&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="content" href="ListSpam.asp?SortBy=MsgDate"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;Date&lt;/font&gt;&lt;/a&gt;&lt;font face="Century Gothic"&gt;&lt;/a&gt;&lt;/font&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;% Session("SortDir") = "FILO"<BR>&nbsp;&nbsp;&nbsp;Else %&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;th scope="col" bgcolor="silver"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="content" href="ListSpam.asp?SortBy=MsgDate DESC"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;font color="#000080" face="Century Gothic" size="2"&gt;Date&lt;/font&gt;&lt;/a&gt;&lt;/th&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;% Session("SortDir") = "FIFO"<BR>&nbsp;&nbsp;&nbsp;End If %&gt;<BR>&nbsp;&nbsp;&lt;/tr&gt;<BR>&nbsp;&lt;/thead&gt;<BR>&lt;style&gt;<BR>.classover {background-color: #ff952b;}<BR>&lt;/style&gt;<BR>&lt;% Count = 1 %&gt;<BR>&lt;%</FONT></P><P><FONT size=1>&nbsp;&nbsp;While (Not rs.EOF) AND (LoopCount &lt; MaxLoop)<BR>&nbsp;&nbsp;&nbsp;LoopCount = LoopCount + 1<BR>&nbsp;&nbsp;&nbsp;QuarID = rs("QuarID")<BR>&nbsp;&nbsp;&nbsp;MsgID = rs("MsgID")<BR>%&gt;</FONT></P><P><BR><FONT size=1>&lt;% If Count = 0 Then %&gt;<BR>&lt;tr bgcolor="#c9c9c9" onmouseover="this.className='classover'" onmouseout="this.className=''"&nbsp;  title="Reason:&lt;%=Chr(13)%&gt;&lt;%=rs("Rejectdesc")%&gt;& lt;%=Chr(13)%&gt;Details:&lt;%=Chr(13)%&gt;&lt;%=rs("Rejectd etails")%&gt;"&gt;<BR>&lt;% ELSE %&gt;<BR>&lt;tr bgcolor="white" onmouseover="this.className='classover'" onmouseout="this.className=''"&nbsp;  title="Reason:&lt;%=Chr(13)%&gt;&lt;%=rs("Rejectdesc")%&gt;& lt;%=Chr(13)%&gt;Details:&lt;%=Chr(13)%&gt;&lt;%=rs("RejectD etails")%&gt;"&gt;<BR>&lt;% end if %&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&lt;td align="center"&gt;&lt;font face="Century Gothic"&gt;&lt;input type="checkbox" name="&lt;%="chk_" &amp; QuarID%&gt;"&gt;&lt;/font&gt;&lt;/td&gt;<BR>&lt;acronym onclick="javascript:if (&lt;%="chk_" &amp; QuarID%&gt;.checked==true){&lt;%="chk_" &amp; QuarID%&gt;.checked=false;} else{&lt;%="chk_" &amp; QuarID%&gt;.checked=true;}"&gt;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&lt;%Scount = Scount + 1%&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;td valign="middle" nowrap align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;font face="Century Gothic"  size="2"&gt;&lt;%=Scount%&gt;&lt;/font&gt;&lt;/td&gt;&lt;/ac ronym&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;font face="Century Gothic" size="2"&gt;&amp;nbsp;&lt;a target="_blank"  href="ResolveSpamv.asp?QuarID=&lt;%=QuarID%&gt;&amp;MsgID=&l t;%=MsgID%&gt;"&gt;&lt;font color="#000080"&gt;view&lt;/font&gt;&lt;/a&gt;&lt;acronym onclick="javascript:if (&lt;%="chk_" &amp; QuarID%&gt;.checked==true){&lt;%="chk_" &amp; QuarID%&gt;.checked=false;} else{&lt;%="chk_" &amp; QuarID%&gt;.checked=true;}"&gt;&nbsp;&amp;nbsp;&amp;nbsp;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&lt;%=Server.HTMLEncode(rs("EmailFro m"))%&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/font&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;font face="Century Gothic"  size="2"&gt;&lt;%=Server.HTMLEncode(rs("Subject"))%&gt;&lt;/ font&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;td&gt;&lt;font face="Century Gothic" size="2"&gt;&lt;%=rs("MsgDate")%&gt;&lt;/font&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&lt;/tr&gt;</FONT></P><P><BR><FONT size=1>&lt;/acronym&gt;</FONT></P><P><FONT size=1>&lt;%<BR>Count = Count + 1<BR>If Count = 2 Then Count = 0 %&gt;<BR>&lt;%<BR>&nbsp;&nbsp;&nbsp;rs.MoveNext <BR>&nbsp;&nbsp;Wend<BR>%&gt;<BR>&lt;/table&gt;<BR>&lt;font face="Century Gothic"&gt;<BR>&lt;/table&gt;<BR>&nbsp;&lt;/tbody&gt;<BR>&nbsp;&lt;/table&gt;</FONT></P><P><BR><FONT size=1>&lt;/div&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/tr&gt;<BR>&nbsp; &lt;/table&gt;<BR>&lt;/left&gt;<BR>&nbsp; &lt;/div&gt;</FONT></P><P><BR><FONT size=1>&lt;div align="center"&gt;<BR>&lt;table border="0" width="475" id="table3"&gt;<BR>&nbsp;&lt;tr&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;a target="content" href="javascript:refresh()"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" id="img5" src="button6.gif" height="20" width="100" alt="Refresh"  onmouseover="FP_swapImg(1,0,/*id*/'img5',/*url*/'button7.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img5',/*url*/'button6.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img5',/*url*/'button8.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img5',/*url*/'button7.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Refresh"&gt;&lt;/a&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;&lt;INPUT type=image border="0" onClick="return confirmDeleteSubmit()" name="cmdDelete" value="Delete" id="img4" src="button4C.gif" height="20" width="100" alt="Delete"  onmouseover="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4D.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4C.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img4',/*url*/'button4E.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img4',/*url*/'button4D.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #FF0000; fp-font-color-hover: #FF0000; fp-font-color-press: #FF0000; fp-transparent: 1" fp-title="Delete"&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;INPUT type=image border="0" onClick="return confirmSendSubmit()" name="cmdSend" value="Send To My Inbox" id="img3" src="button49.gif" height="20" width="134" alt="Send To My Inbox"  onmouseover="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4A.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img3',/*url*/'button49.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img3',/*url*/'button4B.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img3',/*url*/'button4A.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Send To My Inbox"&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" onclick="SelectAll()" value="Select All" id="img1" src="button46.gif" height="20" width="100" alt="Select All" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Select All"  onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'button47.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button46.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'button48.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button47.gif' )"&gt;&lt;/td&gt;</FONT></P><P><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;img border="0" onclick="DeSelectAll()" value="De-Select All" id="img2" src="button43.gif" height="20" width="100" alt="De-Select All"  onmouseover="FP_swapImg(1,0,/*id*/'img2',/*url*/'button44.gi f')"  onmouseout="FP_swapImg(0,0,/*id*/'img2',/*url*/'button43.gif ')"  onmousedown="FP_swapImg(1,0,/*id*/'img2',/*url*/'button45.gi f')"  onmouseup="FP_swapImg(0,0,/*id*/'img2',/*url*/'button44.gif' )" fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="De-Select All"&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="content" href="PasswordChange.asp"&gt;&lt;img border="0" id="img6" src="button9.gif" height="20" width="127" alt="Change Password"  onmouseover="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonA.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img6',/*url*/'button9.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img6',/*url*/'buttonB.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img6',/*url*/'buttonA.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1; fp-proportional: 0" fp-title="Change Password"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &lt;td align="center"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;a target="_parent" href="Logout.asp"&gt;&lt;img border="0" id="img7" src="buttonC.gif" height="20" width="100" alt="Log Out"  onmouseover="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonD.gif ')"  onmouseout="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonC.gif' )"  onmousedown="FP_swapImg(1,0,/*id*/'img7',/*url*/'buttonE.gif ')"  onmouseup="FP_swapImg(0,0,/*id*/'img7',/*url*/'buttonD.gif') " fp-style="fp-btn: Embossed Capsule 4; fp-font: Century Gothic; fp-font-style: Bold; fp-font-color-normal: #000080; fp-font-color-hover: #000080; fp-font-color-press: #000080; fp-transparent: 1" fp-title="Log Out"&gt;&lt;/a&gt;&lt;/a&gt;&lt;/td&gt;<BR>&nbsp;&lt;/tr&gt;<BR>&lt;/table&gt;<BR>&lt;/div&gt;<BR>&lt;/div&gt;<BR>&nbsp;&lt;/form&gt;<BR>&lt;%<BR>&nbsp;End If</FONT></P><P><FONT size=1>&nbsp;rs.Close<BR>&nbsp;Set rs = Nothing<BR>&nbsp;con.Close<BR>&nbsp;Set con = Nothing<BR>%&gt;<BR>&lt;/div&gt;</FONT></P><P><BR><FONT size=1>&lt;/font&gt;</FONT></P><P><BR><FONT size=1>&lt;/body&gt;<BR>&lt;/html&gt;</FONT></P>]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 11:49:09 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5134&amp;title=custom-sql-queries#5134</guid>
  </item> 
  <item>
   <title><![CDATA[Custom SQL Queries : I also modified the register page...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5133&amp;title=custom-sql-queries#5133</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=11">kspare</a><br /><strong>Subject:</strong> 5043<br /><strong>Posted:</strong> 05 February 2005 at 11:27am<br /><br /><P>I also modified the register page to work with autoauth, so once you register, you can click the link on the screen and it will automatically log you in.</P><P>This also works with the notification email page, everyone in the database will recieve an email, if you have setup an account it delivers the email according to your notfication setting, which is off, hourly and daily.</P><P>If you haven't registered, the notification email will include a link to the register page which will automatically fill in your email address for you, requiring you to only enter your full name.</P><P><FONT size=1>&lt;!--#include file="db_connect.asp"--&gt;<BR>&lt;html&gt;<BR>&lt;body&gt;<BR>Sending Reminders to those with messages in queue and Daily reminders tuned on.&lt;br&gt;&lt;br&gt;<BR>&lt;%<BR>Response.CacheControl = "no-cache"<BR>Response.AddHeader "Pragma", "no-cache"<BR>Response.Expires = -1<BR>X = 0<BR>&nbsp;SQL = "SELECT * FROM tbllogins WHERE notification = 2 ORDER BY Email ASC"<BR>&nbsp;Set rs = con.Execute(SQL)<BR>&nbsp;IF NOT (rs.eof AND rs.bof) THEN<BR>&nbsp; rs.MoveFirst<BR>&nbsp; DO UNTIL rs.eof<BR>&nbsp;&nbsp; SQL = "SELECT COUNT(*) AS MessageCount FROM tblQuarantine WHERE (EmailTo = '" &amp; rs("Email") &amp; "') AND Expire = 0 AND Deliver = 0"<BR>&nbsp;&nbsp; Set rs2 = con.Execute(SQL)<BR>&nbsp;&nbsp; IF clng(rs2("MessageCount")) &gt; 0 THEN<BR>&nbsp;&nbsp;&nbsp; X = X + 1<BR>&nbsp;&nbsp;&nbsp; SendMessage1 rs("Email"), rs2("MessageCount")<BR>&nbsp;&nbsp;&nbsp; response.write rs("Email") &amp; " has " &amp; rs2("MessageCount") &amp; " messages in queue... reminder sent.&lt;BR&gt;" &amp; vbcrlf</FONT></P><P><FONT size=1>&nbsp;&nbsp; END IF<BR>&nbsp;&nbsp; rs2.close<BR>&nbsp;&nbsp; set rs2 = nothing<BR>&nbsp;&nbsp; rs.MoveNext<BR>&nbsp; LOOP<BR>&nbsp;END IF<BR>response.write "&lt;BR&gt;" &amp; X &amp; " daily reminder messages sent.&lt;br&gt;&lt;br&gt;&lt;br&gt;" &amp; vbCRLF<BR>response.write "Sending daily reminders to those with messages, And no accounts.&lt;BR&gt;&lt;BR&gt;" &amp; vbCRLF &amp; vbCRLF<BR>X = 0<BR>&nbsp; SQL = "SELECT DISTINCT EmailTo "<BR>&nbsp; SQL = SQL &amp; "FROM tblquarantine "<BR>&nbsp; SQL = SQL &amp; "WHERE Expire = 0 AND Deliver = 0 "<BR>&nbsp; SQL = SQL &amp; "ORDER BY EmailTo"<BR>&nbsp; Set rs = con.Execute(SQL)<BR>&nbsp; If rs.EOF Then<BR>&nbsp;&nbsp; Response.Write "&lt;h2&gt;No addresses in database!&lt;/h2&gt;"<BR>&nbsp; Else<BR>&nbsp;&nbsp; rs.movefirst<BR>&nbsp;&nbsp; While Not rs.EOF<BR>&nbsp;&nbsp;&nbsp; EmailTo = lcase(rs("EmailTo"))<BR>&nbsp;&nbsp;&nbsp; OKToMail = True<BR>&nbsp;&nbsp;&nbsp; SQL2 = "SELECT * FROM tbllogins WHERE Email = '" &amp; EmailTo &amp; "'"<BR>&nbsp;&nbsp;&nbsp; Set TestRS = con.Execute(SQL2)<BR>&nbsp;&nbsp;&nbsp; IF not (TestRS.eof AND TestRS.bof) THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp; IF TestRS("Notification") =&lt; "2" THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OKToMail = False<BR>&nbsp;&nbsp;&nbsp;&nbsp; END IF<BR>&nbsp;&nbsp;&nbsp; END IF<BR>&nbsp;&nbsp;&nbsp; TestRS.close<BR>&nbsp;&nbsp;&nbsp; Set TestRs = nothing<BR>&nbsp;&nbsp;&nbsp; IF OKToMail THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp; SQL = "SELECT COUNT(EmailTo) AS MessageCount FROM tblQuarantine WHERE (EmailTo = '" &amp; EmailTo &amp; "')"<BR>&nbsp;&nbsp;&nbsp;&nbsp; Set MessageCountRS = con.Execute(SQL)<BR>&nbsp;&nbsp;&nbsp;&nbsp; IF MessageCountRS(0) &gt; 0 THEN<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SendMessage2 EmailTo, MessageCountRS(0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X = X + 1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; response.write EmailTo &amp; " has " &amp; MessageCountRS(0) &amp; " messages in queue... reminder sent.&lt;BR&gt;" &amp; vbcrlf<BR>&nbsp;&nbsp;&nbsp;&nbsp; END IF<BR>&nbsp;&nbsp;&nbsp; END IF<BR>&nbsp;&nbsp;&nbsp; rs.MoveNext<BR>&nbsp;&nbsp; Wend<BR>&nbsp; END IF<BR>&nbsp; rs.close<BR>&nbsp; set rs = nothing<BR>&nbsp; con.close<BR>&nbsp; set con = nothing<BR>response.write "&lt;BR&gt;" &amp; X &amp; " daily reminder messages sent to users with no accounts.&lt;br&gt;&lt;br&gt;&lt;br&gt;" &amp; vbCRLF</FONT></P><P><FONT size=1>SUB SendMessage1(strEmail, lMessageCount)<BR>&nbsp;Set rs3 = Server.CreateObject("ADODB.Recordset")<BR>&nbsp;Set rs3.ActiveConnection = con<BR>&nbsp;rs3.CursorType = 1<BR>&nbsp;rs3.LockType = 3</FONT></P><P><FONT size=1>SQL = "SELECT Password "<BR>SQL = SQL &amp; "FROM tblLogins "<BR>SQL = SQL &amp; "WHERE (Email = '" &amp; rs("Email") &amp; "')"<BR>Set rs4 = con.Execute(SQL)</FONT></P><P><FONT size=1>&nbsp;MessageDate = Now<BR>&nbsp;Message = "From: KSP Spam Administrator &lt;</FONT><A href="mailto:support@ksphosting.com" target="_blank"><FONT size=1>support@ksphosting.com</FONT></A><FONT size=1>&gt;" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "To: " &amp; stremail &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Subject: Daily SPAM Notification: You have SPAM!" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Date: " &amp; FormatDateTime(MessageDate, vbLongDate) &amp; " " &amp; FormatDateTime(MessageDate, vbLongTime) &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Content-Type: text/html;charset=""ISO-8859-1""" &amp; vbCRLF &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;We have detected &lt;/font&gt;&lt;font color=""#FF0000""&gt;" &amp; lMessageCount &amp; "&lt;/font&gt;&lt;font color=""#000080""&gt; suspicious E-Mail(s) for your email account &lt;/a&gt;&lt;/font&gt;&lt;font color=""#FF0000""&gt;" &amp; strEmail &amp; "&lt;/font&gt;&lt;/a&gt;&lt;font color=""#000080""&gt;.&lt;br&gt;&amp;nbsp;&lt;/font&gt;&lt;/ font&gt;&lt;/p&gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;Please click on &lt;/font&gt;&lt;a href=""</FONT><A href="http://www.ksphosting.com/spam/autoauth.asp?username" target="_blank"><FONT size=1>http://www.ksphosting.com/spam/autoauth.asp?username</FONT></A><FONT size=1>="&amp; strEmail &amp;"&amp;password="&amp; rs4("Password") &amp; """&gt;&lt;font color=""#000080""&gt;http://www.ksphosting.com/spam&lt;/font &gt;&lt;/a&gt;&lt;font color=""#000080""&gt; to look at the message(s). &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;From this menu you may choose to delete all suspicious e-mail(s) or send through to your you mail program.&lt;br&gt;Please note: if you send the message through this individual sender they will be automatically cleared for all future e-mails.&lt;br&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p &gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;What is SPAM? Click here for the answer: &lt;/font&gt;&lt;a href=""</FONT><A href='http://computer.howstuffworks.com/spam.htm"" target="_blank" target="_blank"><font'><FONT size=1>http://computer.howstuffworks.com/spam.htm""&gt;&lt;font</FONT></A><FONT size=1>  color=""#000080""&gt;http://www.ksphosting.com/answers/spam& amp; lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "." &amp; vbCRLF<BR>&nbsp;SQL = "SELECT * FROM tblMsgs WHERE 0 = 1"<BR>&nbsp;rs3.Open(SQL)<BR>&nbsp;rs3.AddNew<BR>&nbsp;rs3("Msg") = Message<BR>&nbsp;rs3.Update<BR>&nbsp;MsgID = rs3("MsgID")<BR>&nbsp;response.write "MsgID= " &amp; msgID &amp; "&lt;BR&gt;" &amp; vbCRLF<BR>&nbsp;rs3.Close<BR>&nbsp;SQL="SELECT * FROM tblQuarantine WHERE 0 = 1"<BR>&nbsp;rs3.Open(SQL)<BR>&nbsp;rs3.AddNew<BR>&nbsp;rs3("EMailFrom") = "</FONT><A href="mailto:support@ksphosting.com" target="_blank"><FONT size=1>support@ksphosting.com</FONT></A><FONT size=1>"<BR>rs3("EMailTo") = strEMail<BR>' rs3("EMailTo") = "</FONT><A href="mailto:kevin@pare.ca" target="_blank"><FONT size=1>kevin@pare.ca</FONT></A><FONT size=1>"<BR>&nbsp;rs3("Subject") = "Daily Reminder: You have messages being held in quarantine"<BR>&nbsp;rs3("MsgID") = MsgID<BR>&nbsp;rs3("MsgDate") = MessageDate<BR>&nbsp;rs3("Expire") = 0<BR>&nbsp;rs3("Deliver") = 1<BR>&nbsp;rs3("RejectDetails") = ""<BR>&nbsp;rs3("RejectID") = 0<BR>&nbsp;rs3("ServerID") = 4<BR>&nbsp;rs3.Update<BR>&nbsp;rs3.Close<BR>&nbsp;Set rs3 = Nothing</FONT></P><P><FONT size=1>END SUB</FONT></P><P><FONT size=1>SUB SendMessage2(strEmail, lMessageCount)<BR>&nbsp;Set rs3 = Server.CreateObject("ADODB.Recordset")<BR>&nbsp;Set rs3.ActiveConnection = con<BR>&nbsp;rs3.CursorType = 1<BR>&nbsp;rs3.LockType = 3<BR>&nbsp;MessageDate = Now<BR>&nbsp;Message = "From: KSP Spam Administrator &lt;</FONT><A href="mailto:support@ksphosting.com" target="_blank"><FONT size=1>support@ksphosting.com</FONT></A><FONT size=1>&gt;" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "To: " &amp; stremail &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Subject: Daily SPAM Notification: You have SPAM!" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Date: " &amp; FormatDateTime(MessageDate, vbLongDate) &amp; " " &amp; FormatDateTime(MessageDate, vbLongTime) &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "Content-Type: text/html;charset=""ISO-8859-1""" &amp; vbCRLF &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;We have detected &lt;/font&gt;&lt;font color=""#FF0000""&gt;" &amp; lMessageCount &amp; "&lt;/font&gt;&lt;font color=""#000080""&gt; suspicious E-Mail(s) for your email account &lt;/a&gt;&lt;/font&gt;&lt;font color=""#FF0000""&gt;" &amp; strEmail &amp; "&lt;/font&gt;&lt;/a&gt;&lt;font color=""#000080""&gt;.&lt;br&gt;&amp;nbsp;&lt;/font&gt;&lt;/ font&gt;&lt;/p&gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;Please click on &lt;/font&gt;&lt;a href=""</FONT><A href="http://www.ksphosting.com/spam/register.asp?email" target="_blank"><FONT size=1>http://www.ksphosting.com/spam/register.asp?email</FONT></A><FONT size=1>="&amp; strEmail &amp;"""&gt;&lt;font color=""#000080""&gt;http://www.ksphosting.com/spam&lt;/font &gt;&lt;/a&gt;&lt;font color=""#000080""&gt; to look at the message(s). &lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;From this menu you may choose to delete all suspicious e-mail(s) or send through to your you mail program.&lt;br&gt;Please note: if you send the message through this individual sender they will be automatically cleared for all future e-mails.&lt;br&gt;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;/p &gt;&lt;p align=""center""&gt;&lt;font face=""Arial""&gt;&lt;font color=""#000080""&gt;What is SPAM? Click here for the answer: &lt;/font&gt;&lt;a href=""</FONT><A href='http://computer.howstuffworks.com/spam.htm"" target="_blank" target="_blank"><font'><FONT size=1>http://computer.howstuffworks.com/spam.htm""&gt;&lt;font</FONT></A><FONT size=1>  color=""#000080""&gt;http://www.ksphosting.com/answers/spam& amp; lt;/font&gt;&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;" &amp; vbCRLF<BR>&nbsp;Message = Message &amp; "." &amp; vbCRLF<BR>&nbsp;SQL = "SELECT * FROM tblMsgs WHERE 0 = 1"<BR>&nbsp;rs3.Open(SQL)<BR>&nbsp;rs3.AddNew<BR>&nbsp;rs3("Msg") = Message<BR>&nbsp;rs3.Update<BR>&nbsp;MsgID = rs3("MsgID")<BR>&nbsp;response.write "MsgID= " &amp; msgID &amp; "&lt;BR&gt;" &amp; vbCRLF<BR>&nbsp;rs3.Close<BR>&nbsp;SQL="SELECT * FROM tblQuarantine WHERE 0 = 1"<BR>&nbsp;rs3.Open(SQL)<BR>&nbsp;rs3.AddNew<BR>&nbsp;rs3("EMailFrom") = "</FONT><A href="mailto:support@ksphosting.com" target="_blank"><FONT size=1>support@ksphosting.com</FONT></A><FONT size=1>"<BR>rs3("EMailTo") = strEMail<BR>' rs3("EMailTo") = "</FONT><A href="mailto:kevin@pare.ca" target="_blank"><FONT size=1>kevin@pare.ca</FONT></A><FONT size=1>"<BR>&nbsp;rs3("Subject") = "Daily Reminder: You have messages being held in quarantine"<BR>&nbsp;rs3("MsgID") = MsgID<BR>&nbsp;rs3("MsgDate") = MessageDate<BR>&nbsp;rs3("Expire") = 0<BR>&nbsp;rs3("Deliver") = 1<BR>&nbsp;rs3("RejectDetails") = ""<BR>&nbsp;rs3("RejectID") = 0<BR>&nbsp;rs3("ServerID") = 4<BR>&nbsp;rs3.Update<BR>&nbsp;rs3.Close<BR>&nbsp;Set rs3 = Nothing</FONT></P><P><FONT size=1>END SUB</FONT></P><P><BR><FONT size=1>%&gt;<BR>&lt;/body&gt;<BR>&lt;/html&gt;</FONT></P><P><FONT size=1></FONT>&nbsp;</P><span style="font-size:10px"><br /><br />Edited by kspare</span>]]>
   </description>
   <pubDate>Sat, 05 Feb 2005 11:27:35 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=5043&amp;PID=5133&amp;title=custom-sql-queries#5133</guid>
  </item> 
 </channel>
</rss>