php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22304 imap_sort fails when c-client >=2002 and SE_UID and imapserver has no SORT-cap
Submitted: 2003-02-19 15:40 UTC Modified: 2003-02-21 09:50 UTC
From: Joerg dot Dieter dot Friedrich at uni-konstanz dot de Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 4.3.1 OS: Solaris 8
Private report: No CVE-ID: None
 [2003-02-19 15:40 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-20 01:56 UTC] sniper@php.net
You should report this to the c-client author since this
is not PHP bug.

 [2003-02-21 07:36 UTC] 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-21 09:50 UTC] sniper@php.net
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)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 21:01:28 2024 UTC