6.0.0-git
2019-03-23

[#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 2005-11-23 (4868 days ago)
Due
Updated 2005-12-10 (4851 days ago)
Assigned 2005-12-06 (4855 days ago)
Resolved 2005-12-10 (4851 days ago)
Milestone
Patch No

History
2005-12-10 13:50:34 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!


2005-12-10 07:38:39 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.
2005-12-09 21:40:44 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)


2005-12-09 21:33:49 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
2005-12-09 14:37:47 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).
2005-12-09 14:13:11 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


2005-12-09 12:56:42 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.
2005-12-08 17:21:04 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.


2005-12-08 05:10:08 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.
2005-12-07 17:29:34 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


2005-12-06 20:42:57 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.
2005-12-06 15:22:20 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


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



What about you Rick?
2005-11-24 06:49:09 Michael Slusarz Comment #3
State ⇒ Assigned
Reply to this comment
i can not reproduce this (with caching turned on or off).
2005-11-23 18:19:58 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
2005-11-23 16:34:52 vilius (at) lnk (dot) lt Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ notice when deleting last messages from folder
Queue ⇒ IMP
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