|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-07-20 15:47 UTC] hholzgra at cvs dot php dot net
[2000-07-21 17:50 UTC] hholzgra at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 15:00:01 2025 UTC |
imap_headers() should return array of headers of e-mail messages. Each header should include date field. This is code from ext/imap/php_imap.c imap_headers function: mail_date(tmp+11, cache); tmp[18] = ' '; tmp[19] = '\0'; mail_fetchfrom(tmp+19, ... So, only 7 chars are reserved for date. But this is description of mail_date() from imapd-4.5 : "This function accepts a message cache element that contains date information, and writes an IMAP-4 date string, that is, one in form: dd-mmm-yyyy hh:mm:ss +zzzz " So, date field in header string looks like dd-mmm- ( 20-Jul- , for example ) Possible solution: mail_date( tmp+11, cache ); len = strlen( tmp ); tmp[len] = ' ' ; tmp[len+1] = 0; mail_fetchfrom(tmp+len+1 ...