Req #36000 [Fbk->NoF]: add date parameter to imap_append() function

From: Date: Sun, 29 Jan 2017 04:22:45 +0000
Subject: Req #36000 [Fbk->NoF]: add date parameter to imap_append() function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207018@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=36000&edit=1 ID: 36000 Updated by: php-bugs@lists.php.net Reported by: talex_id at o2 dot ru Summary: add date parameter to imap_append() function -Status: Feedback +Status: No Feedback Type: Feature/Change Request Package: *General Issues PHP Version: 5.1.2 Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Re-Opened". Thank you. Previous Comments: ------------------------------------------------------------------------ [2017-01-20 20:44:33] heiglandreas@php.net Is this still relevant? ------------------------------------------------------------------------ [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: me@example.com\r\n" . "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 https://bugs.php.net/bug.php?id=36000&edit=1

« previous php.bugs (#207018) next »