Spam Filter ISP Support Forum

  New Posts New Posts RSS Feed - SQL Help
  FAQ FAQ  Forum Search   Register Register  Login Login

SQL Help

 Post Reply Post Reply
Author
kspare View Drop Down
Senior Member
Senior Member


Joined: 26 January 2005
Location: Canada
Status: Offline
Points: 334
Post Options Post Options   Thanks (0) Thanks(0)   Quote kspare Quote  Post ReplyReply Direct Link To This Post Topic: SQL Help
    Posted: 03 December 2004 at 10:23am
I am trying to write a script to delete spam caught with file attachements. I came up with this so far...

update tblquarantine set expire=1 where RejectDetails = 'Found Keywords: [Found prohibited attachment:'

But it doesn't work. Can anyone help?
Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2004 at 11:59am

See Post Below

Regards,

Dan S.

Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2004 at 12:18pm
OK ... This will find them:
 
select * from tblquarantine
where rejectid = 13
and rejectdetails like '%attach%'
 
This will delete them:
 
update tblquarantine set expire=1
where rejectid = 13
and rejectdetails like '%attach%'
 
Regards,
 
Dan S.
Back to Top
kspare View Drop Down
Senior Member
Senior Member


Joined: 26 January 2005
Location: Canada
Status: Offline
Points: 334
Post Options Post Options   Thanks (0) Thanks(0)   Quote kspare Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2004 at 12:30pm
Thanks Dan!!! Worked perfectly!
Back to Top
Desperado View Drop Down
Senior Member
Senior Member
Avatar

Joined: 27 January 2005
Location: United States
Status: Offline
Points: 1143
Post Options Post Options   Thanks (0) Thanks(0)   Quote Desperado Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2004 at 12:31pm

Good Deal!

Dan

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.094 seconds.