Quarantine delete timing |
Post Reply |
Author | |
George
Guest Group |
Post Options
Thanks(0)
Posted: 04 June 2003 at 8:04pm |
Roberto,
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
George, The idea is a good one, but is not that easy to implement efficiently at the moment. The delete query can be very cumbersome on a database with millions of records, and modifying it to handle users with different expiration dates would currently be extremely inefficient. Let us think for a bit on this one... Roberto F. |
|
George
Guest Group |
Post Options
Thanks(0)
|
I noticed while looking in the database that I have three items that show up in the database on the SQL server but do not show up in the admin manager. Also noticed that the reject decription is blank and has a reject code of 0. These these messages were the password email that is sent to a new registered user. Does the SQL database delete the email record after a message is sent? I would hope so or the database will grow forever. I currently have 18142 records in the database and from what I can tell the records of emails deleted or sent are still in the database. If I am guessing correctly these would be deleted when the valuse in the "Number of days to store quarantined emails" is reached. Is this correct? If this is so, does the database reindex the ID fields at the same time? |
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
Almost correct. We made it a bit more efficient than that. Each quarantine record has, among others, the fields Expire and Deliver. When, using the GUI or using the web interface, an email is selected to be delivered, the Deliver field in the quarantine for that record is set to true. When a user registers on the web interface to access the quarantine, the webserver needs to send them an email with the password. Rather than asking admins to install an SMTP component on the webserver, we choose to use SpamFilter to send the email... so a new quarantine record is created (with a blank reject ID..) and it's Deliver field is set to true. SpamFilter has two timers (there's many more... but only two apply here). One clicks every 10 seconds, the other every hour. The 10-second timer checks every 10 seconds all records in the database that have Deliver=1 and delivers all of them them. When a record is delivered, its Expire value is set to true. Every hour the hourly timer does (among other tasks) two things. It finds all records in the Quarantine that have passed the max retention period, and sets their Expire field to true (don't forget that there may be already a handful of records with Expire=true already because they have been delivered by the 10-second timer). It then deletes all records that have Expire=true. So... expired items will be deleted and cleaned up at hourly intervals. ...at least in theory. That's why it's a beta! If it doesn't behave as the theory thinks, please let us know since it's a bug! Roberto Franceschetti |
|
George
Guest Group |
Post Options
Thanks(0)
|
OK, then that being so, all emails not resolved either by the user hitting the delete button or the send button will not be deleted. Correct? Or are they still set to be deleted when the retention value is reached?
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
If by "not resolved" you mean that nobody (admins using GUI or end user) does anything to those records, then correct, they will be deleted when retesnsion is reached. Roberto |
|
George
Guest Group |
Post Options
Thanks(0)
|
Roberto, g |
|
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.250 seconds.