Summary: | Feature Request: Ability to display the remote IMAP root folder's total size | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Claws Mail (GTK 2) | Reporter: | Patric <bzk0711> | ||||||
Component: | UI/Folder List | Assignee: | users | ||||||
Status: | NEW --- | ||||||||
Severity: | enhancement | CC: | h.mth, marek, nw9165-3201, t_hugue | ||||||
Priority: | P3 | ||||||||
Version: | other | ||||||||
Hardware: | PC | ||||||||
OS: | Linux | ||||||||
Attachments: |
|
Description
Patric
2008-08-07 16:25:10 UTC
+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) +1 This is a feature we have to use in our company, as there are disk quotas. Thanks in advance ! 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. 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. libEtPan 1.0 came out in April (haven't been watching it closely enough… only just noticed), and includes my patch. Claws can now use a release-quality version of libEtPan and get this feature. *** Bug 3180 has been marked as a duplicate of this bug. *** 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 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 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.
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?
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. 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. :-) |