ID:               40513
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wil at codeciti dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         IMAP related
-Operating System: WinXP Pro
+Operating System: WinXP
 PHP Version:      5.2.1
 New Comment:

The error messages you see are coming from c-client library.
Unfortunately we can't fix and/or change it, since it's a third party
library.


Previous Comments:
------------------------------------------------------------------------

[2007-02-16 23:27:18] wil at codeciti dot com

Changed it to winxp pro

------------------------------------------------------------------------

[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

Reply via email to