How to get current mailbox usage with ispconfig api

Discussion in 'Tips/Tricks/Mods' started by Pasqui Andrea, Sep 13, 2017.

  1. Pasqui Andrea

    Pasqui Andrea New Member

    Hi,

    with ispconfig api i can simply get the quota limit for each mailbox, my question is: how i can get the real usage of mailbox? I searched in API documentation but i diden't find anything about real usage.

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The monitor data is not accessible via API.
     
  3. kinai

    kinai Member

    Hi all,

    From the documentation, it seems that the Monitor is not always accessible from the API ? it's right ?
    Thanks,
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Yes, that is almost word for word what was just stated.

    Regarding mail quota specifically, which was the original poster's need, there is an api function to read that (mailquota_get_by_user), and some other quota related functions I've not tested (quota_get_by_user, trafficquota_get_by_user and databasequota_get_by_user), but there's no general access to monitor_data.
     

Share This Page