6.0.0-beta1
7/12/25

[#4065] Suggestions for showing mailbox size in IMP (Patch)
Summary Suggestions for showing mailbox size in IMP (Patch)
Queue IMP
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester ekg2002 (at) columbia (dot) edu
Created 06/20/2006 (6962 days ago)
Due
Updated 07/20/2006 (6932 days ago)
Assigned 06/21/2006 (6961 days ago)
Resolved 07/20/2006 (6932 days ago)
Milestone
Patch No

History
07/20/2006 07:33:22 PM Chuck Hagenbuch State ⇒ Resolved
 
07/20/2006 07:21:51 PM ekg2002 (at) columbia (dot) edu Comment #6 Reply to this comment
works for me. thanks.
07/06/2006 04:26:19 AM Michael Slusarz Comment #5 Reply to this comment
Try what I just committed.
07/06/2006 03:46:11 AM Michael Slusarz Comment #4 Reply to this comment
I personally think this makes much more sense to display on a separate 
page - like the delete confirmation page.  Showing the size next to 
the folders in the mailbox list, with this information disappearing on 
the next folders page load, is not totally intuitive given the current 
file size.  I will see if I can come up with a solution.
07/03/2006 08:16:19 PM ekg2002 (at) columbia (dot) edu Comment #3 Reply to this comment
There is a section of the patch that pertains to folders.js and 
essentially does the same thing as the given JS.



At least on my IMP test rig, the size goes away on the next page 
refresh. This was intentional, as I think it's overkill to have a 
"Show Size" and a "Do Not Show Size" action. In other words, I don't 
think the action should be sticky.



All that said, I'm open to change it.
07/03/2006 07:06:26 PM josephmalone (at) higlum (dot) com Comment #2 Reply to this comment
Is there no functionality to NOT show the mailbox size, once you've 
selected "Show Size" on  a folder, or did I just merge the patch 
incorrectly?



In addition, I had to add "else 
if(action=='mbox_size'){submitAction(action);}" to 
imp/templates/javascript/folders.js at line 12.  Again, is this a 
problem that only I had, or is it something that should be put in the 
patch?


06/21/2006 07:50:52 AM Jan Schneider State ⇒ Assigned
Assigned to Michael Slusarz
 
06/20/2006 11:54:11 PM ekg2002 (at) columbia (dot) edu Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Suggestions for showing mailbox size in IMP (Patch)
Queue ⇒ IMP
New Attachment: mbox_size.diff Download
State ⇒ New
Reply to this comment
At the request of Matt Selsky, I've written a patch to IMP that gives 
a new action on the Folder tree to show the size of a mailbox. It is 
attached. I'd like to ask the community if they have any suggestions 
as to the implementation.



The main problem I see is that I'm not sure that IMAP/Tree::build() is 
the proper place to do the logic required. The problem I see is that I 
need to cache something in the $row array, only once. The patch works, 
but I'm not sure the implementation is the Horde (or the best) way.

Saved Queries