Kneschke.Lars wrote: > Paul J Stevens <[EMAIL PROTECTED]> schrieb: >> Dbmail already fully supports IMAP SORT using the cached header tables. >> Also BODY.PEEK[HEADER.FIELDS (From To X-WeirdHeader)] gives you direct >> access to the caching tables. >> >> So why not do: >> >> 000AA UID SORT (SUBJECT) 1:* >> >> to retrieve message uids sorted by base-subject, and use the result to >> retrieve the headers sorted by subject: >> >> 000AB UID FETCH <uid-list> (BODY.PEEK[HEADER.FIELDS(From Cc To >> Subject)]) > I still need to discover which php imap function issues this commands. :-) > > But my main concern is the limitation of the php imap_sort function: > http://de.php.net/manual/en/function.imap-sort.php
Heh, php's imap module doesn't give you access to the raw imap commands to send? Too weird! Too bad! > > This function fetches all headers(FETCH 1:last ...) and sorts them in php > later. This is not the best solution. Agreed. I guess php's imap_sort is *broken* in that respect. And it looks like imap_thread is no better. > > And i also don't want to write php based imap functions, when i can use > simply sql queries. -- ________________________________________________________________ Paul Stevens paul at nfg.nl NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31 The Netherlands________________________________http://www.nfg.nl
