quota hook and IMAP c-Client version

Roman Serbski libser@manas.kg
Sat, 02 Feb 2002 12:20:33 +0500


Morning list.

I have some strange trouble with implementing quota hook. Any help would 
be greatly appreciated.
Horde 2.0/IMP 3.0
qmail 1.03 + Vpopmail 5.1.10 (using Maildir++)
Courier-IMAP 1.4.0
PHP 4.2.0-dev
IMAP c-Client 2001 + compiled with SSL support

I was planning to use quota hook as described in 
horde/imp/config/conf.php. First time I had same symptoms as was 
mentioned by Gregorio Faraldo several days ago - there was no any info 
about quota usage.
After some debugging imp_show_quota function (changing $quota = 
@imap_get_quota($stream, 'ROOT'); to $quota = imap_get_quota($stream, 
'ROOT'); gave me the right error I guess :-) I have this error:

Warning: c-client imap_getquota failed in 
/usr/local/apache/htdocs/horde/imp/config/conf.php on line 344

Could someone who successfully installed quota hook provide some info 
about version of c-Client and /maybe/ extra hints/requirements while 
compiling php/c-client/courier-imap(???) to use quota hook? Or maybe the 
problem is that I use IMAP-SSL connections *ONLY*?

I also checked imap_get_quota PHP manual - it says:
This function is currently only available to users of the c-client2000 
library. Does it mean that it works with c-client2000 *ONLY* - what 
about 2001?

To be sure I tried to telnet to my mail server and use getquota - 
everything works fine, Courier-IMAP returns my quota usage/quota size.

Thank you for your help.

Regards,
Roman

-- 
11:00AM  up  2:18, 2 users, load averages: 0.00, 0.00, 0.00



>From mike@graftonhall.co.nz Date: Sat,  2 Feb 2002 07:45:59 +0000
Return-Path: <mike@graftonhall.co.nz>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 92062 invoked from network); 2 Feb 2002 07:41:31 -0000
Received: from unknown (HELO graftonhall.co.nz) (210.54.179.59)
  by clark.horde.org with SMTP; 2 Feb 2002 07:41:31 -0000
Received: from localhost [127.0.0.1]
	by graftonhall.co.nz [10.0.0.4]
	with SMTP (MDaemon.PRO.v5.0.4.R)
	for <imp@lists.horde.org>; Sat, 02 Feb 2002 20:46:00 +1300
Received: from 10.0.0.4 ( [10.0.0.4])
	as user mike@10.0.0.4 by head.graftonhall.co.nz with HTTP;
	Sat,  2 Feb 2002 07:45:59 +0000
Message-ID: <1012635959.3c5b99379b931@head.graftonhall.co.nz>
Date: Sat,  2 Feb 2002 07:45:59 +0000
From: Michael Cochrane <mike@graftonhall.co.nz>
To: imp@lists.horde.org, Claus <cniesen@gmx.net>
References: <5.1.0.14.2.20020201140335.00ac0590@pop.gmx.net>
In-Reply-To: <5.1.0.14.2.20020201140335.00ac0590@pop.gmx.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Originating-IP: 10.0.0.4
X-MDRemoteIP: 127.0.0.1
X-Return-Path: mike@graftonhall.co.nz
X-MDaemon-Deliver-To: imp@lists.horde.org
Subject: Re: [imp] Hacking question

what you want to be doing is not changing the code here. But changing the code
behind the delete link. What I would do is something like give the parent window
the url to do the delete and close the current one, instead of your current idea
of handleing the delete url then moving back to the other window.

This is straight out of my 'open message in a new window' patch:

  $url = Horde::applicationUrl("mailbox.php?actionID=" . DELETE_MESSAGES .
"&indices=" . $HTTP_GET_VARS['index']);
  echo
Horde::link('',_("Delete"),'widget','',"window.opener.location.href='$url';
return window.close();", '', $delete_warning) . _("Delete");

but you'll need some other code around this to decide when to print this link
and the normal delete link.

to have a look at the rest of the patch to get ideas:
http://www.graftonhall.co.nz/mikes/Horde%20Diffs/Open%20Message%20In%20New%20Window/Head/

Why exactly are you trying to do this? ie what are the messages in a different
window anyway?

- Mike 

Quoting Claus <cniesen@gmx.net>:

> In horde/imp/message.php the code to return to the mailbox after the 
> deletion of a message is:
> 
> header('Location: ' . Horde::applicationUrl('mailbox.php?start=' . 
> ($msgindex + 1), true));
> 
> I'm trying to change the code to display the mailbox in it's parent window 
> and close itself.
> 
> With regular links I do
>    Horde::link($from_uri, $frm, 'message', '_parent', 'self.close()')
> or something like that but I don't have a clue how to handle in this 
> situation where the URI is specified in the header. Especially since I 
> don't know the header syntax for loading pages in a different window and 
> executing javascript.
> 
> Thanks for your help,
>    Claus
> 
> PS: I'm in the progress of adding a option that allows the user to display 
> messages in a separate window.
> 
> 
> -- 
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
> 
> 




>From jan@horde.org Date: Sat,  2 Feb 2002 10:53:27 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 93840 invoked from network); 2 Feb 2002 09:53:48 -0000
Received: from mailout08.sul.t-online.com (194.25.134.20)
  by clark.horde.org with SMTP; 2 Feb 2002 09:53:48 -0000
