Print Page | Close Window

Banned Attachments

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=4772
Printed Date: 01 July 2025 at 5:35pm


Topic: Banned Attachments
Posted By: Desperado
Subject: Banned Attachments
Date Posted: 15 December 2004 at 12:58pm
All,

Some of our customers have requested (against our better judgment) that the "Banned Attachments" are not "NULLed" and are actually quarantined.  So ... to help protect them from themselves I have made a modification to our ListSpam page to at least flag the message as potentially dangerous.  In our ListSpam page, we list the RejectDetails and modify the color and add text as follows:

<% strLine = rs("RejectDetails")
    If InStr (strLine,"prohibited attachment") > 0 Then %>
        <td><font face="Arial" size="1" color = "red">Virus WARNING!&nbsp;<%=Server.HTMLEncode(rs("RejectDetails"))%></font></td>
<% Else %>
        <td><font face="Arial" size="1"><%=Server.HTMLEncode(rs("RejectDetails"))%></font></td>
<% End if %>

Of course, if they elect to send it, our virus scanner kills it anyway.
 
Regards,
 
Dan S.



Replies:
Posted By: Desperado
Date Posted: 16 December 2004 at 11:26am
All,
 
Yet a more obvious way of "Flagging" banned attachments is to modify the listing in ListSpam for the EmailFrom field as follows:
 
   <% strLine = rs("RejectDetails")
   If InStr (strLine,"prohibited attachment") > 0 Then %>
      <font face="Arial" size="2" color = "red"><Strong>Possible Virus!&nbsp;</Strong></font>
   <% End if %>
   <font face="Arial" size="1"><% If rs("EmailFrom") <> "" Then %><%=Server.HTMLEncode(rs("EmailFrom"))%>
      <% Else Response.Write("&nbsp;") %>
   <% End if %></font></td>
 
BTW, The last "if" bit is only included to force my borders on my table even if the from address is blank.
 
Regards,
 
Dan S


Posted By: Guests
Date Posted: 20 December 2004 at 2:04am
Dan, Send me an email. I have some info for your for antivirus. John


Posted By: Desperado
Date Posted: 20 December 2004 at 1:59pm

 




Print Page | Close Window