[imp] Re: [dev] expect quota driver
Cliff Green
green at umdnj.edu
Sun Nov 2 21:17:29 PST 2003
(switching lists, if nobody minds...)
On Thu, 30 Oct 2003, Cliff Green wrote:
CG> I've been trying to put together an expect/ssh-based driver for quotas
CG> on uw-imap systems (where imp is not on the imap server, and there are
CG> several imap servers).
CG> However, when I convert it to a hybrid of the command driver and the
CG> expect driver from passwd, I can't get the stdout return from expect
CG> into mod_php.
Okay, since nobody pointed out what my bonehead mistake was (thanks! <g>),
I was eventually able to find out that I just had a timeout value that was
too short for the expect script to return the quota data.
This works for both the current CVS version, as a quota driver in
servers.php, and (no surprise) as a hook function (imp_show_quota) in the
RELENG version.
So, the only problems now are that a) there's a noticeable performance hit
while waiting for the data, and b) in RELENG, I still have to distinguish
between different imap servers (we run both uw-imap and iPlanet servers).
Any advice or opinions on the first one (how to mitigate the performance
hit of hitting a remote server with slogin and the quota command each time
you hit the imap server)?
c
--
Clifford Green Internet - green at umdnj.edu
If we aren't supposed to eat animals, why are they made of meat?
More information about the imp
mailing list