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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
42 - 9 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Apr 26 08:01:30 2024 UTC