Instant mailbox gdeliveryd

Junior Spellweaver
Joined
Oct 15, 2020
Messages
154
Reaction score
198
Location
Hansei
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:
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