Bug 1692 - Feature Request: Ability to display the remote IMAP root folder's total size
Summary: Feature Request: Ability to display the remote IMAP root folder's total size
Status: NEW
Alias: None
Product: Claws Mail
Classification: Unclassified
Component: UI/Folder List (show other bugs)
Version: other
Hardware: PC Linux
: P3 enhancement
Assignee: users
URL:
: 3180 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-07 16:25 CEST by Patric
Modified: 2018-01-28 22:15 CET (History)
4 users (show)

See Also:


Attachments
backend: threaded query to quotaroot of libetpan (1.92 KB, patch)
2018-01-27 14:39 CET, Hanno Meyer-Thurow
no flags Details | Diff
frontend: query to quotaroot of folder (1.96 KB, patch)
2018-01-28 12:06 CET, Hanno Meyer-Thurow
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patric 2008-08-07 16:25:10 CEST
Using IMAP, for each remote folder, there is a total size displayed in claws below the message list.

There is no possibility to see the size of the complete IMAP mailbox. This would be very useful to see e.g. how much of the own quota is left on the server.

I would imagine it to be some kind of a progress bar in the status bar, where you can select the account, maybe right next to it, which shows megabytes used / megabytes total and maybe a percentage.
Comment 1 Dieter Plaetinck 2009-01-24 16:33:44 CET
+1 for this.

I experienced this the hard way, noticing my mailbox is full when it's too late.
A MB used/MB total view for an account very similar to what we have for folders would be nice.

Additionally, it could be nice to display the account name in red when your quota is used for 95% or more. (that way you don't need to actively check your usage your self all the time)
Comment 2 Thierry Hugue 2009-09-07 19:23:21 CEST
+1 This is a feature we have to use in our company, as there are disk quotas. 
Thanks in advance !
Comment 3 Christopher Head 2009-12-21 07:53:02 CET
I have submitted a patch to libEtPan! to implement the IMAP QUOTA extension. You can watch its progress at <https://sourceforge.net/tracker/?func=detail&aid=2918500&group_id=41064&atid=429698>. Hopefully this patch or something like it will be accepted, and then the Claws team can make a nice user interface to display this information.
Comment 4 Christopher Head 2010-01-04 10:52:48 CET
Issue 2918500 was accepted to libEtPan CVS, so hopefully when a new release of libEtPan shows up, Claws can make use of the new code.
Comment 5 Christopher Head 2010-12-19 22:11:50 CET
libEtPan 1.0 came out in April (haven't been watching it closely enough&#8230; only just noticed), and includes my patch. Claws can now use a release-quality version of libEtPan and get this feature.
Comment 6 Ricardo Mones 2015-04-29 09:40:42 CEST
*** Bug 3180 has been marked as a duplicate of this bug. ***
Comment 7 Marek Straka 2017-05-05 15:51:06 CEST
Is there a way how to display IMAP QUOTA in Claws Mail?
Something like https://addons.mozilla.org/en-US/thunderbird/addon/display-quota/?src=search
Comment 8 Hanno Meyer-Thurow 2018-01-27 14:39:01 CET
Created attachment 1839 [details]
backend: threaded query to quotaroot of libetpan

This patch adds the backend function imap_threaded_quotaroot to src/etpan/imap-thread.[ch].

I will work on the frontend function, which belongs to src/imap.[ch] on my next spare time, if noone else shows up first. If interested, check the capability function and be a good copy-cat.

Feel free to modify and/or extend to your liking.
Comment 9 Hanno Meyer-Thurow 2018-01-28 11:58:04 CET
Comment on attachment 1839 [details]
backend: threaded query to quotaroot of libetpan

+	if ((result.error == MAILIMAP_NO_ERROR) /* only testing no_error may leak? */
+		|| (result.error == MAILIMAP_NO_ERROR_AUTHENTICATED)
+		|| (result.error == MAILIMAP_NO_ERROR_NON_AUTHENTICATED))

Well, I guess I was overly eager. :-)
Simply testing for no_error seems enough.
Please remove no_error_* tests before applying.
Comment 10 Hanno Meyer-Thurow 2018-01-28 12:06:07 CET
Created attachment 1840 [details]
frontend: query to quotaroot of folder

This patch adds the frontend function imap_folder_quotaroot to src/imap.[ch].

This function should be queried from UI. I will not work on the UI. This is up to you guys to present the imap quota whereever you want it to appear.

Feel free to modify and/or extend to your liking. Like the function naming? Maybe imap_get_quotaroot is better?
Comment 11 Andrej Kacian 2018-01-28 12:59:34 CET
Looks nice so far. I'm thinking about how to present the size to the user. Maybe an additional page in folder properties, where one could see the size, and perhaps set some kind of warning threshold(s)?

We'll probably need to add new folder class function to get folder size, which can also be implemented by other folder classes like MH or RSSyl.
Comment 12 Hanno Meyer-Thurow 2018-01-28 22:15:04 CET
I would concur with the initial reporter of this bugreport. Present it in the status bar next to the currently selected account, and/or in the title bar actually.

That is where I would look first and second for account quota. :-)