Re: [exim] mailbox capasity

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
To: tower
CC: Exim-Users
Subject: Re: [exim] mailbox capasity
On Wed, Jul 13, 2011 at 2:17 AM, tower <towern@???> wrote:
>
> Is there any metod to use exim to read current maildir capasity? I need to
> get this integer value in php script and put it somewhere in my webmail.


IMHO, your best bet is to set up an imap server on localhost that only
listens on localhost and uses a static password. Then login and use
the appropriate imap command to get the current quota usage. This
could be easily done with a perl function or by using readsocket. The
most complicated part will likely be setting up the imap server (and
this could easily be done with courier-imap, BTW).

...Todd

--
If Americans could eliminate sugary beverages, potatoes, white bread,
pasta, white rice and sugary snacks, we would wipe out almost all the
problems we have with weight and diabetes and other metabolic
diseases. -- Dr. Walter Willett, Harvard School of Public Health