Hi all,
CustomEventHandler and the PublicAPI give us a great flexibility to retrieve information or even modify the behavior of events in cPanel.
For what I'm currently doing, I need to manually modify the email usage of the mailbox because they are in another server.
I thought using Email::getdiskusage in CustomEventHandler with a *pre* event to manually modify the values but the tests I have done show me that it's not the right function that is normally called every 4 hours to recalculate the email usage. But maybe I just missed something.
I have then the following questions :
* Could I modify the email usage with CustomEventHandler ?
* If yes, which one is the right function to call if it's not Email::getdiskusage ?
* If no, is it possible with the PublicAPI ?
* And if not ... Is there another way to achieve this, for example by manually modifying the right files ? In fact, what are those files ?
Thanks a lot in advance for any tips.
Philippe
CustomEventHandler and the PublicAPI give us a great flexibility to retrieve information or even modify the behavior of events in cPanel.
For what I'm currently doing, I need to manually modify the email usage of the mailbox because they are in another server.
I thought using Email::getdiskusage in CustomEventHandler with a *pre* event to manually modify the values but the tests I have done show me that it's not the right function that is normally called every 4 hours to recalculate the email usage. But maybe I just missed something.
I have then the following questions :
* Could I modify the email usage with CustomEventHandler ?
* If yes, which one is the right function to call if it's not Email::getdiskusage ?
* If no, is it possible with the PublicAPI ?
* And if not ... Is there another way to achieve this, for example by manually modifying the right files ? In fact, what are those files ?
Thanks a lot in advance for any tips.
Philippe