php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40513 Notice: Unknown: List index out of bounds (0) (errflg=2) in Unknown on line 0
Submitted: 2007-02-16 20:32 UTC Modified: 2007-02-16 23:39 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: wil at codeciti dot com Assigned:
Status: Not a bug Package: IMAP related
PHP Version: 5.2.1 OS: WinXP
Private report: No CVE-ID: None
 [2007-02-16 20:32 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-16 23:27 UTC] wil at codeciti dot com
Changed it to winxp pro
 [2007-02-16 23:39 UTC] tony2001@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 16:01:27 2024 UTC