Ticket #1485626 (closed Bugs: fixed)

Opened 21 months ago

Last modified 21 months ago

quota support wrongly implemented since there can be multiple quota values

Reported by: arekm Owned by:
Priority: 5 Milestone: 0.2-stable
Component: PHP backend Version: 0.2-beta
Severity: normal Keywords:
Cc:

Description

IMAP allows for multiple quotas to be defined. Unfortunately roundcube isn't able to deal with these.

I think that at least tooltip should display all quotas including their descriptions. On the other hand there is a problem how to show these in form of graph - not sure how to solve this part.

Anyway dovecot allows multiple quota to be send to user. Here is example of such setup where dovecot shows two unix quotas - fist is UID based, second is GID based.

roundcube displays "Group quota" (I guess it simply displays last quota) which misleads users because in my setup theis user quotas are lower than group quota. On the other hand group quota could be exhacusted sooner than user quota.

Best solution is as I said - support for displaying multiple quotas.

* QUOTAROOT "INBOX" "User quota" "Group quota"
* QUOTA "User quota" (STORAGE 148 102400)
* QUOTA "Group quota" (STORAGE 1499188 4096000)
QUOT1 OK Getquotaroot completed.

Attachments

quota-temp-fix.patch (1.3 KB) - added by arekm 21 months ago.
temporary fix - choose lowest available space quota

Change History

Changed 21 months ago by arekm

roundcube displays "Group quota" -> I mean "roundcube displays ONLY "Group quota"".

Also more complete log:

 QUOT1 GETQUOTAROOT "INBOX"

* QUOTAROOT "INBOX" "User quota" "Group quota"
* QUOTA "User quota" (STORAGE 148 102400)
* QUOTA "Group quota" (STORAGE 1499188 4096000)
QUOT1 OK Getquotaroot completed.

Changed 21 months ago by arekm

Proposition on how to solve this:

- graphic bar will display calculated quota (let's call id "effective" one) - tooltip will display all separate quotas + our calculated one as summary

How do we calculate: - iterate over all found quotas and find out which one has smallest available (free) space - take "space in use" value from the same quota as had smallest free space - display that in form of graphic bar

So for example we have three quotas: 1) name: "User quota", used: 100MB, limit: 500MB 2) name: "Group quota", used: 170MB, limit: 1200GB 3) name: "Other quota", used: 800MB, limit: 1000MB

so we will find 3) as quota with smallest free space - 200MB, used 800MB, total 1000MB. Then we display bar with such 80% used value and on tooltip we display:

" Used space: User quota: 100MB/500MB Group quota: 170MB/1.2GB Other quota: 800MB/1GB


Effective quota: 800MB/1000MB "

The quota names can be arbitrary names (defined in dovecot configuration file for example), so we can't decide which one is the "important" based on the name.

What do you think?

Changed 21 months ago by alec

  • milestone changed from later to 0.2-stable

Changed 21 months ago by arekm

temporary fix - choose lowest available space quota

Changed 21 months ago by alec

  • status changed from new to closed
  • resolution set to fixed

Patch applied in r2172. I think we don't need to display the all quotas. Lowest should be enough.

Note: See TracTickets for help on using tickets.