Re: Help w/IMAP

From: Date: Thu, 22 Aug 2002 03:48:20 +0000
Subject: Re: Help w/IMAP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113585@lists.php.net to get a copy of this message
Sorry all, I can't type. The reference should be "imap_header()" and also, here's a snip of the code I'm using: >>SNIP $mbox = imap_open("{localhost:143}","user","pass") or die("can't connect: ".imap_last_error()); for($i=1; $i <= 5; $i++) { $msg_header = imap_header($mbox,$i); print "<tr>\n"; print "<td>" . $i . "</td>\n"; print "<td align=right>" . $msg_header->Size . "</td>\n"; print "<td>" . $msg_header->udate . "</td>\n"; print "<td>" . $msg_header->date . "</td>\n"; print "<td>" . $msg_header->Date . "</td>\n"; print "<td>" . $msg_header->MailDate . "</td>\n"; print "</tr>\n"; } << SNIP On Wed, 2002-08-21 at 20:42, David Christensen wrote: > I'm having a weird problem with the certain "date" fields using the > imap_head() object in PHP4. Sorry about the long lines, but I wanted to > get all the fields for imap_header() in so you could see what I mean. > > > Index Size udate date Date MailDate > 0 2365 1023729291 Fri, 5 Apr 2002 08:30:42 -0800 Fri, 5 Apr 2002 08:30:42 -0800 10-Jun-2002 > 10:14:51 -0700 > 1 1611 1023729291 14 Apr 2002 23:33:02 -0000 14 Apr 2002 23:33:02 -0000 10-Jun-2002 10:14:51 > -0700 > 2 2582 1023729291 Wed, 17 Apr 2002 11:55:26 -0500 Wed, 17 Apr 2002 11:55:26 -0500 10-Jun-2002 > 10:14:51 -0700 > 3 1745 1023729291 Thu, 18 Apr 2002 11:43:30 GMT Thu, 18 Apr 2002 11:43:30 GMT 10-Jun-2002 > 10:14:51 -0700 > 4 2322 1023729290 Wed, 1 May 2002 15:21:02 +1000 Wed, 1 May 2002 15:21:02 +1000 10-Jun-2002 > 10:14:50 -0700 > > > The "udate" are all the same but one and they don't match what the real date of > the email head says. They do however, match the "MailDate" field. Here's the > phpinfo() > > IMAP Supportenabled IMAP c-Client Version4.1 > Apache-AdvancedExtranetServer/1.3.23 > PHP Version 4.1.2 > > Any help is greatly appreciated! > > Dave Christensen > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#113585) next »