uapi Email list_pops_with_disk not returning system mailbox
Hi,
We have implemented a perl module in /var/cpanel/perl/Cpanel/ResourceUsage/Custom/ that calculates the size of a client's emails and compares it against our own internal email quota. This works great, except when we call "uapi --output=jsonpretty Email list_pops_with_disk" it returns all user created mailboxes but doesn't show the system mailbox.
For some of our users, that mailbox can be quite large, so we want to include it in the total space used.
Is there a parameter I can supply to have it included in the results, or is there another call that would give me the same info for the default mailbox?
The issue we noticed was on CentOS6, cPanel v86, but the same function is used on our CentOS7 cPanel v110 servers.
-
Hey there! I'm not finding a tool that will include the disk usage for the default account. I've reached out to the developers but at this point in the day I likely won't hear anything until tomorrow, but I'll let you know what I find out! 0 -
Actually, I just found this a few minutes ago and I think it is going to work for us uapi --output=jsonpretty Email get_main_account_disk_usage_bytes Don 0 -
Oh nice! Of course it's named "main" and not "default" so it didn't come up in any of my searches, but good catch! 0
Please sign in to leave a comment.
Comments
3 comments