|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-16 23:27 UTC] wil at codeciti dot com
[2007-02-16 23:39 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 21:00:01 2025 UTC |
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.