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 |
State ⇒ Resolved
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.
State ⇒ Assigned
State ⇒ Unconfirmed
Priority ⇒ 3. High
Type ⇒ Bug
Summary ⇒ index array notice (error) if delete last mail in .trash folder
Queue ⇒ IMP
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.