#22304 [Csd->Bgs]: imap_sort fails when c-client >=2002 and SE_UID and imapserver has no SORT-cap
| From: | sniper@php.net | Date: | Fri, 21 Feb 2003 15:50:43 +0000 |
| Subject: | #22304 [Csd->Bgs]: imap_sort fails when c-client >=2002 and SE_UID and imapserver has no SORT-cap | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33850@lists.php.net to get a copy of this message | ||
ID: 22304
Updated by: sniper@php.net
Reported By: Joerg dot Dieter dot Friedrich at uni-konstanz dot de
-Status: Closed
+Status: Bogus
Bug Type: IMAP related
Operating System: Solaris 8
PHP Version: 4.3.1
New Comment:
Good to know, thanks for letting us know about it.
Hopefully it will be fixed in the next release...imap-2003?
(keep this report's status as bogus, as this was not bug in PHP)
Previous Comments:
------------------------------------------------------------------------
[2003-02-21 07:36:38] Joerg dot Dieter dot Friedrich at uni-konstanz
dot de
This was a bug in c-client.a from UW-imap distribution.
The patch is quite simple. It hopefully will be solved soon in the
c-client.
This patch is for src/c-client/imap4r1.c from UW-imap:
1758c1758
< mail_search_full (stream,charset,spg,flags);
---
> mail_search_full (stream,charset,spg,flags & SE_NOSERVER);
Thanks for your help.
------------------------------------------------------------------------
[2003-02-20 01:56:19] sniper@php.net
You should report this to the c-client author since this
is not PHP bug.
------------------------------------------------------------------------
[2003-02-19 15:40:31] Joerg dot Dieter dot Friedrich at uni-konstanz
dot de
Hi!
I encountered following problem:
imap_sort returns an empty array if all of
the following criteria are satisfied:
1. php_imap is linked against libc-client.a >= 2002
2. the imapserver has no SORT capability
here former iPlanet now SunOne<blabla> imapserver
3. request from imap_sort to return UIDs with SE_UID
I was told that this problem does not encounter on Linux, but I cannot
confirm this. And I had no time to test php prior to 4.3.0.
php compiled against | imap_sort(...,SE_UID)
imap-2001a w/o ssl | works
imap-2001a w/ ssl | works
imap-2002b w/o ssl | doesn't works
imap-2002b w/ ssl | doesn't works
imap-2003-dev w/o ssl | doesn't works
imap-2003-dev w/ ssl | doesn't works
I switched back to imap-2001a, but I hope this can be resolved.
Yours Jörg
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22304&edit=1