[ postfixadmin-Patches-2060309 ] Patch for used quota viewing
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2008-08-19 21:06:37
|
Patches item #2060309, was opened at 2008-08-19 21:19 Message generated for change (Comment added) made by shario You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2060309&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: shario (shario) Assigned to: Nobody/Anonymous (nobody) Summary: Patch for used quota viewing Initial Comment: Here is a patch to safely view used quota for virtual mailboxes, if they are stored in a dictionary db table as described in: http://wiki.dovecot.org/Quota/Dict Please note that the instructions do not mention that you also need to change your user_query to read the proxy dict plugin name such as: CONCAT('dict:storage=',floor(quota/1000),' proxy::dictquota') as quota Adds boolean $CONF['used_quotas'] Also adds rounding to divide_quota() display function. This resolves the feature request http://sourceforge.net/tracker/index.php?func=detail&aid=1724759&group_id=191583&atid=937967 Could be merged to trunk? ---------------------------------------------------------------------- >Comment By: shario (shario) Date: 2008-08-20 00:06 Message: Logged In: YES user_id=1660028 Originator: YES Dictionary backend (stores key=value pairs) can be used to store the used quota data instead of Maildir++ storage (maildirsize files), and Dovecot (and it's LDA) updates used quota. Unfortunately it seems that at least Courier and Cyrus do not support dict storage method for quota. It seems that there is actually very little on quotas in DOCUMENTS. I'll take a look and submit a patch tomorrow latest. ---------------------------------------------------------------------- Comment By: GingerDog (gingerdog) Date: 2008-08-19 23:09 Message: Logged In: YES user_id=1761957 Originator: NO Hi, Thank you for taking time to fix this; the patch itself looks fine, and I'll merge it in a few days. If possible, it would help me if someone else could test this and confirm it works as expected (I don't use Dovecot so can't confirm it). Also, could you also provide a patch for the documentation that needs changing - I'm not sure how the quota figures get updated in the database... is there some sort of dovecot call back? Is this what the dict:storage stuff is for? I've no real idea of how Dovecot works, so the description you've given in the patch doesn't help me! thanks David ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2060309&group_id=191583 |