php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #36000 add date parameter to imap_append() function
Submitted: 2006-01-13 17:33 UTC Modified: 2017-01-29 04:22 UTC
Votes:8
Avg. Score:4.8 ± 0.4
Reproduced:7 of 7 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: talex_id at o2 dot ru Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.1.2 OS:
Private report: No CVE-ID: None
 [2006-01-13 17:33 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-20 20:44 UTC] heiglandreas@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues
 [2017-01-20 20:44 UTC] heiglandreas@php.net
Is this still relevant?
 [2017-01-29 04:22 UTC] php-bugs at lists dot php dot net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC