search for: quota_name_messages

Displaying 5 results from an estimated 5 matches for "quota_name_messages".

2006 Jun 20
1
Group-based filesystem quota
Hello. After using Dovecot for over a year, I have just started experimenting with the filesystem quotas, and I have a suggestion for improvement. On my mail server, I use group-based quotas, and would like to have Dovecot be able to report these quotas. It should be simple to implement, requiring only changes to the quota-fs.c file of the quota plugin. Simply changing USRQUOTA to
2006 Aug 21
2
Filesystem Quota Enhancement Patch
...ot *root __attr_unused__) { - static const char *resources[] = { QUOTA_NAME_STORAGE, NULL }; + const char *mail; + mail = getenv("MAIL"); + static const char *resources[] = { + QUOTA_NAME_STORAGE, + NULL, + NULL + }; + if (strstr(mail, "maildir") != NULL) { + resources[1] = QUOTA_NAME_MESSAGES; + } return resources; } @@ -192,82 +203,108 @@ struct quotctl ctl; #endif + int value_r_t, limit_r_t, value_r_c=0, limit_r_c=0; + char args[] = {USRQUOTA, GRPQUOTA}; + int what[] = {root->uid, root->gid}; + short i; + int quota_error=0; + *value_r = 0; *limit_r = 0; - if (str...
2008 Nov 18
1
MESSAGE Quota not RFC2087 compliant
...e response "MESSAGES" differs from the specified "MESSAGE" which leads to parsing issues on RFC compliant IMAP client implementations. Using *:message=1337 throws a configuration error on Dovecot startup. dovecot-1.1.6/src/plugins/quota/quota.h /* Number of messages. */ #define QUOTA_NAME_MESSAGES "MESSAGES" Greetings, ?Martin -------------- next part -------------- A non-text attachment was scrubbed... Name: Braun,Martin.vcf Type: text/x-vcard Size: 675 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20081118/5d6b07bf/attachment-0002.vcf>
2006 Apr 14
0
Quota again
...:02.000000000 +0200 @@ -597,7 +597,7 @@ if (strcmp(name, QUOTA_NAME_STORAGE) == 0) { *limit_r = root->message_bytes_limit / 1024; - *value_r = root->total_bytes / 1024; + *value_r = root->total_bytes / 10; } else if (strcmp(name, QUOTA_NAME_MESSAGES) == 0) { *limit_r = root->message_count_limit; *value_r = root->total_count;
2006 Feb 03
0
rquotad (NFS) quota plugin
...t really care about up-to-date + * numbers, just whether quotas are active */ + root->resources = p_new(root->pool, const char *, 3); + if (root->kbyte_limit != 0) { + root->resources[i++] = QUOTA_NAME_STORAGE; + } + if (root->inode_limit != 0) { + root->resources[i++] = QUOTA_NAME_MESSAGES; + } + root->resources[i] = NULL; + + return root->resources; + } + + static int + rquotad_quota_root_create(struct quota *_quota, + const char *name __attr_unused__, + struct quota_root **root_r __attr_unused__) + { + struct rquotad_quota *quota = (struct rquotad_quota *)_quo...