bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
948dccd80c13b2b62e6c0c4599404495154c892e |
|
17-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
quota: Fix error handling if maildirsize rewrite fails after recalculation
error could have been left uninitialized, potentially causing a crash. |
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. |
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(). |
bf20e0e1aa622d73df3ea763a14f5db38f40ea7b |
|
21-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-maildir: Don't deref NULL pointer on list deinit |
6d1372638a3e4a0a70b25bf1a52ab826a36cd729 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-maildir: 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 |
e83a11eb1dc0dea31754396e1d07c5205d810104 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r parameter to init_limits() of quota_backend_vfuncs |
17ec7fd70556e1811c758449d6fa29fa52f2c410 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota-maildir: 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 |
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4a |
|
06-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use PRI* macros and %zu instead of casting |
a943ed0f901e312445fd393249b91932797bba79 |
|
03-Oct-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: use i_close_fd{,_path}() instead of open-coding them |
7b032348d7bbb93ff96188289d3dfc1899b9abb3 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on i_close_fd(-1) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != -1)
- i_close_fd(&E);
+ i_close_fd(&E); |
5ee92077753dae191aafca24da44f4f78e7f545c |
|
23-May-2017 |
Sergey Kitov <sergey.kitov@open-xchange.com> |
maildir backend parameter parsing changed to use common function |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
0dffa25d211be541ee3c953b23566a1a990789df |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: unsigned int:1 -> bool:1
perl -i -pe 's/unsigned int ([^,:;]+):1;/bool $1:1;/' **/*.[ch] |
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. |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
46b823ac3bce2c0f9f0fc73911e48d3a77b04fbe |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
Replaced unlink() calls with i_unlink*() wherever possible. |
e48f289d2e5b2546a2c5dcc90f7ab624cc58cca2 |
|
29-Aug-2015 |
Stephan Bosch <stephan@rename-it.nl> |
Removed all invocations of strtoll() and friends. |
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. |
79ce5b0d2f911f858fbc3f259f09a8dce00d3dc6 |
|
29-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
quota: Avoid assert-crash in Maildir++ quota if backend doesn't support control dirs.
We'll delay looking up the control dir until we've checked that the storage
is Maildir. |
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. |
52ec61a8d49986fa140639d371f75ac078c47be5 |
|
10-Jul-2013 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: When recreating, don't use maildirsize.lock file.
The point was never to even try to lock it, it just used to be an easier API
to create the file. Nowadays safe_mkstemp_hostpid_group() works just as
easily. This normally doesn't matter, but apparently Exim+CPanel leaves
maildirsize.lock files lying around, causing Dovecot to not update
maildirsize. |
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. |
09b4a50740d34c3f951dc1f9df8edf8283ac532a |
|
18-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
quota: Skip alias symlinks when calculating quota |
9fc97c8aa8190df87624d214bcc5d0b5362bec93 |
|
26-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_get_path() and friends can now return an error.
An upcoming "index" mailbox_list backend uses mailbox GUIDs as the directory
names. Doing a name => GUID lookup may fail, so the path lookup may fail.
This is a somewhat annoying change and perhaps it can be removed in future,
but for now it looks like it can't be avoided. |
76b91bac787101e6b0075122ab6478dd98c8a884 |
|
26-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_root_permissions() now returns struct mailbox_permissions. |
3e0bae44b65f5c46989fcef3d1e07203f496327e |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed enum namespace_type to enum mail_namespace_type |
402e999a878e0cc41a0afb830fea0a93afc75f0d |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed struct mailbox_info.name to vname. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
566a436ce4ad942d2f13673a2dbec18aa3baee1e |
|
15-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
maildir++ quota: If reading maildirsize fails with ESTALE, retry it. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
15093714cd8484c0b7781e00de5ab6f991c558dc |
|
20-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Close maildirsize file after writing to it to force NFS to write it.
This should fix the "Stale NFS file handle" errors with maildirsize. |
46c6ebbfafc684c8e97287c9755f9ce5bc002952 |
|
10-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
quota: Try to avoid logging NFS stale fhandle errors when closing maildirsize file. |
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. |
e5aa8d4c9bdda79c2db03391ec45b37bf774df14 |
|
01-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Merged returning dir mode into mailbox_list_get_[root_]permissions(). |
c0a87e5f3316a57e6f915882fa1951d0fbb74a61 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_alloc() now takes a virtual mailbox name and other related API changes.
All storage_name <-> vname conversions now go through the same two
mailbox_list methods. This has many benefits, such as:
* listescape plugin is now much simpler and bugfree
* allows changing lib-storage API to use UTF-8 mailbox names in future
* allows creation of "mailbox aliases" plugin |
17cf149e5f47183bfcc1503649dfb92a14f9dcd9 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_get_root_[dir_]permissions()
They should be used instead of mailbox_list_get_[dir_]permissions() with
name=NULL parameter. |
40c24f8fe31037b61f2ac594a6dfcd123080b4b5 |
|
04-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
quota: Better fix to avoid counting quota for virtual mailboxes. |
282142061c85f892e52154e81b9f8d4393b3b0c3 |
|
06-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
quota: Log a warning if Maildir++ quota is enabled for non-Maildir storage. |
b694893eb825c0e1cb4bec008fbf642311894c1a |
|
04-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
quota-maildir: Avoid leaving maildirsize deleted when quota recalculation is wanted. |
c07e35cfc9587fc7589cbc1db0daeeb828456b2b |
|
11-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed code related to listing mailboxes with non-virtual names.
The non-virtual listing code would have already crashed with assert. |
eb64c3586d854cddd693f0b811d897399076a441 |
|
06-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
Fixes to INBOX sharing.
NAMESPACE_FLAG_INBOX was split to two flags: _FLAG_INBOX_USER (this namespace
has the user's own INBOX) and _FLAG_INBOX_ANY (namespace has INBOX, either
user's own or another user's).
--HG--
branch : HEAD |
cc5e3d3391d7e54b643ab4949e8df465f37234bb |
|
17-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
quota: Consistently assume that mailbox names in quota rules are virtual names.
The previous code mixed virtual/real name lookups.
--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 |
5a8f244ec97d99fef45e86a0aa24b8f63b219616 |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
maildir++ quota: Support "NOQUOTA" as valid backend string.
--HG--
branch : HEAD |
b8f2a287250111608f079f06b6bf5c9cc860b93a |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Error handling fix.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
d761c26f2bbf514e0fc0c6ed9bc52627a4179eab |
|
08-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: % limits weren't updated when limits were read from maildirsize.
--HG--
branch : HEAD |
7bafda1813454621e03615e83d55bccfa7cc56bd |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Removed MEMBER() macro. Require C99 style struct initializer.
--HG--
branch : HEAD |
eb11d2ca49d8b5edabccdf97fd8d2169be3ceec9 |
|
16-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
quota-maildir: Don't crash at startup.
--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 |
12aae0081cbdf86bfb330ab087a3824466234255 |
|
27-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
maildir++ quota: Quota was sometimes updated wrong when it was being recalculated.
--HG--
branch : HEAD |
e156adefc1260d31a145df2f5e9b3c82050d4163 |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Whenever file's group changing fails, show the group origin in the error message.
--HG--
branch : HEAD |
2615df45a8027948a474abe5e817b34b0499c171 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for making mail_storage:mailbox_list to be from 1:1 to n:n.
This will allow namespaces to share the same storage and a single namespace
to have multiple storages (multiple mailbox formats). Neither works
currently, and this commit probably breaks some things.
--HG--
branch : HEAD |
9f018a85c93145e789ea5365718cfc6dd954a913 |
|
20-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Recalculation was broken if limits were defined by maildirsize file (and not quota_rules).
--HG--
branch : HEAD |
e6dfe937343e7d5e2a9f5a188a44d922460fbbef |
|
17-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
maildir++ quota: Make sure we don't create maildirsize file to wrong namespace.
--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 |
b82d6d7f02734007c129fa25bc876049c8d9bdde |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Create all mail/index files'/dirs' permissions based on the mailbox directory.
--HG--
branch : HEAD |
0df9428baed48afaff90b4d4f03792d2fd756a43 |
|
02-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed plugins to work with config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
f037abbef2cc57979356127e3b2bb456351460f7 |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Directory mtimes weren't properly kept track of when recalculating quota.
--HG--
branch : HEAD |
b76bc28de1c65b7ed6b19c7873b294d3742f5d57 |
|
05-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: If there are no limits, write "0S" as the file header.
--HG--
branch : HEAD |
37f5e4f22d8f0d6aeca6536fba84b396c2196364 |
|
05-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Fixed maildirsize recalculation when quota limits were read from the file.
--HG--
branch : HEAD |
53101f0e1e998d9bf718689fdb1363c5f0a07b0f |
|
05-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: If there'a s "*" quota rule with 0 limits, keep the quota up-to-date anyway.
--HG--
branch : HEAD |
263457e5d159bd461d34ff4796ade7ba434f02b7 |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: Create the missing directory using the correct permissions.
--HG--
branch : HEAD |
cb07373a0afd4b0635e10a6757bd22e46dc9cf61 |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Maildir++ quota: If directory for maildirsize doesn't exist, create it.
--HG--
branch : HEAD |
b1678954f83e1059b981e2def52a70054fa71399 |
|
14-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed FS quota compiling and Maildir++ quota with multiple users.
--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 |
fea7b8b3fc182e415b1875d79587c0aa1adb09d7 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Use permissions based on mail root directory when creating new files/dirs under it.
--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 |
ab0d9eecd85f74acae18fe88529302e0776cc500 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
extern/static fixes (from a sparse check by Diego Liziero)
--HG--
branch : HEAD |
ccd44abfe14f51cc1f6d8c0ec1aa6dc31242e2d3 |
|
08-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
maildir: Add ,S=<size> to maildir filename with all quota backends.
--HG--
branch : HEAD |
63af428111bdf1975b06da83f98d072210514a36 |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
When updating maildir quota create also missing maildirsize file and make
sure the limits in the header are up-to-date.
--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 |
9d679a20c349d9d6aabd913d08dc19291bb1b55a |
|
07-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
If both byte and message count limits weren't set, we recalculated
maildirsize all the time.
--HG--
branch : HEAD |
7ca2a9f1cca63cbc2ebffc185c7e5a2b32bc2780 |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
quota_rule=?:.. specifies the default quota limits to use when backend
doesn't have any. If backend has limits, this rule is ignored.
--HG--
branch : HEAD |
a4b91c3f4b6e0d0428d5f6e7fbf923aa8d371bc3 |
|
26-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
quota_rule=?:.. specifies the default quota limits to use when backend
doesn't have any. If backend has limits, this rule is ignored.
--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 |
ed22384e18b005c6a518478c515e7bfdb9e110ee |
|
20-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Fix to maildirsize reading optimization.
--HG--
branch : HEAD |
7be291ff7fcb7d10a5f96db00282a40287b471c5 |
|
20-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Don't re-read maildirsize if it hasn't changed.
--HG--
branch : HEAD |
5a001dd0848310e9ed6622442329ff346b189257 |
|
20-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If quota limits weren't specified, they should have been taken from
maildirsize file.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
e394583a7c1121599799a35f205bf237f6a1ee04 |
|
17-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Check if we have maildir quota storages at all before trying to expunge
messages.
--HG--
branch : HEAD |
0223007c8a72339fe40a732710203afb82f108a6 |
|
17-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Expunging messages didn't update maildirsize file if it wasn't already
opened or if the file had since been replaced by another process.
--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 |
8c8d40894b9e9a8682bc811b71e425c0dee05810 |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Removed broken check for empty lines in maildirsize, which could have caused
maildirsize recalculations to happen too often.
--HG--
branch : HEAD |
8da095519878426b012058e6f331a669f327f47f |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
dotlocks: Flush NFS attribute cache only if nfs_flush setting is TRUE.
--HG--
branch : HEAD |
9d254c7c7b715d7fe1206e9b228e9c5b23b99f28 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Log a nice warning if using maildir++ quota without maildir storages.
--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 |
18ffea71d9beeec3cc1d400f751926ee72807f62 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Mailbox listing API changed to support more features. Used to implement
support for half of LIST-EXTENDED.
--HG--
branch : HEAD |
61e84692827b6a64912343f515c984853021483a |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_iter_next() returns now const pointer.
--HG--
branch : HEAD |
25b0229f40dc59d0b3f31e01b7afc57304bead5c |
|
19-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
If maildirsize file is being rewritten while we're trying to do that,
recalculate it later instead of failing with "Unknown quota error".
--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 |
ba3f68dfb8475299f43125c3e86985a713013c5d |
|
12-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If maildirsize file contains only the header, recalculate the quota.
--HG--
branch : HEAD |
a8fcd55e88550ebb905249825bdb1eec7b9667ff |
|
06-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
comment typofix
--HG--
branch : HEAD |
0563ad5c7f179554623682f6fd7b98596901b49f |
|
06-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
If maildirsize contained NUL bytes at the beginning of the line (could
happen with NFS), we stopped parsing the file at that point instead of
rebuilding it.
--HG--
branch : HEAD |
c73bb576f140e1c1aae57fd607d02b418afe2c3f |
|
16-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
We were relying on the limits in maildirsize file instead of using the
quota_rule limits.
--HG--
branch : HEAD |
ccb77e2f63626ec46e5745ef4f38baa8e8e504fc |
|
26-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups and minor fixes
--HG--
branch : HEAD |
aa9c91ee2fcf0ee65d82d0cdc4a58ab1a7002c26 |
|
24-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed a file descriptor leak.
--HG--
branch : HEAD |
8887bf3757d51d73887dd20b1db3334d867d3817 |
|
28-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added dotlock_use_excl setting.
--HG--
branch : HEAD |
6ce34c7a2462412af024a0320911a3fe1c04b264 |
|
17-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed a file descriptor at deinit.
--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 |
a27e065f1a1f91c7fbdf7c2ea1c387441af0cbb3 |
|
16-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Initial code for separation of mailbox accessing and directory layout
handling. It's not yet possible to change the default layouts though.
--HG--
branch : HEAD |
5f24517ae602ca828bc7e197913f51d55d79c9bc |
|
12-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed some warnings with older gccs.
--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 |
b83f52b3ac3736d7f509db7ba80360d89f8a776d |
|
24-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
Don't count "." and ".." directory sizes to quota. After rewriting
maildirsize file keep its fd open so that we can later update it. Patch by
Alexander Zagrebin
--HG--
branch : HEAD |
677e22747b82bf15b339e31d1d0106d62bf806da |
|
15-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Add ",S=size" to maildir filenames when quota plugin is loaded with
Maildir++ backend.
--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 |
223833bdfc5a09d932560802d9121a3ede49933d |
|
02-May-2006 |
Timo Sirainen <tss@iki.fi> |
When requesting quota resource, don't return it if it's unlimited. Also
treat 0 quota limits also in plugin parameters as unlimited.
--HG--
branch : HEAD |
915a93236b3db747fb5a56db30beb95a41ee0221 |
|
23-Apr-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Accidentally reverted 0-is-unlimited-quota change in last commit.
--HG--
branch : HEAD |
4c5272b168b4d71a95a08d48cc5b29cd7b27f193 |
|
21-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed a buffer overflow if maildirsize was over 5120 bytes long. Luckily
almost no-one used maildir++ quota yet and the bug is highly unlikely to be
exploitable anyway.
--HG--
branch : HEAD |
4f00d8fe5999155462106c991eb36243c2d68500 |
|
21-Apr-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
0 values in maildirsize means unlimited.
--HG--
branch : HEAD |
2d71e0ea3006576961b47d91d564d31771676624 |
|
06-Apr-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Fixes. Added storage and messages parameters to quota plugin parameter. If given, they specify the master quota limits, so if maildirsize has different limits Dovecot will replace them. If maildirsize doesn't exist and Dovecot doesn't have limits, Maildir++ quota is disabled for the user.
--HG--
branch : HEAD |
8b10d65deb01f351172408ab9540413d60d5fe3b |
|
06-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
Return value of get_resource() was wrong, which caused quota reporting not
to work.
--HG--
branch : HEAD |
0461b5dfd1ac6b5ae49a2f1ab6ffdc2e5e2ee7c2 |
|
06-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Fixes to updating maildirsize.
--HG--
branch : HEAD |
6800c6607013d4fdef5a4f764bae407301c6cce8 |
|
06-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Cleanups.
--HG--
branch : HEAD |
cb951d3282610a9a0960230865bc5f3e3347b203 |
|
05-Mar-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Maildir++ quota support.
--HG--
branch : HEAD |