note 95953 added to function.imap-headerinfo

From: Date: Sun, 31 Jan 2010 10:32:59 +0000
Subject: note 95953 added to function.imap-headerinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-165519@lists.php.net to get a copy of this message
When i try to access the same mailbox through pop3 and through imap i get different update infomations. 1. Using imap header->udate is not the same as strtotime($header->date) <?php $mBox = imap_open("{host:143/imap/novalidate-cert}INBOX}", $username, $password); // open as imap $header = imap_header($mBox, 1); // get first mails header echo $header->udate; echo strtotime($header->date); ?> 1. Using pop3 header->udate is the same as strtotime($header->date) <?php $mBox = imap_open("{host:110/pop3/novalidate-cert}INBOX}", $username, $password); // open as pop3 $header = imap_header($mBox, 1); // get first mails header echo $header->udate; echo strtotime($header->date); ?> I do not know why this is so, but for this reason, i use strtotime($header->date) together with other values to create my own message-UID because this seems to work independent from the protocol. ---- Server IP: 85.214.154.209 Probable Submitter: 217.95.135.158 ---- Manual Page -- http://www.php.net/manual/en/function.imap-headerinfo.php Edit -- https://master.php.net/note/edit/95953 Del: integrated -- https://master.php.net/note/delete/95953/integrated Del: useless -- https://master.php.net/note/delete/95953/useless Del: bad code -- https://master.php.net/note/delete/95953/bad+code Del: spam -- https://master.php.net/note/delete/95953/spam Del: non-english -- https://master.php.net/note/delete/95953/non-english Del: in docs -- https://master.php.net/note/delete/95953/in+docs Del: other reasons-- https://master.php.net/note/delete/95953 Reject -- https://master.php.net/note/reject/95953 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165519) next »