6.0.0-git
2019-03-21

[#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 2005-01-08 (5185 days ago)
Due
Updated 2005-03-31 (5103 days ago)
Assigned 2005-01-09 (5184 days ago)
Resolved 2005-03-31 (5103 days ago)
Milestone
Patch No

History
2005-03-31 05:04:11 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.
2005-02-01 06:44:22 Michael Slusarz Priority ⇒ 1. Low
 
2005-01-09 12:46:39 Jan Schneider State ⇒ Assigned
Assigned to Horde DevelopersHorde Developers
 
2005-01-08 14:24:19 elitescripts2000 (at) yahoo (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 3. High
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