#36000 [NEW]: add date parameter in in imap_append() function
| From: | talex_id at o2 dot ru | Date: | Fri, 13 Jan 2006 16:33:22 +0000 |
| Subject: | #36000 [NEW]: add date parameter in in imap_append() function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-91854@lists.php.net to get a copy of this message | ||
From: talex_id at o2 dot ru
Operating system:
PHP version: 5.1.2
PHP Bug Type: Feature/Change Request
Bug description: add date parameter in in imap_append() function
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 bug report at http://bugs.php.net/?id=36000&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36000&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36000&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36000&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=36000&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=36000&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=36000&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=36000&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=36000&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=36000&r=support
Expected behavior: http://bugs.php.net/fix.php?id=36000&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=36000&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=36000&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=36000&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=36000&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=36000&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=36000&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=36000&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=36000&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=36000&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=36000&r=mysqlcfg