bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
12d7f667b636405ae54dcc4cb3031f4ba52aff04 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Prefix quota errors with backend name in quota_get_resource()
Remove quota backend name error_r prefixing from get_resource() vfuncs. |
4f52de745cf26ee9dcbde7ca4500d442116226cf |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_result_r parameter to quota_count() |
1379bb74c2855aaf3415fdfe965164a44ac3c001 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Return quota_get_result from quota_backend_vfuncs.get_resource()
Add a QUOTA_UNKNOWN_RESOURCE_ERROR_STRING for returning error_r with
QUOTA_GET_RESULT_UNKNOWN_RESOURCE.
Forbid backends from returning QUOTA_GET_RESULT_UNLIMITED in
quota_get_resource() with an i_panic(). |
995c0a88e9a32e0ec1460567ce5f2ce6e7ba1f13 |
|
08-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-dict: Cleanup dict_quota_get_resource() whitespace |
2b4e421b76d997e2ad18c74200d9d8521bed165c |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-dict: Improve error_r strings |
d2cbbecf76de3f4eb945895fab5760ed0a28281c |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-count: Improve error_r strings |
7b3b617e946d5b32078baa821f5fc05f775e1dfe |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r to update() of quota_backend_vfuncs |
a525be16a69367f43765d20c873b5f168c5b7ea3 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r to get_resource() of quota_backend_vfuncs |
5729882717902b5f3f5d62f71ddf2894b67fc7a6 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-dict: Remove T_BEGIN..T_END blocks
This is to enable using t_strdup_printf() with error_r later on. |
5997118fa7aee2535edac28092261ca085a958ae |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Initialize quota_backends with designated initializers |
1bb7fb04a0583f0d5160706f24b2df08d31ada46 |
|
25-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota dict: Log when quota is recalculated if mail_debug=yes |
fde14422caabc3c4ac4a6c5e3e5cf176cedd90a6 |
|
21-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Fix failing again if quota setting has invalid parameters
This was broken by the recent quota parameter parsing changes. |
1f166c4a7498b4b6bdf6f072edeaebb388cc53eb |
|
23-May-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
Dict backend parameters reading changed to use common parsing function |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
efe78d3ba24fc866af1c79b9223dc0809ba26cad |
|
24-Dec-2016 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
global: Replaced all instances of memset(p, 0, sizeof(*p)) with the new i_zero() macro.
Used the following script:
C_FILES=`git ls-files *.c`
H_FILES=`git ls-files *.h`
for F in "$C_FILES $H_FILES"; do
echo "$F"
perl -p -i -e 's/safe_memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero_safe(&$1)/g' $F
perl -p -i -e 's/safe_memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero_safe($1)/g' $F
perl -p -i -e 's/memset\(&\(?([^,]*)\)?,\s*0,\s*sizeof\(\g1\)\)/i_zero(&$1)/g' $F
perl -p -i -e 's/memset\(([^,]*),\s*0,\s*sizeof\(\*\g1\)\)/i_zero($1)/g' $F
done |
3764f786a6d13b23c49c9990b816be1e23a1adcc |
|
19-Aug-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
quota-dict: Make sure all transactions complete |
8f7e81b327b8b5bf34262f6755df6d4481760d23 |
|
17-Aug-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota, last-login: Disable "slow dict commit" warnings
Anything (especially long lock waits) can happen between the commit and when
we read their replies. |
f0339f522dc9c8e2e8a29ef9a3f937c431c6bd1b |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use only explicit int -> bool conversions
These were checked with a patched clang. |
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. |
661998e2ccd772ad92a9d4a75cb712692a8c94b3 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_transaction_commit*() returns now error string |
c4478af52de63804efef2055580adf1dfc8679c6 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Changed dict_wait() to return void.
If it encounters any failures, it should just make sure to abort any pending
async requests before returning. |
b5052fbfdbc2678cc8f12899afe55c998f43b740 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_lookup() returns now error string |
20e04227229970d148801c507946666e2a9bd838 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: Renamed dict_init_full() to dict_init() |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
6b0e35b29f65a95fe8ae22ed8b5f0f36720c9f45 |
|
22-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
quota-dict: Added "no-unset" parameter. |
54a8bb6e9b852d9a96a8cdda1bb55a85ce0e10da |
|
24-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
quota: Avoid triggering quota recalc in dict transaction commit callback.
This mainly causes trouble if it again does more dict accesses. |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of strtoll() and friends. |
9c0cd052c03799d764938ffe500cf510bf9eb464 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
quota-dict: It wasn't possible to use multiple quota settings.
Found by Coverity |
7cb128dc4cae2a03a742f63ba7afee23c78e3af0 |
|
05-Jan-2015 |
Phil Carmody <phil@dovecot.fi> |
global: freshen copyright
Robomatically:
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-4]/$1-2015/g;s/ (201[0-4]) Dovecot/ $1-2015 Dovecot/'
Happy 2015 everyone!
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
3f7583189249a28892cd5bd69e15681c7a8a619b |
|
01-Dec-2014 |
Timo Sirainen <tss@iki.fi> |
quota: Added "hidden" option to hide the quota root from IMAP GETQUOTAROOT command. |
9346506a9f4dd9a6285fe8595588e73161849235 |
|
28-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
Replaced dict_init() with dict_init_full() in various places. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
9b61a6db87c026656f8d2ae214e4486b98a069c0 |
|
07-Aug-2013 |
Timo Sirainen <tss@iki.fi> |
quota: Improved init() failure error logging. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
048e40f9364fa68482bc276dd4a5d595a3d742e9 |
|
16-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
dict quota: Fixed a potential crash if quota recalculation was triggered at deinit. |
eca38954bcf972618f6b85932a3690acbd2b673a |
|
13-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-dict: dict_init() now returns error string instead of logging it |
10399559650f552a23949772be79eb6a80198c5a |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
dict_init() API changed to return int. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
2e37d45867d081db150ab78dad303b9077aea24f |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
183bea41fa640dc8117f3eb45ff935cd81377a84 |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2011. |
8595bafebf582a04fdff49af3cc69919c5332a0d |
|
16-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
dict quota: Quota recalculation always doubled the quota with pgsql.
--HG--
branch : HEAD |
d19d3aa4eafa34b48b7d7d311c9db31e1898576a |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
quota: Added ignoreunlimited option to quota roots to disable tracking users with unlimited quota.
--HG--
branch : HEAD |
560d08aadc24eeb6c13ed20316bad51e4f090dc1 |
|
12-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
quota: If dict quota update fails, log an error.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
cb931f84e3ec8e3deda253a1c0ae0409023de096 |
|
14-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
maildir quota: Limits weren't read early enough from maildirsize file.
--HG--
branch : HEAD |
02d91785bcf42ced46080db91c29bb534fbe2d1c |
|
07-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
dict quota: When updating quota, recalculate it when necessary.
--HG--
branch : HEAD |
4073f0dbf3277f981a8fcee3b89ea15aaf380a7f |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
dict proxy: Use base_dir as the default dict-server location.
--HG--
branch : HEAD |
2d8b23805db6f06b8b38174fb6e135386694f429 |
|
17-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented support for per-namespace quotas. Can be used with public namespaces.
--HG--
branch : HEAD |
34a0add9e0bb5350e803d67d3b44b743c67daaf7 |
|
19-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
dict quota: Use dict_transaction_commit_async().
--HG--
branch : HEAD |
8f855e242b53ff78f4dbf770a3c8f26feb7f173c |
|
19-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
quota: Fixed debug logging.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
1dc6f277f5ac6a3dd5cd6aa75a7ef691de9acb7a |
|
27-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
dict API: deinit functions now take pointer-to-pointer parameter which gets NULLed.
--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 |
6029d57f528b755be84a7d0326ad1c52063d9ca7 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Use quota->debug instead of getenv()ing it every time.
--HG--
branch : HEAD |
6d6bbe8787354bbb69d0c03187adfe0f497d70b8 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
FS quota: Handle quota only for the quota roots which apply to the mailbox
when there are multiple roots. With a single quota root the check is usually
unnecessary. Based on patch by Ralf Becker.
--HG--
branch : HEAD |
65e14cef911d5d3fac8993c8a76911a587f05cd7 |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
quota: All backends now take noenforcing parameter.
--HG--
branch : HEAD |
2b682d8d3661800f16aceaa45fa4de9b6b140a59 |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
Added "ignore" option to quota rules which causes the mailbox to be ignored
when counting quota.
--HG--
branch : HEAD |
634c7207dec9bfa672f7598fd45dd031d3bb5ab3 |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Relative (%) limits in quota rules and warnings work now if the backend
specifies or changes the limits (e.g. Maildir++ maildirsize file)
--HG--
branch : HEAD |
3851ad9fcb25635f02b46d44586742ef1081876b |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Relative (%) limits in quota rules and warnings work now if the backend
specifies or changes the limits (e.g. Maildir++ maildirsize file)
--HG--
branch : HEAD |
19e8adccba16ff419f5675b1575358c2956dce83 |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed T_FRAME_BEGIN/END to T_BEGIN/END. Removed T_FRAME() macro and
replaced them with T_BEGIN/END calls. T_FRAME() made it difficult to debug
code with gdb.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
43d32cbe60fdaef2699d99f1ca259053e9350411 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
--HG--
branch : HEAD |
12dc81583d1958cb301a617e19fbd40e8d376397 |
|
12-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Allow backend-specific quota rules with backend=<string>.
Support Maildir++ quota limit strings with Maildir++ backend.
--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 |
eba0a92d683f111d7b4af1760029f2489625f138 |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Recalculate quota if it's negative.
--HG--
branch : HEAD |
7aacd0ec474f842aa4cc5cacb22b512b8ad942da |
|
14-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Don't break if current quota value is negative.
--HG--
branch : HEAD |
62300a38f91227b9de043a9a8ec1d4f1978e1138 |
|
03-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
dict quota: If dictionary doesn't yet contain the quota, calculate it by
going through all mails in all mailboxes.
--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 |
92d1458b00f4f236c4cec96a696253d3bbf8b05a |
|
30-Jul-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Dictionary changes: Added support for defining value's type. Key is still always a string. Added support for sorting the iteration replies. Added dict_unset(). Added Berkeley DB support. Most of the code written by Tianyan Liu.
--HG--
branch : HEAD |
19e8858fad5128326481e6cd85c9070b1345bad8 |
|
30-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
DEBUG: Show username also in debug line.
--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 |
882897aa8345370a82487bd5c706cf26767b9f83 |
|
17-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Don't crash if dict_lookup() didn't return success.
--HG--
branch : HEAD |
b24c1c4b5de9309a0c7e4803b1548b80fe7c7404 |
|
15-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Don't return "no quota" even though current quota for user doesn't exist
yet.
--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 |
51dbc2d559815da774f8ee5faf0e28df3c8d40c0 |
|
11-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Get the quota limits from plugin parameters instead of from the dictionary
itself. Added support for message count limits. Other cleanups.
--HG--
branch : HEAD |
cb951d3282610a9a0960230865bc5f3e3347b203 |
|
05-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Maildir++ quota support.
--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 |
9844b5359f5cab77e4c31a7ac9e4a60a0073929e |
|
31-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Dictionary takes now a username parameter, which is used for private
queries. Made dict-sql use "insert .. on duplicate key update" syntax, which
unfortunately doesn't work with PostgreSQL yet.
--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 |
0e0aee86b51dff91e03fd6ccbdbaf685dfa52f18 |
|
09-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
try_alloc: Handle mail_get_physical_size() failures.
--HG--
branch : HEAD |
f8ead0942a9b7c8fcf91414ed1b534d5807ca555 |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added dictinary lookup server and a "proxy" dict implementation to talk to
it.
--HG--
branch : HEAD |
fbdd091ef000e3ec4db34c054736c91ef9bc48ce |
|
28-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Make dirsize backend read the directory only once at the beginning of
transaction. Added some more variables to struct quota_transaction_context
so dict and quota backends can both use it directly.
--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 |