Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Instant mailbox gdeliveryd

Junior Spellweaver
Joined
Oct 15, 2020
Messages
151
Reaction score
183
In order to get mails instantly you need to modify gdeliveryd:
--------------------------Part 1:
FW/wnet/gdeliveryd/Mailbox.h
Code:
#define MAIL_UNREAD_DELETE 2592000 // 30 days
#define MAIL_READ_DELETE   259200  // 3 days
#define MAIL_ONTHEWAY_TIME 3600    // 3600 seconds
change into:
Code:
#define MAIL_UNREAD_DELETE 2592000 // 30 days
#define MAIL_READ_DELETE   259200  // 3 days
#define MAIL_ONTHEWAY_TIME 0    // 0 seconds
--------------------------Part 2:
FW/wnet/gdeliveryd/Mailbox.cpp
must change content within:
Code:
int MailBox::DelayPolicy( const GMailHeader& mail,time_t now )
{ }
comment what's within the { } using // at the begining of each lines and add:
Code:
return 0;


change it into:

->The images above shows you how it should look like when you edit using notepad+
->As you can see we comment the pieces of codes that we don't need and add whatever code that's required.

Just compile the binary and enjoy!
 
Last edited:
Experienced Elementalist
Joined
Oct 24, 2007
Messages
243
Reaction score
362
ah.. i see. i guess this could occur. i remember I use to shutdown, i would iptables -I INPUT -p tcp -m tcp --dport 29000 -j DROP for 2 minutes, then only kill gs, gdeliveryd, glinkd, gqueryd. and make wdb backup first
 
Back
Top