6.0.0-beta1
7/17/25

[#3026] notice when deleting last messages from folder
Summary notice when deleting last messages from folder
Queue IMP
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester vilius (at) lnk (dot) lt
Created 11/23/2005 (7176 days ago)
Due
Updated 12/10/2005 (7159 days ago)
Assigned 12/06/2005 (7163 days ago)
Resolved 12/10/2005 (7159 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/10/2005 01:50:34 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #17 Reply to this comment
Fixed.  The key information, which nobody provided, is that this was
only broken when sorting a mailbox by arrival date.
I thought I mentioned it in a bugreport which was stated bogus:

http://bugs.horde.org/ticket/?id=3084 :-)

But anyway, thanks!


12/10/2005 07:38:39 AM Michael Slusarz Comment #16
State ⇒ Resolved
Reply to this comment
Fixed.  The key information, which nobody provided, is that this was 
only broken when sorting a mailbox by arrival date.
12/09/2005 09:40:44 PM amith (at) xalan (dot) com Comment #15 Reply to this comment
I just updated from CVS about an hour ago and experienced the exact
same problem.  Please let me know what debugging or output is needed
to further look into the problem
Forgot to mention



FC 3

httpd-2.0.53-3.3 (standard FC3 apache rpm)

php 4.4.1 (from source)

imap-2004c (from source)


12/09/2005 09:33:49 PM amith (at) xalan (dot) com Comment #14 Reply to this comment
I just updated from CVS about an hour ago and experienced the exact 
same problem.  Please let me know what debugging or output is needed 
to further look into the problem
12/09/2005 02:37:47 PM rick (at) emery (dot) homelinux (dot) net Comment #13 Reply to this comment
Michael thinks that, we could have a problem with our IMAP-server and
or c-client.
can you tell us what softwart you are using?
Red Hat Linux 7.3

apache-1.3.27-8.legacy (rpm)

uw-imap 2004g (from source; compiled into PHP)

PHP 4.4.1 (from source)



I have imapproxy 1.2 installed and running, but IMP is not using it 
(running on a different port).
12/09/2005 02:13:11 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #12 Reply to this comment
In the horde configuration, I have the cache pointed to
/var/cache/horde. I've deleted all of the files from the directory
and logged back in. Was that the cache you were talking about? In
IMP's configuration, I cache the folder list but not the message
contents.

I still get the original errors, with nothing coming from line 210 in
MailboxCache.php.
same here....

Michael thinks that, we could have a problem with our IMAP-server and 
or c-client.

can you tell us what softwart you are using?



I'm running the following configuration:

- cyrus-imapd-2.2.12

- up-imapproxy-1.2.4 (I get the same errors also without imapproxy)

- apache-1.3.34

- php-4.4.1

- c-client from imap-2004g


12/09/2005 12:56:42 PM rick (at) emery (dot) homelinux (dot) net Comment #11 Reply to this comment
Sorry...I mistakenly thought that commenting on the bug would add me 
to the watch list, so wasn't getting any notifications that action was 
being taken.



In the horde configuration, I have the cache pointed to 
/var/cache/horde. I've deleted all of the files from the directory and 
logged back in. Was that the cache you were talking about? In IMP's 
configuration, I cache the folder list but not the message contents.



  I still get the original errors, with nothing coming from line 210 
in MailboxCache.php.
12/08/2005 05:21:04 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #10 Reply to this comment
I meant any error messages from line 210.  It seems like there is
none.  And you are absolutely sure you have deleted all cache files?
THe fact you aren't seeing any error messages on line 210 when
removing the @ indicates there is a problem with your cache files,
not the code.
I deleted all cache files before logging in into IMP -> same result.

I noticed, that the error occurs only if I'm deleting the last message 
from within the message view it self. If I delete the message from the 
mailbox view, everything is ok.


12/08/2005 05:10:08 AM Michael Slusarz Comment #9 Reply to this comment
I meant any error messages from line 210.  It seems like there is 
none.  And you are absolutely sure you have deleted all cache files?   
THe fact you aren't seeing any error messages on line 210 when 
removing the @ indicates there is a problem with your cache files, not 
the code.
12/07/2005 05:29:34 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #8 Reply to this comment

[Show Quoted Text - 9 lines]
[Wed Dec  7 18:28:21 2005] [error] PHP Notice:  Undefined property:   
deleted in /usr/local/apache/htdocs/cvs_dev/horde/imp/lib/Mailbox.php 
on line 252

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
691

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
781

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
seen in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
794

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
answered in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on 
line 801

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
draft in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on 
line 806

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
flagged in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on 
line 819

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
deleted in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on 
line 824

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
912

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
920

[Wed Dec  7 18:28:22 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/cvs_dev/horde/imp/mailbox.php on line 
933


12/06/2005 08:42:57 PM Michael Slusarz Comment #7 Reply to this comment
Can you change line 210 in lib/IMAP/MailboxCache.php from:

$overview = @imap_fetch_overview($GLOBALS['imp']['stream'], 
implode(',', $get_ids), FT_UID);



to:

$overview = imap_fetch_overview($GLOBALS['imp']['stream'], 
implode(',', $get_ids), FT_UID);



and post any error messages.
12/06/2005 03:22:20 PM adrieder (at) sbox (dot) tugraz (dot) at Comment #6 Reply to this comment
Anyone that can still reproduce this?
Yes I can. CVS-HEAD 12/06/2005

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
deleted in /usr/local/apache/htdocs/horde/imp/lib/Mailbox.php on line 
252

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 691

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 781

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
seen in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 794

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
answered in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 801

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
draft in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 806

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
flagged in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 819

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
deleted in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 824

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 912

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 920

[Tue Dec  6 16:21:32 2005] [error] PHP Notice:  Undefined property:   
uid in /usr/local/apache/htdocs/horde/imp/mailbox.php on line 933


12/06/2005 03:39:37 AM Michael Slusarz Comment #5
State ⇒ Feedback
Reply to this comment
Anyone that can still reproduce this?
11/24/2005 09:25:02 PM vilius (at) lnk (dot) lt Comment #4 Reply to this comment
I'm not seeing this in today CVS too.



What about you Rick?
11/24/2005 06:49:09 AM Michael Slusarz Comment #3
State ⇒ Assigned
Reply to this comment
i can not reproduce this (with caching turned on or off).
11/23/2005 06:19:58 PM rick (at) emery (dot) homelinux (dot) net Comment #2 Reply to this comment
The very first message I get before those noted is:



Notice: Undefined property: deleted in 
path-to-horde/imp/lib/Mailbox.php on line 252
11/23/2005 04:34:52 PM vilius (at) lnk (dot) lt Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ notice when deleting last messages from folder
Queue ⇒ IMP
State ⇒ Unconfirmed
Reply to this comment
Deleting last message from mailbox folder results in bunch of notices:



Notice: Undefined property: uid in path-to-horde/imp/mailbox.php on line 485

Notice: Undefined property: uid in path-to-horde/imp/mailbox.php on line 575

Notice: Undefined property: seen in path-to-horde/imp/mailbox.php on line 588

Notice: Undefined property: answered in path-to-horde/imp/mailbox.php

on line 595

Notice: Undefined property: draft in path-to-horde/imp/mailbox.php on line 600

...

Saved Queries