Received: from fwd08.sul.t-online.de 
	by mailout08.sul.t-online.com with smtp 
	id 16Wwri-0003pv-02; Sat, 02 Feb 2002 10:53:46 +0100
Received: from linux.wg.de (320034214675-0001@[217.88.129.81]) by fmrl08.sul.t-online.com
	with esmtp id 16Wwrb-0qYGVEC; Sat, 2 Feb 2002 10:53:39 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g129rR901358
	for <imp@lists.horde.org>; Sat, 2 Feb 2002 10:53:27 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Sat,  2 Feb 2002 10:53:27 +0100
Message-ID: <1012643607.3c5bb7173f368@linux.wg.de>
Date: Sat,  2 Feb 2002 10:53:27 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <1012617512.3c5b51280ef25@horde.riboflavin.net>
In-Reply-To: <1012617512.3c5b51280ef25@horde.riboflavin.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Select checks still off, $folder still in list...ideas?

Zitat von "Marcus I. Ryan" <marcus@riboflavin.net>:

> I just updated CVS about 5 minutes ago.  I haven't investigated these
> yet, but thought I'd mention them in case anyone (Jan, Chuck) had any
> hints on where it start looking, and to make sure I don't duplicate
> any other efforts...
> 
> When I use the select box to mark [all, unseen, etc.] messages it is
> still off by one.  This is where it could really help to know where to
> start looking.

Are you sure the update went well? And do you use the HEAD branch?
If you want to look anyway: There is javascript funtion selectFlagged() 
that goes through all form elements in the 'messages' form. It should start 
with the 2nd element if there is a hidden field at the start of the form.

Jan.

--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::


>From jan@horde.org Date: Sat,  2 Feb 2002 10:46:40 +0100
Return-Path: <jan@horde.org>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 93855 invoked from network); 2 Feb 2002 09:53:51 -0000
Received: from mailout05.sul.t-online.com (194.25.134.82)
  by clark.horde.org with SMTP; 2 Feb 2002 09:53:51 -0000
Received: from fwd08.sul.t-online.de 
	by mailout05.sul.t-online.com with smtp 
	id 16Wwri-0006dF-08; Sat, 02 Feb 2002 10:53:46 +0100
Received: from linux.wg.de (320034214675-0001@[217.88.129.81]) by fmrl08.sul.t-online.com
	with esmtp id 16Wwrc-0qYGVFC; Sat, 2 Feb 2002 10:53:40 +0100
Received: from localhost (localhost [127.0.0.1])
	by linux.wg.de (8.11.0/8.11.0/SuSE Linux 8.11.0-0.4) with ESMTP id g129kf901335
	for <imp@lists.horde.org>; Sat, 2 Feb 2002 10:46:41 +0100
Received: from 192.168.60.1 ( [192.168.60.1])
	as user jan@linux by linux.wg.de with HTTP;
	Sat,  2 Feb 2002 10:46:40 +0100
Message-ID: <1012643200.3c5bb580e7ab1@linux.wg.de>
Date: Sat,  2 Feb 2002 10:46:40 +0100
From: Jan Schneider <jan@horde.org>
To: imp@lists.horde.org
References: <Pine.GSO.4.31.0202011929300.16938-100000@unica.udc.es>
In-Reply-To: <Pine.GSO.4.31.0202011929300.16938-100000@unica.udc.es>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
X-Sender: 320034214675-0001@t-dialin.net
Subject: Re: [imp] Internet Explorer and attachments

Zitat von Alfonso Castro Martinez <alfonso@udc.es>:

> Hi!
> 
> I am working with horde 2.0, imp 3.0, turba 1.0, php 4.1.0 and apache
> 1.3.22 with SSL.
> 
> When I want see an attachment like word or excel file. IMP works well
> with Netscape and Opera but it makes bad with Internet Explorer.
> 
> If you click about the link, IMP gives an error and if you click about
> the
> disk icon, IMP opens the file in browser. I am using Internet Explorer
> 4.0, 5.5 and 6.0.
> 
> Is it correct? IMP should open the file when click in the link and it
> should save the file when click in disk icon, it's my opinion. Is there
> any patch?

Unfortunately IE is sometimes very buggy when it comes to the Content-
Disposition header. These bugs not only vary between different versions but 
apparently also between different localized versions.

So all you can do is try setting and removing the line:
$this->setQuirk('break_disposition_header');
in lib/Browser.php for the different IE versions until you get the best 
results and pray that it works for most of your users.

Jan.

--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::