Banned Attachments |
Post Reply ![]() |
Author | |
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() 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! <%=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.
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
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! </Strong></font> <% End if %> <font face="Arial" size="1"><% If rs("EmailFrom") <> "" Then %><%=Server.HTMLEncode(rs("EmailFrom"))%> <% Else Response.Write(" ") %> <% 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
|
|
![]() |
|
John ![]() Guest Group ![]() |
![]() ![]() ![]() ![]() ![]() |
Dan,
Send me an email. I have some info for your for antivirus. John
|
|
![]() |
|
Desperado ![]() Senior Member ![]() ![]() Joined: 27 January 2005 Location: United States Status: Offline Points: 1143 |
![]() ![]() ![]() ![]() ![]() |
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.172 seconds.