bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
cf41318871bd42358df3420e50614f5310b08c77 |
|
19-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
quota: Add error_r to quota_get_resource() |
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4a |
|
06-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use PRI* macros and %zu instead of casting |
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. |
bffaca7da2825c2a77aa46022358e2f8400a0f94 |
|
03-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-quota: Return NO reply if GETQUOTA fails only partially
If the first resource lookup succeeded and the second one failed, the
GETQUOTA command replied with OK instead of NO. |
f4e66312c54f8f21df984e3b17c0cc752e019ec5 |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-quota: If quota lookups fail, return NO for GETQUOTA/GETQUOTAROOT |
f162f350e1eacce12288a565657e769d7976dd7f |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-quota: If quota root doesn't have any quotas, don't send empty QUOTA reply
For example if GETQUOTA is asked for fs quota, but the user doesn't have fs
quota enabled. |
2c719bcb92302f45df4badb71d1d97f57235d0cc |
|
24-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap-plugins: Use client_add_capability() for adding dynamic capabilities |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
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. |
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. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
e5dca7edde333c2759b0e6b1d0d00b94ea303322 |
|
20-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
imap-quota: SETQUOTA supports now also user@domain:quotaroot name. |
2521fd0986302cdabc8b0711eef63ac188f32cd6 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
quota: Added support for SETQUOTA IMAP command.
The configuration is done via quota_set setting. Currently only dict backend
is supported. For example:
plugin {
quota_set = dict:file:/var/lib/dovecot/quota/%u
}
The SETQUOTA command is available only for the "admin" user (userdb lookup
must return admin=y). |
c6e8f897413ce2fce378430a440e90e6421a8db0 |
|
08-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots. |
10ccd0e45768923d69be459e87ef6cd2574cec60 |
|
11-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
Removed ambiguous mail_user.admin flag. dsync shouldn't sync mailboxes without +r ACL. |
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. |
44f93baa7b8dca7d00bf187cd3db1c15eed384d2 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Use imap_append_astring() instead of imap_append_string() where possible. |
686ad6d723004b807fd558f3ef9d1f88afa7e127 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Use imap_append_*string() instead of imap_quote_append*() where possible.
This makes it clearer what types of output should be sent. |
bd63b5b860658b01b1f46f26d406e1e4a9dc019a |
|
11-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Plugin ABI version checking improvements.
Previously the plugin version was checked against the version string
returned by the currently running Dovecot master process, not necessarily
the same as the binary. Also version_ignore=yes setting skipped the version
check entirely.
Now there's a new DOVECOT_ABI_VERSION macro that can (at least in theory) be
updated only when the ABI actually changes. The version is in format
"2.2.ABIv1(2.2.15)", where the (2.2.15) would be the actual Dovecot version
number that gets ignored when comparing the strings.
Also now the plugin version is compared to the actually running binary's
ABI, not the master's version, and it can't be ignored with a setting. |
7d87a87b360ecac47fe10e7ca5c7e1433dd63004 |
|
03-Jul-2012 |
Timo Sirainen <tss@iki.fi> |
imap-quota: GETQUOTAROOT command used UTF-8 instead of mUTF-7 encoding for mailbox name. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
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. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
c1faff067b29fb48426cb84260adba563e93189a |
|
27-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Minor code cleanup. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
4145cbac82bfc0c8bfeceeca0ef841700117930c |
|
28-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Replaced MAILBOX_FLAG_KEEP_RECENT flag with reverse MAILBOX_FLAG_DROP_RECENT.
Very few places actually want to drop recent flags, so this way is easier. |
d12d1accd6060eee70375f1e6122425a159114e4 |
|
27-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
imap-quota: Don't crash if invalid mailbox name is given to GETQUOTAROOT. |
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. |
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 |
f750d1b4979a10bdede63e47aea6ea83d2c9e243 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap-acl, imap-quota: Compile fix for last change. |
ac0fed903142d28ae3a1d5d00d2097fdf161b138 |
|
04-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
imap-* plugins: Use the new imap_client_created_hook_set() to set the hook.
This avoids accessing variables directly, which allows Dovecot to give better
error messages if imap-* plugins are tried to be loaded by non-imap binary. |
8552b0cad8ffe9ccb8270577ba28b8010c89af11 |
|
07-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
imap plugins now give a nicer error if tried to be loaded for non-imap binary.
--HG--
branch : HEAD |
d337f4291d9ea9cd1adee0f468bc0c3baeabb4fe |
|
20-May-2010 |
Timo Sirainen <tss@iki.fi> |
imap-quota: If user has no quota roots, don't return QUOTAROOT reply.
--HG--
branch : HEAD |
5a37e34b1b5acf453372cd112c70bb4e46b4bee2 |
|
16-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
imap-quota: Iterate quota roots only once when replying to GETQUOTAROOT.
This halves the required dict lookup count.
--HG--
branch : HEAD |
9261dbf0675204898c6557591c7aa376e23a52b2 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Started using str_to_*() functions instead of libc's ones.
--HG--
branch : HEAD |
c2fbbf7515aa419dc8b2d62a3c2bb0471d51a391 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Changed imap_arg accessing APIs.
The new one is easier for both coders and static analyzers.
--HG--
branch : HEAD |
e593e507ee5ea3869271a631874c5c4b5c7a294d |
|
16-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
plugins: Changed to use the new client_find_namespace() API.
--HG--
branch : HEAD |
e5fd6dfd0a492e4708d4dbb7971d7fc5d7b8fd85 |
|
12-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed input parameter from mailbox_alloc(), added mailbox_open_stream()
--HG--
branch : HEAD |
e10d8b1291090c26b9ef499637e6e632485ca5be |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Split mailbox_close() and mailbox_free() functionality.
--HG--
branch : HEAD |
4462bd7b4c7ef3de006f060e155a90e5de7cae21 |
|
06-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
plugins: Use DOVECOT_VERSION instead of PACKAGE_VERSION.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
cd2cd224d3216a243d55c71c298a5b7684de0ac4 |
|
07-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
imap-* plugins: Advertise capability only if user actually has plugin loaded.
--HG--
branch : HEAD |
5666a3d6a7ea89362b8d9e8b39b15424cd9d6388 |
|
04-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Plugin hook API changed to support per-user plugins within a process.
--HG--
branch : HEAD |
23fdad6c7e2581921f511e24cd9371c9eaebcef9 |
|
09-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
plugins: Added dependencies.
The dependencies can only be checked if the dlopen() can successfully open
the module, so use (apparently) non-portable ltlibrary linking to force the
libraries we depend on to load with us.
--HG--
branch : HEAD |
1c885b304f060e3ac4fe04195a2f53457d0ac99e |
|
03-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Allow namespace prefix to be opened as mailbox, if it already exists.
--HG--
branch : HEAD |
1d2b188f0eedc3cab6e27ceac5425a037f38042e |
|
15-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox opening and closing APIs changed.
--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 |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
ef2b2ef2e6a6eb5e4667f2e63faae8a3b646e8ba |
|
17-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
imap-quota: Allow GETQUOTAROOT for public namespaces.
--HG--
branch : HEAD |
0df9428baed48afaff90b4d4f03792d2fd756a43 |
|
02-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed plugins to work with config rewrite.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
a443e5aaf632257bfd1e7aa9b3c42c09512bbe43 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Quota works now properly with shared mailboxes.
--HG--
branch : HEAD |
63110c906fdb5b4e8c870e76fa3f244dac4b043d |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox_open() now takes struct mail_storage ** so it can be changed.
--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 |
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 |
7c7a364a72d4edd1701df72fee835c09db19d933 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Changed imap-parser API to use standard arrays for lists instead of its own
imap_arg_list struct.
--HG--
branch : HEAD |
f1e9611e93dcb3b745c1904029084fa81644e1b3 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added more consts to imap-parser API
--HG--
branch : HEAD |
66a872b4569c048e804f0731680d89c6042d8890 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added command flags parameter to command_register()
--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 |
2769eecf814bd243033dcbf5bdc38f4162d3202d |
|
09-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
When returning mailbox name with GETQUOTAROOT, return the original name
instead of the converted storage name.
--HG--
branch : HEAD |
f6c1297c26b355c4aec2a08978f51ec3efecb351 |
|
22-Feb-2007 |
Timo Sirainen <tss@iki.fi> |
Added <plugin_name>_version string.
--HG--
branch : HEAD |
bda9a6d9b021c122a01a85cb3cee2f996263d8f0 |
|
12-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
s/quota/quota_set/ so we don't conflict with the quota symbol already
present in Mac OS X.
--HG--
branch : HEAD |
bf9ea5404a0094a8fb8199b677d81f803512c44e |
|
30-Jul-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Fixes to make it compile again.
--HG--
branch : HEAD |
e17d463c0d18233d1184f5b9237ff3f514f031ce |
|
02-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
If there is no quota for the user, GETQUOTAROOT leaked memory
--HG--
branch : HEAD |
4ea6c43a08b37f270bd54b5809142246fd118263 |
|
02-May-2006 |
Timo Sirainen <tss@iki.fi> |
Don't add extra spaces to reply if some of the resources aren't really found.
--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 |
378d924da5853145a6df9a299074f04be69986c7 |
|
07-Feb-2006 |
Timo Sirainen <tss@iki.fi> |
Advertise the QUOTA capability if the plugin is loaded.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--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 |
f8da06de93e28b5d3e039a427cdde7e1e15daec8 |
|
14-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Init/deinit function names were wrong
--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 |