php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6027 imap_sort by SORTARRIVAL works randomly
Submitted: 2000-08-08 14:21 UTC Modified: 2000-08-10 00:26 UTC
From: dale at ownsu dot net Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.1pl2 OS: Linux 2.2.16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dale at ownsu dot net
New email:
PHP Version: OS:

 

 [2000-08-08 14:21 UTC] dale at ownsu dot net
imap_sort($inbox, 1, 1);
OR
imap_sort($inbox, "SORTARRIVAL", 1);


seems to sort by message date instead of arrival date, which incorrectly sorts inboxes with invalid dates (i.e. the unix epoch).

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-09 08:04 UTC] sniper@php.net
I assume you're c-client library is version 4.7 ??

There are known problems (reported by the c-client author!)
with dates in that version. The author suggested using
the newer version of the library:

ftp://cac.washington.edu/imap/imap-2000.RELEASE-CANDIDATE.4.tar.gz

There are numerous bugs fixed in that version.

Please try it and report if problem is solved.
I'm not able to try it out myself for now but 
will later on. 

--Jani
 [2000-08-09 23:19 UTC] dale at ownsu dot net
Same problems happens with imap-2000.RELEASE-CANDIDATE.4.tar.gz.
The dates are still set incorrectly (sometime in 1969) and therefore sort to the top of the inbox, rather than where it actually arrived.  As far as i can see, sorting by 1 works the same as sorting by 0 (without looking at php or imap C source).

 [2000-08-09 23:23 UTC] dale at ownsu dot net
Same problems happens with imap-2000.RELEASE-CANDIDATE.4.tar.gz.
The dates are still set incorrectly (sometime in 1969) and therefore sort to the top of the inbox, rather than where it actually arrived.  As far as i can see, sorting by 1 works the same as sorting by 0 (without looking at php or imap C source).

 [2000-08-09 23:54 UTC] dale at ownsu dot net
You are correct in saying this, is there bug tracking for c-client?
 [2000-08-10 00:26 UTC] sniper@php.net
So this is not PHP bug but c-client library bug. 

Clip from UW-imap's README:

BUG REPORTING ADDRESS

 Bugs or questions regarding this software may be reported to the author:

 Internet:      MRC@CAC.Washington.EDU

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 15:01:30 2024 UTC