[imp] imp cvs login/folders problem/patch

Michael M Slusarz slusarz at mail.curecanti.org
Wed Jan 4 23:12:10 PST 2006


Quoting Vijay Mahrra <vijay.mahrra at es.easynet.net>:

> Horde: 3.2-cvs
> Imp: H3 (4.2-cvs)
>
> Source: courier (0.47-4)
> Version: 3.0.8-4
> Depends: courier-imap (>= 1.3.7-3), courier-ssl (>= 0.47), openssl
>
> Recently i have been having a problem using IMP CVS and reading folder
> information (with courier imap server).

Are you saying it worked previous with HEAD and has recently stopped  
working?  We haven't changed anything in the last month or so -  
therefore, if something suddenly stopped working it is an issue on  
your side.

> I found that hacking my config to use the following namespace information
> and patching the imp/lib/Session.php (as attached) gets my folders to
> appear.
>
> I'm aware that that I am using the namespace array value incorrectly, but
> I'm not sure how I should patch the IMP code such that I can use something
> like:
>
>     'namespace' => array('INBOX.')
>
> instead and get it to set the other array values (below)

obviously, this is not correct.  The namespace parameter is *only* to  
be used to add namespaces that want to be displayed but are not  
advertised by the server.  Quite frankly, this is something that  
occurs on probably 1 out of 100,000 instatllations.  I have really,  
really thought hard about removing the namespace parameter totally  
because people seem to just start throwing random things in there in  
an attempt to debug their installation instead of finding the real  
issue (or helping us fix the bug).

> The problem appears to originate in the imp/lib/IMAP/Client.php namespace
> function as it returns an empty array when I tested it.  I need to look
> further before I can submit a proper patch, but this hack works for now.

and it is incorrect.

> CAPABILITY/NAMESPACE returns the following
>
> * CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
> THREAD=REFERENCES SORT ACL ACL2=UNION
> 030 OK CAPABILITY completed
> 040 NAMESPACE
> * NAMESPACE (("INBOX." ".")) NIL (("#shared." ".")("shared." "."))
> 040 OK NAMESPACE completed.

Then you need to debug and figure out why IMAP_Client::namespace() is  
not returning any information.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the imp mailing list