6.0.0-beta1
9/14/25

[#1115] index array notice (error) if delete last mail in .trash folder
Summary index array notice (error) if delete last mail in .trash folder
Queue IMP
Queue Version RELENG_3
Type Bug
State Resolved
Priority 1. Low
Owners Horde Developers (at)
Requester elitescripts2000 (at) yahoo (dot) com
Created 01/08/2005 (7554 days ago)
Due
Updated 03/31/2005 (7472 days ago)
Assigned 01/09/2005 (7553 days ago)
Resolved 03/31/2005 (7472 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/31/2005 05:04:11 AM Michael Slusarz Comment #2
State ⇒ Resolved
Reply to this comment
Added a fix to silence undefined errors.  IMP needed a complete 
rewrite of its mailbox code in 4.0 to deal with these kinds of errors, 
so this is all we are going to do to 3.x code.
02/01/2005 06:44:22 AM Michael Slusarz Priority ⇒ 1. Low
 
01/09/2005 12:46:39 PM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
01/08/2005 02:24:19 PM elitescripts2000 (at) yahoo (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ index array notice (error) if delete last mail in .trash folder
Queue ⇒ IMP
Reply to this comment
In the file  horde/imp/message.php

  line 271

-----------

$array_index = $indices[$index];



If you are currently reading the LAST (only) email from .trash folder 
and DELETE the mail it will report an index error ( level NOTICE ) 
which then prevents PHP from setting headers to load on the Browser. ( 
cant set headers if output is written )



So what I did was do this to line 271:



$array_index = @$indices[$index];



Added the @ which supresses the notice error and so the headers can be 
used to just continue on with the use of IMP.



More fansy code rewrite is needed Im sure instead of using my simple fix.


Saved Queries