View Full Version : Auto Clear Sent PM Messages
gmarik
06-18-2003, 05:37 PM
Auto Clear Sent PM Messages would be a prune hack, that deletes all sent messages from all the sent folders after 30 days. Any idea?! :bunny:
filburt1
06-18-2003, 05:49 PM
You can cron a script (even a normal shell script would work) that every week or so runs the query:
DELETE FROM privatemessage WHERE folderid = [i]folderid for sent messages;
Be sure to always warn your users when stuff might suddently vanish.
gmarik
06-18-2003, 05:58 PM
Oh, and where should I write the cron jobs?
Not very familiar with them, never worked for me (HiveMail etc.).
filburt1
06-18-2003, 06:58 PM
You should probably ask your host on how to set up cron jobs. It can vary wildly.
gmarik
06-22-2003, 09:37 AM
folderid = [i]folderid for sent messages;
Which id is the one by default?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.