<?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 : help with sql script</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 : help with sql script]]></description>
  <pubDate>Sat, 06 Jun 2026 07:00:10 +0000</pubDate>
  <lastBuildDate>Wed, 05 Jan 2005 01:48:00 +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=4874</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[help with sql script : Kevin, For this I&amp;#039;d go back...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4944&amp;title=help-with-sql-script#4944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 05 January 2005 at 1:48am<br /><br /><P>Kevin,</P><P>For this I'd go back to my&nbsp;1st reply in this thread:</P><P>==============<BR>The Msg field in the tblMsgs table would have a section similar to the following for an attachment of joe.txt: </P><PRE id=line180>------=_NextPart_000_003B_01C4ED2F.4D510E20Content-Type: text/plain;	name="joe.txt"Content-Transfer-Encoding: 7bitContent-Disposition: attachment;	filename="joe.txt"</PRE><P>==============</P><P>If as you ask for in this last posting you wish to only be able to delete all emails blocked by IP that have <EM><STRONG>any </STRONG></EM>attachment, you could construct a SQL query that looks for the string "<STRONG>Content-Disposition: attachment;</STRONG>", as follows:</P><P>UPDATE&nbsp;&nbsp;&nbsp; tblQuarantine<BR>SET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tblQuarantine.Expire = 1<BR>FROM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; tblQuarantine, tblMsgs<BR>WHERE&nbsp;&nbsp;&nbsp;&nbsp; (tblQuarantine.MsgID = tblMsgs.MsgID) AND (tblMsgs.Msg LIKE '%Content-Disposition: attacdment;%') AND (tblQuarantine.RejectID = 12)</P><P>This will cause all messages with RejectID=12 and the attachment string to be tagged for deletion by SpamFilter. Please note that RejectID 12 includes both blacklisted IPs and rejects caused by the MAPS RBL servers. SpamFilter makes no distinctions between the two. If that is not satisfactory, the query could be modified to also look at the RejectDetails field in the tblQuarantine table to look for&nbsp;"is Blacklisted" (a subset of "The IP&nbsp;aa.bb.cc.dd is Blacklisted").</P><P>DISCLAIMER - This SQL statement was thought of while responding to this post, it is in no way supported/guaranteed to work by LogSat!</P><P>Roberto F.<BR>LogSat Software</P>]]>
   </description>
   <pubDate>Wed, 05 Jan 2005 01:48:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4944&amp;title=help-with-sql-script#4944</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : People need to listen. Spamfilter...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4943&amp;title=help-with-sql-script#4943</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> 4874<br /><strong>Posted:</strong> 05 January 2005 at 12:26am<br /><br /><P>People need to listen.</P><P>Spamfilter is working PERFECTLY. I don't know how to make this more clear. However, with the amount of spam that does get caught alot of it is virus' that are caught but I am unable to delete from the database because they are tagged by ip first. Which is fine. If someone could help write an sql script that could delete anything with an attachment, my problem would be solved. All I want to do is simplify my customers experiences with spam and make everyone's life easier.</P><P>Basically my request is this. How can I delete messages blocked by ip that have an attachment?</P>]]>
   </description>
   <pubDate>Wed, 05 Jan 2005 00:26:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4943&amp;title=help-with-sql-script#4943</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : Kevin,SpamFilter&amp;#039;s job is...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4942&amp;title=help-with-sql-script#4942</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 04 January 2005 at 10:21pm<br /><br />Kevin,<P CLASS="ASPForums"></P>SpamFilter's job is to catch spam and all unwanted emails and block them so the end user does not see it. If your customers comlain because SpamFilter blocked too much spam and now their quarantine is full of junk... sorry, but this is *exactly* what SpamFilter is supposed to do. We tried to add features and options to allow in flexibility for administrators to have some control of what is quarantined and what is instead deleted right away, but we are not inclined to sacrifice performance for functionality that is extra to the ability to block spam.<P CLASS="ASPForums"></P>As a side note, this is our own opinion, but end users usually do not "routinely" go in their quarantine and check it for emails. At this point one may as well eliminate a spam filter since the users end up looking at all the blocked emails anyhow. But again this is our opinion and you may have requirements that we are not aware of.<P CLASS="ASPForums"></P>The order of the filter will be made user-defineable in future versions, but whether the IP-based rules will be processed before all others or not is still not decided. In any case, this is a major change that cannot be made using simple ini file parameters, it will require a lot of development (and discalimers for loss of performance if used improperly).<P CLASS="ASPForums"></P>Roberto F.LogSat Software]]>
   </description>
   <pubDate>Tue, 04 Jan 2005 22:21:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4942&amp;title=help-with-sql-script#4942</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : You complained about false positives...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4939&amp;title=help-with-sql-script#4939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=47">pcmatt</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 04 January 2005 at 12:59am<br /><br /><P>You complained about false positives if you drop those messages blocked by IP instead of quarantining.&nbsp;&nbsp;Your overall configuration must&nbsp;be problematic for that to be a bigger&nbsp;problem than presenting your users with&nbsp;their personal&nbsp;virus stores.&nbsp; This is a perfect example of why the quarantine is a bad idea.&nbsp; It turns perfectly good ISP's into junk and virus collectors.&nbsp;&nbsp; A good reporting system that allows users to see reports on every email that has been accepted or rejected is a far better way to go.</P><P>You can't be helped&nbsp;if you are not looking for other than the one solution that you have asked for repeatedly which simply is not going to happen.&nbsp; </P><P>-Matt</P>]]>
   </description>
   <pubDate>Tue, 04 Jan 2005 00:59:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4939&amp;title=help-with-sql-script#4939</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : Ok. So why do I need this antivirus...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4938&amp;title=help-with-sql-script#4938</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> 4874<br /><strong>Posted:</strong> 04 January 2005 at 12:40am<br /><br /><P>Ok. So why do I need this antivirus plugin? I'm already blocking most of my virus' with spamfilter already. anything that gets past is scanned by norton and/or mcafee.</P><P>But let's say for examply people don't have norton or mcafee. Most likely they have something on their server right?</P><P>Now by going by your theory Matt, the antivirus plugin would help us to find virus' right?</P><P>But we already know what most of them are, because we blocked them by fileattachment.</P><P>So instead of having the file attachment before the ip scan. we now have an antivirus plug in as well.</P><P>I want you to explain to me how THIS is going to help efficiency. All this can do is slow down the process, due the fact that now the entire message needs to be scanned for virus'.</P>]]>
   </description>
   <pubDate>Tue, 04 Jan 2005 00:40:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4938&amp;title=help-with-sql-script#4938</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : No foot for me this time.I never...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4937&amp;title=help-with-sql-script#4937</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=47">pcmatt</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 04 January 2005 at 12:35am<br /><br /><P>No foot for me this time.&nbsp;I never claimed any majorities used or did not use the quarantine features.&nbsp; The fact is that not everyone does and that's what I stated.&nbsp; </P><P>This is a rehash of an old post.&nbsp; What you ask for is not unreasonable, but in fact quite sensible, which is what has also been stated before.&nbsp; The problem is the complex and tedius amount of work that would be needed.&nbsp; It's&nbsp;likely we'll see SpamFilter anti virus features before&nbsp;you see the product with the complex configuration options you&nbsp;are asking for.</P><P>What you really need is an anti virus&nbsp;"plug in" for your database to scan and detect viruses.&nbsp; I'm sure this is doable, but I've never looked into writing such a program.&nbsp;</P><P>-Matt</P>]]>
   </description>
   <pubDate>Tue, 04 Jan 2005 00:35:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4937&amp;title=help-with-sql-script#4937</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : Matt. Let&amp;#039;s not put ourfoot...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4936&amp;title=help-with-sql-script#4936</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> 4874<br /><strong>Posted:</strong> 03 January 2005 at 10:42pm<br /><br /><P>Matt. Let's not put our&nbsp;foot in our mouth again shall we?</P><P>Most people do use the quaruntine.</P><P>Who said anything about hardcoding it? Generally every feature request roberto adds is configured via the ini file.</P><P>There is also a fine line between efficiency and how well and how convienient a product works. Right now, it's a pain in the ass because 90% of the spam is caught by ip. 80% of that is files caught because of their attachment. So now all my users have to sift through all of this spam to delete a bunch of useless messages that are deemed spam but I have no method to delete them. You explsin to all my customers that they have to deal with deleting all of that spam because the spam software I use is efficient instead of co-operative.</P>]]>
   </description>
   <pubDate>Mon, 03 Jan 2005 22:42:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4936&amp;title=help-with-sql-script#4936</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : Kevin,  Not everyone uses the...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4935&amp;title=help-with-sql-script#4935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=47">pcmatt</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 03 January 2005 at 10:34pm<br /><br /><P align=left>Kevin, </P><P align=left>Not everyone uses the quarantine.&nbsp; So, it only suits some users to hard code the solution you ask for.&nbsp;&nbsp;That would make the software perform worse for those of us that do not quarantine.&nbsp; </P><P align=left>This in addition to the valid points that Roberto has made regarding efficient high performance&nbsp;design of the software. </P><P align=left>-Matt</P>]]>
   </description>
   <pubDate>Mon, 03 Jan 2005 22:34:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4935&amp;title=help-with-sql-script#4935</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : The attachment filter is embedded...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4913&amp;title=help-with-sql-script#4913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://www.logsat.com/spamfilter/forums/member_profile.asp?PF=8">LogSat</a><br /><strong>Subject:</strong> 4874<br /><strong>Posted:</strong> 30 December 2004 at 8:40pm<br /><br />The attachment filter is embedded within the keywords filter, they can't be separated. Moving one would also mean moving the other, sorry.<P CLASS="ASPForums"></P>Roberto F.LogSat Software]]>
   </description>
   <pubDate>Thu, 30 Dec 2004 20:40:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4913&amp;title=help-with-sql-script#4913</guid>
  </item> 
  <item>
   <title><![CDATA[help with sql script : That may help alot yes. But my...]]></title>
   <link>https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4910&amp;title=help-with-sql-script#4910</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> 4874<br /><strong>Posted:</strong> 29 December 2004 at 11:24pm<br /><br />That may help alot yes. But my biggest problem right now is that in my database I have 10,000 messages. 9500 of them have been caught by the ip. I would like to simplify spam for myself and my users, but I can't just delete anything caught by IP because that is the main source of legit emails being caught. and probably 75% of those emails are virus'. Would it be possible to just add the file attachment filter first?]]>
   </description>
   <pubDate>Wed, 29 Dec 2004 23:24:00 +0000</pubDate>
   <guid isPermaLink="true">https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4874&amp;PID=4910&amp;title=help-with-sql-script#4910</guid>
  </item> 
 </channel>
</rss>