ID: 36000 User updated by: talex_id at o2 dot ru -Summary: add date parameter in in imap_append() function Reported By: talex_id at o2 dot ru Status: Open Bug Type: Feature/Change Request PHP Version: 5.1.2 New Comment:
removed double 'in' in summary description. sorry ;) Previous Comments: ------------------------------------------------------------------------ [2006-01-13 17:33:20] talex_id at o2 dot ru Description: ------------ cclient's imap_append() function allows to set two optional arguments 'flags' and 'date'. 'flags' is a set of imap flags to be setted to created message and 'date' is a date of message creation. now php's imap_append() function allows to set only flags (named as options). but why? i created little patch that corrects this omission. see patch at http://talex-id.o2.ru/devel/php/patches/php-imap/imap_append_date.patch and little description at http://talex-id.o2.ru/devel/php/patches/php-imap/ Reproduce code: --------------- <?php $stream = imap_open("{imap.server.host:143}", "username", "password"); imap_append($stream, "{" . $host . "}INBOX", "From: [EMAIL PROTECTED]" . "Subject: test\r\n" . "\r\n" . "this is a test message, please ignore\r\n", '\Deleted', '01-Jan-2006 13:13:13 +0300' ); ?> Expected result: ---------------- this will create message received at 01-Jan-2006 13:13:13 and marked as deleted in INBOX folder Actual result: -------------- it's impossible to set the date of creation (receiving) of message because imap_append() doesn't allow it ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36000&edit=1
