search for: quota_test_alloc

Displaying 8 results from an estimated 8 matches for "quota_test_alloc".

2014 Jun 26
1
Bug in quota_get_status
Hi, the configuration option lmtp_rcpt_check_quota = yes didn't work, so I traced down the problem: quota_get_status (quota_storage.c:89) calls quota_test_alloc (quota.c:1352) with size = 0 bytes, which leads always to a FALSE result in quota_is_over (quota.c:1305). I've fixed the function quota_is_over by considering ctx->bytes_over and ctx->count_over. See the included patch. Kind regards, Franz -- Franz Knipp, +43 664 3980169 qnipp GmbH,...
2013 Aug 01
1
[PATCH] quota-status: allow different action for messages that are too large (over maximum quota)
...= QUOTA_USER_CONTEXT(user); struct mail_namespace *ns; struct mailbox *box; struct quota_transaction_context *ctx; - bool too_large; int ret; if (quser == NULL) { @@ -64,7 +63,7 @@ box = mailbox_alloc(ns->list, "INBOX", 0); ctx = quota_transaction_begin(box); - ret = quota_test_alloc(ctx, I_MAX(1, mail_size), &too_large); + ret = quota_test_alloc(ctx, I_MAX(1, mail_size), too_large); quota_transaction_rollback(&ctx); mailbox_free(&box); @@ -82,6 +81,7 @@ struct mail_storage_service_user *service_user; struct mail_user *user; const char *value = NULL, *er...
2016 Mar 19
3
Crash when setting quota = count:User quota
...6e) [0x35f603404e] -> /usr/lib/dovecot/lib10_quota_plugin.so(quota_count+0xe7) [0x2b45f03b9417] -> /usr/lib/dovecot/lib10_quota_plugin.so [0x2b45f03b94fb] -> /usr/lib/dovecot/lib10_quota_plugin.so(quota_get_resource+0x77) [0x2b45f03b74b7] -> /usr/lib/dovecot/lib10_quota_plugin.so(quota_test_alloc+0x191) [0x2b45f03b78f1] -> /usr/lib/dovecot/lib10_quota_plugin.so [0x2b45f03bd5f5] -> /usr/lib/dovecot/libdovecot-storage.so.0(mailbox_save_begin+0x5e) [0x35f6032eae] -> /usr/lib/dovecot/libdovecot-storage.so.0(mail_storage_copy+0x66) [0x35f602ac26] -> /usr/lib/dovecot/libdovecot...
2008 Oct 16
2
imap crash (1.1.4)
...dir_sync_context *) 0x8ea6030 lost_files = false ret = 0 __PRETTY_FUNCTION__ = "maildir_storage_sync_init" #9 0x080a4d69 in mailbox_sync (box=0x8f21c20, flags=0, status_items=0, status_r=0x0) at mail-storage.c:516 ctx = (struct mailbox_sync_context *) 0x0 #10 0xb80d738a in trash_quota_test_alloc (ctx=0x8ee45d0, size=3527394, too_large_r=0xbfbf814b) at trash-plugin.c:52 ret = 0 i = 0 #11 0xb7f6b590 in quota_test_alloc (ctx=0x8ee45d0, size=3527394, too_large_r=0xbfbf814b) at quota.c:840 No locals. #12 0xb7f6b7f2 in quota_try_alloc (ctx=0x8ee45d0, mail=0x8ef77c8, too_large_r=...
2008 Oct 19
2
NFS quota: hard or soft
Yes. I could spend more time testing this myself or examining the code. It looks to me that, with fs quota, dovecot refuses to store a mail (e.g. when the client moves a mail from one IMAP folder to another) if the user is beyond his soft limit. Is this correct/intended? Knowing nothing about the IMAP Quota extension, I would have expected that being in grace was OK. At least, this is what
2018 Apr 24
1
smtp crashing with "out of memory" for ONE particular user
.../dovecot/plugins/lib10_quota_plugin.so(+0x8430) [0 x7f92f1f36430] -> /usr/lib64/dovecot/plugins/lib10_quota_plugin.so(+0x863d) [0x7f92f1f3663d] -> /usr/lib64/dovecot/plugins/lib10_quota_plugin.so(quota_get_resource+0x72) [0x7f92f1f344c2] -> /usr/lib64/do vecot/plugins/lib10_quota_plugin.so(quota_test_alloc+0x175) [0x7f92f1f34d45] -> /usr/lib64/dovecot/plugins/lib10_quota_plugin.so(+0xb0ba) [0x7f92f1f390ba] -> /usr/lib64/dovecot/libdovecot-storage.so.0(ma ilbox_save_begin+0x46) [0x7f92f3617f56] -> /usr/lib64/dovecot/libdovecot-storage.so.0(mail_storage_copy+0x7e) [0x7f92f361100e] -> /usr/l...
2012 Apr 27
1
2.1.5: Panic: file mailbox-list-fs.c: line 156 (fs_list_get_path): assertion failed: (mailbox_list_is_valid_pattern(_list, name))
...0x7f3109ccecdf] -> /usr/lib64/dovecot/lib10_quota_plugin.so(+0x93c8) +[0x7f3109ccf3c8] -> /usr/lib64/dovecot/lib10_quota_plugin.so(+0x9436) [0x7f3109ccf436] -> /usr/lib64/dovecot/lib10_quota_plugin.so(quota_get_resource+0x72) [0x7f3109cca792] -> +/usr/lib64/dovecot/lib10_quota_plugin.so(quota_test_alloc+0x1bd) [0x7f3109ccaaed] -> /usr/lib64/dovecot/lib10_quota_plugin.so(+0xa870) [0x7f3109cd0870] -> +/usr/lib64/dovecot/libdovecot-storage.so.0(mailbox_save_begin+0x4d) [0x7f310c544b9d] -> dovecot/imap [nu-imaptest00258 at example.com 127.0.0.1 APPEND]() [0x408ac4] -> dovecot/imap +[nu-ima...
2008 Oct 16
2
Backtrace of /usr/local/libexec/dovecot/imap
...dir_sync_context *) 0x8498770 lost_files = false ret = 0 __PRETTY_FUNCTION__ = "maildir_storage_sync_init" #9 0x080a4d69 in mailbox_sync (box=0x85092e0, flags=0, status_items=0, status_r=0x0) at mail-storage.c:516 ctx = (struct mailbox_sync_context *) 0x0 #10 0xb806a38a in trash_quota_test_alloc (ctx=0x84e13d0, size=2902771, too_large_r=0xbfe8cbeb) at trash-plugin.c:52 ret = 0 i = 0 #11 0xb7efe590 in quota_test_alloc (ctx=0x84e13d0, size=2902771, too_large_r=0xbfe8cbeb) at quota.c:840 No locals. #12 0xb7efe7f2 in quota_try_alloc (ctx=0x84e13d0, mail=0x84e7730, too_large_r=...