Req #36000 [Opn->Fbk]: add date parameter to imap_append() function
| From: | heiglandreas@php.net | Date: | Fri, 20 Jan 2017 20:44:35 +0000 |
| Subject: | Req #36000 [Opn->Fbk]: add date parameter to imap_append() function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-206792@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: heiglandreas@php.net
Reported by: talex_id at o2 dot ru
Summary: add date parameter to imap_append() function
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
PHP Version: 5.1.2
Block user comment: N
Private report: N
New Comment:
Is this still relevant?
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: 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