[imp] folder sort
Jan Schneider
jan@horde.org
Fri, 28 Sep 2001 09:34:49 +0200
Zitat von Chuck Hagenbuch <chuck@horde.org>:
> Quoting Jan Schneider <jan@horde.org>:
>
> > I tried to debug what happens and found the neither hsort() nor
> > tree_cmp() from
> > Tree.php is called once while displaying the folder view.
> > Is this a correct behaviour?
>
> No... I see it being called in a number of places. However, since the tree is
>
> serialized, unless you're looking when it's first built (or refreshed), you
>
> won't see those calls.
What I didn't see were the debug messages I put in the sort functions. Of
course it couldn't work if the folders are cached and I put the debug stuff
into it after I already logged in.
Anyway, I got some output finally. This are the contents of $list in hsort()
before and after the sorting. As you see what comes out is not sorted in
alphabetically order.
I don't know if this already helps, but I can provide more information if
necessary. I've never worked with the tree code so it's quite difficult to fix
it by myself.
Jan.
Here is the output:
Array
(
[{mail.wg.de:143/imap}INBOX] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX
[attributes] => 0
[delimiter] => .
)
)
Array
(
[{mail.wg.de:143/imap}INBOX] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX
[attributes] => 0
[delimiter] => .
)
)
Array
(
[{mail.wg.de:143/imap}INBOX.AMMMa] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.Drafts] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Drafts
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.HI] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.HI
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.Privat] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Privat
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.Support etc] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Support etc
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.Trash] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Trash
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.gpg] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.gpg
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.horde] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.sent] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.sent-aug-2001] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent-aug-2001
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.tip4all] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.tip4all
[attributes] => 0
[delimiter] => .
)
)
Array
(
[-423376836] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa
[attributes] => 0
[delimiter] => .
)
[-1408107385] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Drafts
[attributes] => 0
[delimiter] => .
)
[-1785560575] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.gpg
[attributes] => 0
[delimiter] => .
)
[1247362736] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.HI
[attributes] => 0
[delimiter] => .
)
[1350635877] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde
[attributes] => 0
[delimiter] => .
)
[-206152519] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Privat
[attributes] => 0
[delimiter] => .
)
[1183014845] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent
[attributes] => 0
[delimiter] => .
)
[-544720723] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent-aug-2001
[attributes] => 0
[delimiter] => .
)
[-131389396] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Support etc
[attributes] => 0
[delimiter] => .
)
[701010793] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.tip4all
[attributes] => 0
[delimiter] => .
)
[-891202227] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Trash
[attributes] => 0
[delimiter] => .
)
)
Array
(
[-423376836] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa
[attributes] => 0
[delimiter] => .
)
[-1408107385] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Drafts
[attributes] => 0
[delimiter] => .
)
[-1785560575] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.gpg
[attributes] => 0
[delimiter] => .
)
[1247362736] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.HI
[attributes] => 0
[delimiter] => .
)
[1350635877] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde
[attributes] => 0
[delimiter] => .
)
[-206152519] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Privat
[attributes] => 0
[delimiter] => .
)
[1183014845] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent
[attributes] => 0
[delimiter] => .
)
[-544720723] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent-aug-2001
[attributes] => 0
[delimiter] => .
)
[-131389396] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Support etc
[attributes] => 0
[delimiter] => .
)
[701010793] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.tip4all
[attributes] => 0
[delimiter] => .
)
[-891202227] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Trash
[attributes] => 0
[delimiter] => .
)
)
Array
(
[-544720723] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent-aug-2001
[attributes] => 0
[delimiter] => .
)
[-131389396] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Support etc
[attributes] => 0
[delimiter] => .
)
[701010793] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.tip4all
[attributes] => 0
[delimiter] => .
)
[-891202227] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Trash
[attributes] => 0
[delimiter] => .
)
[1183014845] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.sent
[attributes] => 0
[delimiter] => .
)
[-206152519] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Privat
[attributes] => 0
[delimiter] => .
)
[-1408107385] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.Drafts
[attributes] => 0
[delimiter] => .
)
[-1785560575] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.gpg
[attributes] => 0
[delimiter] => .
)
[1247362736] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.HI
[attributes] => 0
[delimiter] => .
)
[1350635877] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde
[attributes] => 0
[delimiter] => .
)
[-423376836] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa
[attributes] => 0
[delimiter] => .
)
)
Array
(
[{mail.wg.de:143/imap}INBOX.AMMMa.Learn::Web] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Learn::Web
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.AMMMa.Projekte] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Projekte
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.AMMMa.Select] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Select
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.AMMMa.Server] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Server
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.AMMMa.TEMPI] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TEMPI
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.AMMMa.TexteMedien] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TexteMedien
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.horde.apps] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.apps
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.horde.cvs] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.cvs
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.horde.dev] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.dev
[attributes] => 0
[delimiter] => .
)
[{mail.wg.de:143/imap}INBOX.horde.imp] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.imp
[attributes] => 0
[delimiter] => .
)
)
Array
(
[573918361] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.apps
[attributes] => 0
[delimiter] => .
)
[-503419731] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.cvs
[attributes] => 0
[delimiter] => .
)
[-503120388] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.dev
[attributes] => 0
[delimiter] => .
)
[-503502561] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.imp
[attributes] => 0
[delimiter] => .
)
[180636246] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Learn::Web
[attributes] => 0
[delimiter] => .
)
[118991786] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Projekte
[attributes] => 0
[delimiter] => .
)
[1289951738] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Select
[attributes] => 0
[delimiter] => .
)
[1301202263] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Server
[attributes] => 0
[delimiter] => .
)
[-537940329] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TEMPI
[attributes] => 0
[delimiter] => .
)
[154070980] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TexteMedien
[attributes] => 0
[delimiter] => .
)
)
Array
(
[573918361] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.apps
[attributes] => 0
[delimiter] => .
)
[-503419731] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.cvs
[attributes] => 0
[delimiter] => .
)
[-503120388] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.dev
[attributes] => 0
[delimiter] => .
)
[-503502561] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.imp
[attributes] => 0
[delimiter] => .
)
[180636246] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Learn::Web
[attributes] => 0
[delimiter] => .
)
[118991786] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Projekte
[attributes] => 0
[delimiter] => .
)
[1289951738] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Select
[attributes] => 0
[delimiter] => .
)
[1301202263] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Server
[attributes] => 0
[delimiter] => .
)
[-537940329] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TEMPI
[attributes] => 0
[delimiter] => .
)
[154070980] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TexteMedien
[attributes] => 0
[delimiter] => .
)
)
Array
(
[1289951738] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Select
[attributes] => 0
[delimiter] => .
)
[1301202263] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Server
[attributes] => 0
[delimiter] => .
)
[-537940329] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TEMPI
[attributes] => 0
[delimiter] => .
)
[154070980] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.TexteMedien
[attributes] => 0
[delimiter] => .
)
[118991786] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Projekte
[attributes] => 0
[delimiter] => .
)
[180636246] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.AMMMa.Learn::Web
[attributes] => 0
[delimiter] => .
)
[-503419731] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.cvs
[attributes] => 0
[delimiter] => .
)
[-503120388] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.dev
[attributes] => 0
[delimiter] => .
)
[-503502561] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.imp
[attributes] => 0
[delimiter] => .
)
[573918361] => stdClass Object
(
[name] => {mail.wg.de:143/imap}INBOX.horde.apps
[attributes] => 0
[delimiter] => .
)
)
::::::::::::::::::::::::::::::::::::::::
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
::::::::::::::::::::::::::::::::::::::::::::::