Bug #10850 Updated: imap_uid() does not produce an Unique ID Number from POP Servers
| From: | mattias dot segerdahl at commentor dot se | Date: | Tue, 15 May 2001 06:22:48 +0000 |
| Subject: | Bug #10850 Updated: imap_uid() does not produce an Unique ID Number from POP Servers | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55296@lists.php.net to get a copy of this message | ||
ID: 10850
User Update by: mattias.segerdahl@commentor.se
Old-Status: Open
Status: Closed
Bug Type: IMAP related
Operating system: linux
PHP Version: 4.0.5
Description: imap_uid() does not produce an Unique ID Number from POP Servers
Previous Comments:
---------------------------------------------------------------------------
[2001-05-14 13:19:37] vlad@php.net
uhhh... no, it shouldn't. Those are not UID's.
---------------------------------------------------------------------------
[2001-05-14 09:38:37] mattias.segerdahl@commentor.se
The following code should echo out the Unique ID's generated by UIDL on the IMAP/POP Server,
but echo's out a sequencial number starting with 1 instead...
It should probably produce ID's like, 3afffb5300000001, 3afffb5300000002, etc. etc.
$mbox = imap_open ("{your.imap.host:143}", "username", "password");
$headers = imap_headers ($mbox);
if ($headers == true) {
while (list ($key,$val) = each ($headers)) {
echo imap_uid($mbox, $key);
}
} else {
echo "No messages in inbox";
}
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10850