[imp] imp_show_quota....
Joshua E Warchol
jwarchol@dsl.net
Fri, 31 May 2002 15:39:38 -0400
If you've got IMP properly configured but still don't see the quota
displaying above the mailbox, it is likely that you don't have your
IMAP server setup properly.
Courier is interesting in how it gets the quota information. It reads it
out of a file called "maildirsize" in the users Maildir. If that file
does not exist, or is in the wrong format, Courier will not return
data that imap_get_quota can use.
Try checking the quota yourself,
telnet imapserver 143
. login user password
. GETQUOTA ROOT
. logout
If you don't see :
* QUOTA "ROOT" (STORAGE 1 25600)
. OK GETQUOTA Ok.
Then you probably don't have a maildirsize file. That file must be created
by your MTA. Courier will creat it, there is a patch to Postfix that will
create it, some mojo could make sendmail do it, or you can use the
"maildrop" MDA that courier makes for this (it also supports niffty filtering).
On Sat, May 25, 2002 at 07:02:28PM +0200, Rene Lund Jensen wrote:
> OK I have the exact same problem with getting imp_show_quota to work.
>
> > Firstly ensure you have quota enabled in Courier ->
> >
> > #telnet localhost 143
> > Trying 127.0.0.1...
> > Connected to localhost.
> > Escape character is '^]'.
> > * OK Courier-IMAP ready. Copyright 1998-2002 Double Precision, Inc. See
> > COPYING for distribution information.
> > 1 capability
> > * CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> > THREAD=REFERENCES SORT QUOTA
> > 1 OK CAPABILITY completed
>
> This is done, and working fine.
>
> Following the next part I get nothing.
> I think there is an error around these lines
>
> > $quota = @imap_get_quota($stream, 'user.' . $imp['user']);
> > // Use the following line instead for Courier.
> > $quota = @imap_get_quota($stream, 'ROOT');
> > imap_close($stream);
> >
>
> The first $quota = @imap_get_quota(....
> should be commented out right ??
>
> well.. taht dosn't help much.. so I removed the '@' infront of the second
> imap_get_quota line and got this warning
>
> Warning: c-client imap_getquota failed in
> /www/webmail.tbkol.dk/html/horde-2.1/imp-3.1/config/conf.php on line 389
>
> OK so the imap_getquota failed, but how do I proceed in investigating this
> problem.
> I would really like to get this working as I think it's a really cool
> feature.
>
> --
> René Jensen
> lundeman@tbkol.dk
>
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
--
Joshua Warchol
UNIX Systems Administrator
DSL.net