DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 05, 2010, 08:21:59 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Clearing Emails  (Read 814 times)
0 Members and 1 Guest are viewing this topic.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« on: March 19, 2004, 10:34:18 PM »

Is there a way to remove mail after 3-5 days on all accounts?

Biggest problem I have is I use the rob the bank feature...Well when you have 150 registered users my mail file has 8000 messages .

LoGD of course clears "read" mail after a set amount of days. Is there a way to clear ALL (unread and read) mail after a certain amount of days?

Im guessing they are marked as read, could take away the "read" checking..

Maybe Im wrong looking at it....In mail.php
Code:
$sql = "DELETE FROM mail WHERE sent<'".date("Y-m-d H:i:s",strtotime("-".getsetting("oldmail",14)."days"))."'";
db_query($sql);

Would I be correct in saying that deletes all mail read or unread after set days?

ALSO:
Big question I have is, since this is in the mail.php...What if this is a level 8 char that isnt going to expire and they don't login for 2 weeks. They aren't executing mail.php so, is the mail getting deleted?
« Last Edit: March 19, 2004, 10:46:42 PM by Arune » Logged
Kendaer
Global Moderator
Mod God
*****
Offline Offline

Posts: 1806


Once a dragon, always a dragon


View Profile WWW
« Reply #1 on: March 20, 2004, 06:35:35 PM »

you would be correct that all mail, read or unread is deleted after the set number of days.

Logged

Ex co-developer of LotGD
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #2 on: March 20, 2004, 07:01:42 PM »

ok cool

Thanks Smiley I just wasnt real sure about it and wanted to ask
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
30 Guests, 4 Users
Rawr_mel, Iori, Cory2, Oak
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search