#40513 [Opn->Bgs]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0

From: Date: Fri, 16 Feb 2007 23:39:36 +0000
Subject: #40513 [Opn->Bgs]: Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-109049@lists.php.net to get a copy of this message
ID: 40513 Updated by: tony2001@php.net 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 = 'wil@codeciti.com'; $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

« previous php.bugs (#109049) next »