DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • November 17, 2018, 05:37:46 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Outbox  (Read 6794 times)
0 Members and 1 Guest are viewing this topic.
Nightborn
Guest
« on: December 03, 2005, 05:49:48 AM »

Yes, its some kind of an outbox or sent box...

It adds in to the mail.php and you'll get a "Outbox" button where you can access every mail that you sent AND that is not yet deleted by the recipient (else I would have to use another table ... and decrease performance).

I primarily copied mail.php for that purpose.

You can also track which mail is read or unread.

There is a setting if you want to let senders delete their mails. If they delete, the recipient won't have it anymore (read or unread).

http://dragonprime.net/users/Nightborn/outbox.zip

edit: changes are likely. this is just a first version.
« Last Edit: December 03, 2005, 05:50:21 AM by Nightborn » Logged
chicu
Guest
« Reply #1 on: December 03, 2005, 09:04:44 AM »

Is there german translation with Translation Wizard available?
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #2 on: December 03, 2005, 11:10:11 AM »

very nice!  this is something i wanted to expand letteropener with. Right now, players can just delete their YoMs and admins are never the wiser.  on my .9.7 game, when they hit delete, they actually just set 'visible' = 0, that way admins could still read YoM.  

Would you be willing to add the option to store emails in another table, at the cost of performance?
Logged

Nightborn
Guest
« Reply #3 on: December 03, 2005, 04:57:25 PM »

@Chicu

Not yet, the scheme is set to "Mail", so most of it (except 2-3 lines) are translated Wink I did not want to add additional information to it.

@Sixfoot
*hm*
the thing is, I have to create another table *and* hack me into the sendmail function... because I need a copy of every message sent.
I'll think about it Smiley Yet this was what I was trying to avoid.
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #4 on: December 03, 2005, 08:23:02 PM »

ah, I thought you had found a hook somewhere.  I had a thread inquiring about achieving what I wanted, and I thought you might have found a way to do it without modifying the core.
Logged

Nightborn
Guest
« Reply #5 on: December 04, 2005, 01:31:28 AM »

well, after an intense revising, I *can*

hook in and fetch any mail sending and insert a copy in a second table.

without core mod.

I simply use the hook at mailfunctions, wait for operation "send" (which is fortunately AFTER the hook), grab the httppost information and insert it into another table.

Yet this fetches only the sent mails when active, I can make a setting which way to use.

performance loss:
1 more insert query for every mail.
double space for mesages. although I can include the auto-delete after the expiry from the mail.php.

mainly it would just be a copy of it Cheesy
with all the functions if necessary, like delete within the outbox.
Logged
Nightborn
Guest
« Reply #6 on: December 04, 2005, 04:09:35 AM »

updated to v 1.01

now with sixf00ts request.


you can have a seperate outbox that stores you mails. the expiration takes effect on them and they will be deleted after a time. or the admin can set it so that the users can delete them manually.
either way (currently one by one) they won't be able to delete their sent mails with this setting, the code creates a new copy of the mail once sent (it hooks in and inserts into a new table).

Logged
Nightborn
Guest
« Reply #7 on: December 04, 2005, 06:05:05 AM »

typo fixed when having a real outbox and the someone reads his mails they won't be checked seen.

dl again.

note: limit for outbox is equal to the limit in the inbox. means he will be notified if his sentbox is full and he sends a mail, yet the mail is sent and he has to delete his sentbox.

Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #8 on: December 04, 2005, 07:34:20 PM »

weeeeeeeeeeeeeeee!  awesome!
Logged

kickme
Global Moderator
Mod God
*****
Offline Offline

Posts: 1589


Yay for elephants!


View Profile WWW
« Reply #9 on: December 04, 2005, 10:18:37 PM »

I was going to make this, but never got round to it. I also like six's request. Makes it easier for me to go back and read threads bothways.
Logged

Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka
Freeze
Guest
« Reply #10 on: December 06, 2005, 11:39:37 AM »

Ok, questions..

If you delete somthing in the outbox, [i'm not using the real outbox] then its deleted for good, right?

And is it necessary to delete the things in there?

Sorry, I'm just a little confused Tongue
Logged
Nightborn
Guest
« Reply #11 on: December 06, 2005, 05:00:45 PM »

Yep, it's for good. (you remove the row in the mail table)

If you want players to do that, you may use the setting "yes". If not, then "no".

I suggest to no, then people have an outbox (yet if the recipient deletes his mails, he won't see them too) but not a real additional performance loss.
Logged
ShadowRaven
Mod God
*****
Offline Offline

Posts: 805


Silence is a virtue...


View Profile WWW
« Reply #12 on: December 07, 2005, 02:29:46 PM »

You currently have 0 messages in your real outbox.
Messages are automatically deleted (read or unread) after 0 days.

any way to change how long till its auto delete? my normal mail setting is set  to delete old messages after 14 days...
Logged

Nightborn
Guest
« Reply #13 on: December 07, 2005, 02:35:15 PM »

download again. it should work (it does for me).

         output("`nMessages are automatically deleted (read or unread) after %s days.",db_num_rows($result),getsetting("oldmail",14));

<--this fetches it.


just download+install.
Logged
ShadowRaven
Mod God
*****
Offline Offline

Posts: 805


Silence is a virtue...


View Profile WWW
« Reply #14 on: December 07, 2005, 02:48:08 PM »

ok, thanks Smiley
Logged

Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
48 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search