7ee626fd396f5549fb1fc6b0c320038638af9058 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add QUOTA_GET_RESULT_BACKGROUND_CALC enum value |
b14f93ea4f7e9b78e5adbabcc78bd2f63d2bcd36 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add QUOTA_ALLOC_RESULT_BACKGROUND_CALC enum value |
e78fe2531fd5cc3e3670a32fca6fbc238c960329 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Make quota_get_result errors <= QUOTA_GET_RESULT_INTERNAL_ERROR
Reorder the enum to make a shortcut for distinguishing errors. |
cf41318871bd42358df3420e50614f5310b08c77 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r to quota_get_resource() |
b62139aae0a0099d0ede35b164b2870479f9b027 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r to quota_settings->test_alloc() |
2e07e3182f355cf04a1461dd7f893d0ebc818764 |
|
03-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: quota_get_resource() - return enum to make the result more exact
This is mainly to differentiate between "resource name unknown" and
"unlimited quota".
This also fixes quota_clone plugin to update quota even when quota is
unlimited. It was supposed to have been skipped only when the resource
names weren't known.
The private quota.get_resource() API is unchanged. The backends were
already returning 0 only when the resource name was unknown. |
c3785e2a5618182c3d7fb59f4888134e7ac834cc |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Update comments in quota.h |
7076aac11069d8400785373f6317c3c7f07d0883 |
|
09-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Remove unused quota_free() |
afbdaecd328f6c912293d713975856cbb2d75452 |
|
23-May-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
common quota parameter parsing function implemented |
7f4fa37676bac8efcf4e2ac706172b1bad779a8a |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add quota_max_mail_size setting |
38ce5769db11e7f52562610ee6e6fc4f0ea7888f |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Introduce quota_alloc_result return type |
39dea5f2e78f6bfc3adc0655176f596ee211938f |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Differentiate between forced and non-forced quota recalc
The "count" backend doesn't need to recalc quota unless an explicit "doveadm
quota recalc" command is called. |
c16f2d0725a16559cdeedec7628ce616725000cb |
|
29-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Added quota_over_flag_lazy_check flag.
By default the quota_over_flag is checked immediately at startup. With this
option the check is done only at a time when the quota is anyway being read. |
cfeebb6dde3a3140972797c610ae78cc25c0b36c |
|
29-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Cleanup - split quota_over_flag to init & run parts
In preparation for the next change. |
666286d8ecc6c450b2232dcc628f79454215acfc |
|
05-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
quota: If overquota-flag in userdb is wrong, execute a configured script.
The idea here is that a quota_warning script could set user's overquota-flag
to e.g. LDAP where MTA could reject mails already at RCPT TO stage. The
quota_warning scripts however have race conditions that are difficult (or
impossible) to fix, so sometimes the overquota-flag could become wrong and
might require manual intervention to fix it. This feature is supposed to
solve the issue by comparing the overquota-flag's status to the actual
current quota usage and execute a script to fix up the situation if needed.
This script is of course racy as well, but there's always the next login
that can fix the situation. Also it's pretty rare that user's quota is
jumping just around the limit.
The overquota-flag name in userdb must be "quota_over_flag". There are two
settings to configure what to do:
plugin {
# If quota_over_flag=TRUE, the overquota-flag is enabled. Otherwise not.
quota_over_flag_value = TRUE
# Any non-empty value for quota_over_flag means user is over quota.
# Wildcards can be used in a generic way, e.g. "*yes" or "*TRUE*"
#quota_over_flag_value = *
# Service script to execute if overquota-flag is wrong. Configured the
# same as quota_warning scripts. The current quota_over_flag's value is
# appended as the last parameter.
quota_over_script = quota-warning mismatch %u
} |
3f7583189249a28892cd5bd69e15681c7a8a619b |
|
01-Dec-2014 |
Timo Sirainen <tss@iki.fi> |
quota: Added "hidden" option to hide the quota root from IMAP GETQUOTAROOT command. |
4316355ca8b7698516272520a972291378698140 |
|
21-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
quota: Avoid calling i_fatal() on initialization errors, plus some other fixes. |
0df9428baed48afaff90b4d4f03792d2fd756a43 |
|
02-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed plugins to work with config rewrite.
--HG--
branch : HEAD |
3721e21a9f63dc29ec1628749298ade0b3d0daae |
|
18-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
IMAP quota should have returned "MESSAGE", not "MESSAGES" quota.
--HG--
branch : HEAD |
d23c747de9d33966483fbdd41f08ad7766da7c5c |
|
12-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added struct mail_user and fixed the code to support multiple users per process.
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
503e5ef896c7b4a51cf73efb0d132860a8c747e6 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added quota warning commands. Based lightly on a patch by Nicolas Boullis.
--HG--
branch : HEAD |
bd7b1a9000b12349e2a99bb43b3ce8b96a18e92b |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Use sync_notify() callback to count expunges. This makes the calculation
much more reliable than the previous method. Also did some API cleanups.
--HG--
branch : HEAD |
e392fcb39a06609af20a9e79017683f194de3dde |
|
22-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Bytes and kilobytes were somewhat mixed up everywhere. Also fixes a
compiling problem.
--HG--
branch : HEAD |
3fe44a0df5a0bdd80c495f79cbf0e384441d6fcc |
|
30-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
Changes to make trash plugin working again.
--HG--
branch : HEAD |
3ccfcf0856958cb9208a9fc51c3bdf13c58ad52a |
|
30-Jul-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added support for multiple quota roots, rules and storages. The configuration
has changed, userdb now needs to return "quota_rule" settings instead. Much
of the code changes were done by Tianyan Liu.
--HG--
branch : HEAD |
f6f94063c4c3080280b87ab47ac2bb756ba002f9 |
|
11-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
If size of the mail was known before saving started, we allocated
the quota twice for it.
--HG--
branch : HEAD |
82995cc154a929f37aa486a72a6485e9f8d34a30 |
|
01-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Quota API redesign. Still not perfect, but better than before. Quota backends no longer need to be told where the mails exist. fs backend doesn't work correctly with multiple partitions (if you've multiple namespaces).
--HG--
branch : HEAD |
4981827cb5e32cf767b7b0e3070137e6b36f42af |
|
22-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
mailbox_save_init() supports now returning failure. Quota plugin now checks
if mail is too large in mailbox_save_init() hook. APPEND fails before giving
"+ OK" reply if mailbox_save_init() failed.
Also fixed some APPEND failure cases where the next command was eaten away.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
1795e934ebcd58175d3b5bbdd811b13c7889efa3 |
|
10-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added beginnings of plugin infrastructure. TODO: These could be optionally
compiled into binaries with some configure options.
Added quota plugin and a new trash plugin. Not very well tested.
--HG--
branch : HEAD |