ID: 40513
User updated by: wil at codeciti dot com
Reported By: wil at codeciti dot com
Status: Open
Bug Type: IMAP related
-Operating System: WinXP
+Operating System: WinXP Pro
PHP Version: 5.2.1
New Comment:
Changed it to winxp pro
Previous Comments:
------------------------------------------------------------------------
[2007-02-16 20:32:13] wil at codeciti dot com
Description:
------------
When I try to move mail from one directory to another I get that notice
and on the mail server log it tells me that the command is invalid and
ignores it.
Notice: Notice: Unknown: List index out of bounds (0) (errflg=2) in
Unknown on line 0
Reproduce code:
---------------
<?php
$Prefix = 'codeciti.com';
$Pass = 'xxxxxxxx'; <-- blanked for security
$Email = '[EMAIL PROTECTED]';
$Mailserver = '{192.168.1.121:143}';
$Mailbox = 'Inbox';
$Link=imap_open($Mailserver.$Mailbox,$Email,$Pass) or die("can't
connect: " . imap_last_error());
$arr = array(0 => '1', 1 => '2', 2 => '3');
$messageset = implode(',',$arr);
imap_mail_move($Link, $messageset, 'Trash');
imap_close($Link);
?>
Expected result:
----------------
Should move the mail from the current folder to the trash.
Actual result:
--------------
Nothing gets moved it just echos that notice statement.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40513&edit=1