Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2013
    Posts
    4

    Question Fetch a users used MB & remaining MB outside the interface.

    Hi there

    Take the OX disk space bar:

    20130910163019_OX_QuotaBar.jpg

    We would like to grab these values centrally (for all our users) so we can raise alerts and email the relevant people in regards to deleting emails & so on.

    So far we've tried using php's built in imap tools - these always return sizes far different to the bar. We've also tried grabbing the file size of the users /home/username/mail/ dir - but again, for several users this can be 100% larger than what the bar indicates.

    What we need is the bars exact figures, we dont mind writing something to grab these values from http, sql or file sources - any ideas?

    Please advise.

    Regards

    Jordon

    Edit: I should add that our OX instance is sat on postfix & dovecot & we have no idea at what level the 200MB "limit" is set?
    Last edited by Gorgemead; 09-10-2013 at 06:25 PM.

  2. #2
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    494

    Default

    The quota you are seeing is configured somewhere in your Dovecot. The values can be read using the IMAP protocol (if there is any library which can help you with that I don't know).
    You could also read the data from the Open-Xchange http api if you have or create a valid session for the user with the following api: (this is what the frontend is using to display the data)
    http://oxpedia.org/wiki/index.php?ti...ail_usage_data

  3. #3
    Join Date
    Jan 2014
    Posts
    1

    Default

    I will definitely visit this site again because i learned a lot and got very helpful information from your blog.Thanks for sharing.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •