6.0.0-beta1
9/2/25

[#9976] only inbox folder is shown in portal block
Summary only inbox folder is shown in portal block
Queue IMP
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester michael (at) bigmichi1 (dot) de
Created 04/26/2011 (5243 days ago)
Due
Updated 04/28/2011 (5241 days ago)
Assigned 04/26/2011 (5243 days ago)
Resolved 04/28/2011 (5241 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/28/2011 07:00:54 PM michael (at) bigmichi1 (dot) de Comment #21 Reply to this comment
i tried the patch and the block is now working great when i disable 
the broken LIST-STATUS capability
04/28/2011 06:53:34 PM michael (at) bigmichi1 (dot) de Comment #20 Reply to this comment
i added in the function capability() a die() right before the return
statement in Client/Base.php and execution dies only when calling imp
directly and not when viewing the block or the sidemenu. this is also
the only one place where i found that capability_ignore param is
checked and used.
capability() is only called once per session - the capability list 
of the server is cached.  So this is working exactly as expected.
yes i saw that it it cached, but the cache is capability cache is 
filled when logging in, because the server greets with the capabilitys 
and these are not filtered. i logged out and logged in (this was and 
is my testcase) and there no filtering is done. and if i see it 
correctly if cache is filled when calling capability() the cache is 
returned, regardless how it was filled, and it is filled in onother 
place too, when yuo log in and server sends the capabilitys
04/28/2011 06:52:22 PM Michael Slusarz Comment #19
Assigned to Michael Slusarz
State ⇒ Resolved
Reply to this comment
when the initial login to a server is done and the response send the 
capability list (net extra requested by capability command) the 
filtering of the capability_ignore is not done the are set as the 
capabilitys.
Yes, this was the issue.
04/28/2011 06:52:12 PM Git Commit Comment #18 Reply to this comment
Changes have been made in Git for this ticket:

Filter CAPABILITY return if sent in response code (Bug #9976)

  2 files changed, 14 insertions(+), 11 deletions(-)
http://git.horde.org/horde-git/-/commit/b01d678e4c796ffc10dfbd0cd4a85dc895aac72c
04/28/2011 06:32:51 PM Michael Slusarz Comment #17 Reply to this comment
i added in the function capability() a die() right before the return 
statement in Client/Base.php and execution dies only when calling 
imp directly and not when viewing the block or the sidemenu. this is 
also the only one place where i found that capability_ignore param 
is checked and used.
capability() is only called once per session - the capability list of 
the server is cached.  So this is working exactly as expected.
04/28/2011 10:08:43 AM michael (at) bigmichi1 (dot) de Comment #16 Reply to this comment
when the initial login to a server is done and the response send the 
capability list (net extra requested by capability command) the 
filtering of the capability_ignore is not done the are set as the 
capabilitys.
04/28/2011 04:51:36 AM michael (at) bigmichi1 (dot) de Comment #15 Reply to this comment
$servers['advanced'] = array(
     'disabled' => false,
     'name' => 'Advanced IMAP Server',
     'hostspec' => 'localhost',
     'hordeauth' => 'full',
     'protocol' => 'imap',
     'port' => 143,
     'secure' => false,
     'maildomain' => 'xxx',
     'smtphost' => 'xxx',
     'smtpport' => 25,
     'capability_ignore' => array("LIST-STATUS"),
     'debug' => "/tmp/imaplog",
     'debug_raw' => true,
     'quota' => array(
         'driver' => 'imap',
         'params' => array(
             'hide_when_unlimited' => true,
             'unit' => 'MB'
         )
     ),
     'acl' => true,
     'cache' => false,
);

04/28/2011 04:50:18 AM michael (at) bigmichi1 (dot) de Comment #14 Reply to this comment
i added in the function capability() a die() right before the return 
statement in Client/Base.php and execution dies only when calling imp 
directly and not when viewing the block or the sidemenu. this is also 
the only one place where i found that capability_ignore param is 
checked and used. also i added a var_dump right before the return 
instead the die(), now when i open imp i got some more lines that say 
that LIST-STATUS is 1, i expected that it is 0 or no longer in the 
capability array. i can also see still the LIST-STATUS calls in the 
imaplog when i turn on debugging for my server in backends.local.php.
04/27/2011 10:34:22 PM Michael Slusarz Comment #13 Reply to this comment
i have no chance to upgrade dovecot so i tried to disable the 
LIST-STATUS in my backends.local.php but for the block the 
ignore_capability setting is not used only when i open imp i can see 
in Socket.php that it is not used any more
I do not understand what you are saying.  It does not matter whether 
you are viewing via a block or within imp itself - IMP is using the 
same internal object (with the same config) to access the IMAP server.
04/27/2011 08:21:47 PM michael (at) bigmichi1 (dot) de Comment #12 Reply to this comment
i have no chance to upgrade dovecot so i tried to disable the 
LIST-STATUS in my backends.local.php but for the block the 
ignore_capability setting is not used only when i open imp i can see 
in Socket.php that it is not used any more
04/27/2011 05:08:52 PM Michael Slusarz Comment #11
State ⇒ Not A Bug
Reply to this comment
can you please have a look at the imaplog file, first part is the 
block loading, second part is the navigation tree loading

for me it seems there is something bad with the LIST command and the 
subfoldernames
It appears that your version of Dovecot is broken and is not properly 
handling RFC 5819 LIST-STATUS requests.  I can verify version 2.0.12 
works correctly.

Since this is not a critical issue and doesn't break anything, I am 
not going to implement a workaround.
04/27/2011 06:41:39 AM michael (at) bigmichi1 (dot) de Comment #10
New Attachment: imaplog.txt Download
Reply to this comment
can you please have a look at the imaplog file, first part is the 
block loading, second part is the navigation tree loading

for me it seems there is something bad with the LIST command and the 
subfoldernames
04/27/2011 04:49:09 AM Michael Slusarz Comment #9
Priority ⇒ 1. Low
Reply to this comment
This doesn't help at all.  Nobody else can reproduce, and it doesn't 
look like it has anything to do with subfolders since I have all sorts 
of subfolders that are polled for mail and they show up fine.

You will have to debug yourself and figure out why those mailboxes are 
not being displayed in your system.  The call that generates the 
polled list is located on line 69 of imp/lib/Block/Summary.php:
         $poll = $injector->getInstance('IMP_Imap_Tree')->getPollList(true);
04/27/2011 04:30:00 AM michael (at) bigmichi1 (dot) de New Attachment: folders.jpg Download
 
04/27/2011 04:29:35 AM michael (at) bigmichi1 (dot) de Comment #8 Reply to this comment
attached another screenshot whith the menu / the block and the folder 
configuration, i hope this bring some light in the dark
04/27/2011 03:49:12 AM michael (at) bigmichi1 (dot) de Comment #7
New Attachment: config.jpg Download
Reply to this comment
configuration screenshot
04/27/2011 03:47:42 AM michael (at) bigmichi1 (dot) de Comment #6
New Attachment: portal_layout.txt Download
Reply to this comment
i have not set up these option in the block, i attach my portal layout 
and a screenshot from block configuration.
04/26/2011 11:24:32 PM Michael Slusarz Comment #5 Reply to this comment
the problem is only in the imp block "Folder summary", folder list 
is showing all right, menu is also all doing it right only the block 
doesn't show the folders in subfolder of INBOX. all is the 
traditional view
My guess is that you have the show_unread option set.
04/26/2011 06:06:09 PM michael (at) bigmichi1 (dot) de Comment #4 Reply to this comment
the problem is only in the imp block "Folder summary", folder list is 
showing all right, menu is also all doing it right only the block 
doesn't show the folders in subfolder of INBOX. all is the traditional 
view
04/26/2011 05:41:34 PM Jan Schneider Comment #3
State ⇒ Feedback
Reply to this comment
Can't reproduce. Are those folders polled in the sidebar menu and in 
the folder navigator of the traditional view? How about the dynamic 
view?
04/26/2011 05:21:59 PM michael (at) bigmichi1 (dot) de Comment #2 Reply to this comment
the check for new messages only work in INBOX and subfolders under 
INBOX, if i set the check up for a folder in a subfolder under INBOX 
it is not shown
04/26/2011 08:18:54 AM michael (at) bigmichi1 (dot) de Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ only inbox folder is shown in portal block
Queue ⇒ IMP
Milestone ⇒
Patch ⇒ No
State ⇒ Unconfirmed
Reply to this comment
i have set up a block with folder summary, but only te inbox is shown, 
but i have set up the check for new messages option for many more 
folders, the option to only show the folders with new messages makes 
no differences

Saved Queries