php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11153 imap_check() returns wrong date
Submitted: 2001-05-28 07:17 UTC Modified: 2002-02-17 00:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:3 of 3 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (33.3%)
From: tp at dexel dot dk Assigned:
Status: Closed Package: IMAP related
PHP Version: 4.0.4pl1 OS: linux 2.2.17
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: tp at dexel dot dk
New email:
PHP Version: OS:

 

 [2001-05-28 07:17 UTC] tp at dexel dot dk
The Date field of the object returned by imap_check should contain the date of the last change of the selected mailbox, but it always return the date and time on which the function  is called, at least on my system.

I use c-client version 4.1 or more precisely imap-2001.BETA.SNAP-0104262058
I use courier-imap-1.3.6 imap server

Script to reproduce error:
$servercon = imap_open("{mail.domain.com:143}INBOX", "someone", "secret");
$mailboxStatus = imap_mailboxmsginfo($servercon);
echo $mailboxStatus->Date;
imap_close($servercon);

I have tried the above script on an older server with php 4.0.2, and older c-client library. I have also tried connecting to some older sendmail based mailserver with the same results.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-16 07:23 UTC] sander@php.net
Does this error still occur with the lastest (CVS) version?
 [2002-02-13 12:16 UTC] php at firstnetimpressions dot com
FYI ... This issue remains in PHP version 4.1.1

PHP_FUNCTION(imap_check) is calling rfc822_date(date) in php_imap.c
 [2002-02-17 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-03-21 11:05 UTC] bill dot mccoy at pictureiq dot com
I'm not a PHP.net developer so I can't change the bug status but it repros on 4.3.1 on multiple platforms (Windows XP and Linux) and against multiple IMAP servers.
 [2021-04-06 10:40 UTC] git@php.net
Automatic comment on behalf of roojs
Revision: https://github.com/php/pecl-tools-svn/commit/f031ce04f48a7ffb636b46eb1752b6e359636c50
Log: fix bug #11153 - svn_diff use toutf8 on paths.
 [2021-04-06 10:40 UTC] git@php.net
-Status: No Feedback +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 04:01:31 2024 UTC