• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Instant mailbox gdeliveryd

Junior Spellweaver
Joined
Oct 15, 2020
Messages
152
Reaction score
184
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:
Back
Top