b8a3be58d25a5b9113a70b848f53e664edd63761 |
|
24-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
acl: Fix ACL_CONTEXT check
Was incorrect in 3131b3878de3245db7552234e66d437e8fde9351 |
5e10e813a3f0c0f568cf642dbdf440a40b183ae6 |
|
24-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
acl: Add and use ACL_LIST_CONTEXT_REQUIRE
Satisfies static analyzers |
3131b3878de3245db7552234e66d437e8fde9351 |
|
18-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
acl: Contexts are now required or checked
Satisfies static analyzers |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
d4002fe1f64d25a792f76fb102ef7dc519cd4e24 |
|
11-Dec-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use mail_set_critical() and mailbox_set_critical() if possible
Replace calls to mail_storage_set_critical() with mail_set_critical()
or mailbox_set_critical() in places where mailbox or mail are easily
available. |
b0f08544a680b029666ab0e43ebcd913f0b91965 |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Make mailbox_is_autocreated() public
This also removes duplicated code from acl plugin. |
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 |
bbc7e2c2e726cf84da49f4062d05b0c35a9377bd |
|
08-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
acl: Deinit will return 1 on non-empty |
c7f6992db44e9cd33b3b0d754833a1503ee9a53f |
|
08-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
acl-plugin: Adjust to API changes |
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/' |
8c6884ab66c38f87d2198b840662a5546ca5d024 |
|
26-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
acl: If mailbox is autocreated, assume it already exists and don't require "create" ACL |
fca5548c51bf3887a202089549b9f87cf94cf212 |
|
26-Oct-2015 |
Timo Sirainen <tss@iki.fi> |
acl: Fixed handling mailbox deletion when only "delete" right was available.
So especially when there were no "lookup" or "read" rights. |
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> |
8d834fd1016ccba47ae8df74877a2a757c3e9f21 |
|
03-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
acl: Oops, ignore_acls check was reversed. |
7d6d78822fea744b86892b4faa04a5bf5137896f |
|
03-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
acl: Create struct acl_mailbox also for shared root namespace mailboxes.
This fixes crashes where imap_acl code attempts to access ACLs for
nonexistent mailboxes inside shared root namespace. Alternatively the
imap_acl plugin could have checked the nonexistence of ACLs but this is
probably easier and more guaranteed to work. |
14b551180cb4ac7acac8b048d8d6d7278541d1f6 |
|
03-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_namespace_is_shared_user_root() and used it where useful.
Most importantly this should fix a crash in ACL plugin where type=shared
namespace was used without any kind of per-user prefix/location (i.e. it
probably should have been a type=public namespace instead). |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
9199a1680a57988eacccce07f457c4fac6a108b4 |
|
06-May-2013 |
Timo Sirainen <tss@iki.fi> |
acl: Mailbox creation ignored ACLs (due to API changes in v2.2).
The created mailbox couldn't have been accessed however. |
238812433b4f7965fd662dce0f4efccb092630a8 |
|
05-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Add timestamps and value lengths to attribute change records in transaction log.
The timestamps will be useful for dsync, and value lengths will be useful
for metadata quota. |
eb4d4f557fa75aa2a47639e9deb75a21f44eb42a |
|
14-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
acl: Added ACL checks for attributes. Added ACL <-> mailbox attribute mapping.
The ACL checks will be useful once IMAP METADATA extension is finished. The
mapping is used by dsync to sync ACLs via generic attribute syncing. |
bdb026e2dc8a7c77585ed5ba489f0056df8074d4 |
|
23-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
"Mailbox doesn't exist" error mixed up using storage and virtual mailbox names.
This could have allowed a user to figure out existence of a mailbox without
having lookup ACL. |
6695fbfc493422a810eb5d950bfd6f41990626a9 |
|
20-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
acl: If copy() doesn't have enough permissions, free mail_save_context properly. |
e2d268e9531227ead6a98466ecf3c046c857ef70 |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Saving/copying no longer discards private message flags. |
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. |
1973c7c4f46abec48e1015823a304f17da35b2f6 |
|
08-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
imap: If mailbox doesn't have read ACL, hide APPENDUID/COPYUID resp-codes. |
a9dbce68b8bf10026e05721fdf3206279d64cb8a |
|
28-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
acl: Avoid assert-crashing when trying to access shared namespace root "mailboxes". |
742230f6ea54caf4dc2fdf365396da2e26f2f8e3 |
|
03-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
acl: Don't silently ignore permission error on expunge. |
f318b3dbe2acc177b8ee1c160e4b5b14e7f2cd41 |
|
13-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage API change to allow using it from C++ code |
71e88fae3be360e9a93b3398e743f99a6f05d2ed |
|
10-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed rename_children parameter from mailbox_rename()
The children are now always renamed. The only reason this feature was added
in the first place was to make dsync's job easier, but this is no longer
needed. |
99695d99930b35c2bac85d52e976b44cf8485d83 |
|
23-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved per-mail data in struct mail_save_context to separate struct.
This fixes previous save leaking metadata to the next save. |
7ada346a0fb1540ae8c26433a6a12166c27daf22 |
|
20-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
acl: Optimize failing mailbox_move() when expunge right is missing. |
b53bec99f804caa67f85c3523435ba9f4502c2d7 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
acl: After checking we have rights to create mailbox, ignore any further ACL checks. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
cff1f182205e674285cf3ff446a0dcf7afea277d |
|
29-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added auto_boxes parameter to mailbox_exists(). |
b59960aed0923004f21f2a00bc1c945084d2f851 |
|
23-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Export a list of permanent flags via mailbox_status().
Removed mailbox_allow_new_keywords(), since it's now included in the status
structure. ACL plugin may limit what flags are permanent according to ACLs. |
026be738ed56c8be10d048ef7b684ef5e05e5bea |
|
23-May-2011 |
Timo Sirainen <tss@iki.fi> |
acl: ACLs apply to private flags as well. Fixed returning READ-ONLY resp-code. |
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. |
c29216637957d4b3126c6929ac5ba98138256ce1 |
|
12-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_exists() can now return if it's selectable or non-selectable. |
306cfd77100131c08b243de10f6d40500f4c27c6 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Replaced mailbox_list_get_name_status() with mailbox_exists(). |
4182d8cd818e76856a5a1e25b343fe5ddf69fd8e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Simplified mailbox_keyword*() APIs.
They are no longer struct mailbox methods, because they're always implemented
as being wrappers to lib-index APIs anyway.
Also mailbox_keywords_ref/unref() no longer take mailbox parameter. |
8a13b020f90e080570658b18c042e7e352c8b14f |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved box->private_flags_mask to mailbox_get_private_flags_mask()
This allows getting it lazily only when it's actually needed. |
dd350fbefc91e6450dcd01f0cda5db6ea2242736 |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
acl: Recent change broke setting acls. |
c22572f8d98de4d8bf3d017421ed9f534b69186b |
|
18-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
acl: Fixed memory leaks. |
539977f9257bd8985be5a8093658da266ae9cd19 |
|
07-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Plugin API changed to run plugin functions in correct order.
Previously the hooks were run in correct order, but the functions they
overrode were run in reverse order. This caused problems when multiple
plugins were used.
--HG--
branch : HEAD |
e03d986a74128f5ba30fcfda9f6e36578f5d8dec |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox.free() method. Use it instead of close() where necessary.
--HG--
branch : HEAD |
206ac4273fa102500fa017f0c21a4fd72e94665a |
|
14-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Fixed plugins to use the new mailbox rename API.
--HG--
branch : HEAD |
61b0637759146621cbb7edcbd0b03a71cfd66dfe |
|
09-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox deletion API changed.
Mailbox deletion should now be free of race conditions. The actual file
deletion code is now responsibility of mailbox_list backend.
--HG--
branch : HEAD |
3c493c276f599d9b9cd10764876d648003046954 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved mailbox directory creation code to mailbox_list backend.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
ea9d9d99948cff5f9b881f79b28fa3b80da0f2a7 |
|
17-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
plugins: Simplified code by using mailbox_allocated hook.
--HG--
branch : HEAD |
4264d75117668afed3c3602116dcf159463644e6 |
|
14-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
acl: Don't crash when creating children under a mailboxes with global ACL.
--HG--
branch : HEAD |
263e4b2733768062cb0b8b8917cad78fa2a04ff9 |
|
28-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Plugins now use mail_save_context.copying instead of their own save_hacks.
--HG--
branch : HEAD |
96308127e006bb3b1108093bcf4cc1fd9481cb7a |
|
24-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit_get_uids() changed to _get_changes() with more generic API.
Saved UIDs are no longer necessarily in a simple x:y range.
--HG--
branch : HEAD |
36b7bef6b3106dae2586bad95c5db4dc71f8ad2f |
|
28-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
acl: When creating a new child mailbox, copy parent's ACLs to it.
--HG--
branch : HEAD |
17ad2164c747cedbf81dae1893063e71a3df0356 |
|
26-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added support for creating/updating mailboxes with given metadata (guid, uid validity, etc).
--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 |
bd4d0a1a7c0626452b8d82f37e3ec07267ac9896 |
|
06-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Mail copying API changed to be based on save API. This allows extending it easily in future.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
81e6e1ef0feef60644a4c4b745d82a4c98223aff |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Initial support for LISTing users with shared mailboxes.
--HG--
branch : HEAD |
db9f053331a7bb144d32a2331e666cb1d2be5766 |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed OPEN_IGNORE_ACLS flag to work again with imap-acl plugin.
--HG--
branch : HEAD |
04870054863757edf048c81dcce3c5e7dec453cd |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
ACLs: Initial support for "post" right.
--HG--
branch : HEAD |
02a54da28f376dd66d7939d8546a196a0045b486 |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added IMAP ACL commands with ability to modify ACLs.
Based on patch by Bernhard Herzog and Sascha Wilde.
--HG--
branch : HEAD |
e3aeeb634245e80d4f643f8d2eea11d6b72336d8 |
|
07-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox_save_init() API was split to multiple functions.
This allows adding more parameters easily in future.
--HG--
branch : HEAD |
cf942dce0253075911a96cff323b5f30eb654ae0 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox.save_init() API now takes ** pointer to dest_mail, so multiple
plugins can safely specify it. ctx->dest_mail also gets updated then.
--HG--
branch : HEAD |
103106f0227b8487abc1e2c6ad63b84cdc51388e |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
ACL: If any of the flag set rights were given, STORE FLAGS allowed replacing
all flags (+/-FLAGS worked correctly).
--HG--
branch : HEAD |
ef3f582fdf2d007838bba693f8c2629d079668de |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
ACL: If we don't have 'w' access, don't allow creating new keywords.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
63f36c2b47217fc2dc4ed49cfc1907311d5ed366 |
|
30-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit*() doesn't sync the mailbox anymore, so it
shouldn't take mailbox_sync_flags parameter either.
--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 |
73b50eecfc31750a312e2f940023f522eb07178c |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup*() can't fail anymore. Changed several APIs not to return
failure anymore.
--HG--
branch : HEAD |
87c942bf0904ad0caee8902d9f27576469aecba0 |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Removed rights checking from mailbox_get_status(). The rights were already
checked when mailbox was opened.
--HG--
branch : HEAD |
11fec79522fc0cebe7321d1a9206568d22ddc1c0 |
|
17-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Return mailbox as READ-WRITE only if mailbox has rights to expunge, insert
or change shared flags. Return \* in PERMANENTFLAGS only if mailbox has write
right.
--HG--
branch : HEAD |
f428ea9564d72894c18b8f3876bfaaf677ce19aa |
|
17-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Fail get_status() lookup if user has no READ right to the mailbox.
--HG--
branch : HEAD |
12ef7b394dfdf4d53d432ac576f6bfcd20ebad6d |
|
17-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
APPEND and COPY ignored s/t/w flag rights.
--HG--
branch : HEAD |
ff7056842f14fd3b30a2d327dfab165b9d15dd30 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Error handling rewrite.
--HG--
branch : HEAD |
e7ca5f820d6a1a8fe549a2966ac707a60e055ef4 |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
acl_backend is now tied to mailbox_list instead of mail_storage.
--HG--
branch : HEAD |
8e371a3ce32bd64288786855b8ce0cb63f19f7d1 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Better type safety to module_contexts arrays. Already fixed some bugs.
--HG--
branch : HEAD |
b039dabf4c53f72454e795930e7643b6e0e625f9 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved delete/rename operations to mailbox_list API. Fixed mbox/maildir to
work with either fs/maildir++ directory layout. They can be changed by
appending :LAYOUT=fs|maildir++ to mail_location.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
2ebeb22b9a8a8bb7fbe2f2e2908478a220792b87 |
|
09-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Changed mailbox_save_*() API a bit: Moved the struct mail *dest_mail to
save_init() instead of being in save_finish(). This way you can request
wanted fields from the mail while it's being saved.
With maildir the message is being parsed at the same time as it's being
saved, and the results are stored into cache file.
--HG--
branch : HEAD |
7fb70daba4e571eab5b64f496d20b9e37e31141b |
|
27-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added initial support for ACLs. Currently supports reading the ACLs from files. Since no proper support for shared folders exist yet, this is mostly intended to be used only for preventing users from fully accessing the mailboxes they'd otherwise have full access to. It anyway does support "master user" having different ACLs to mailboxes.
--HG--
branch : HEAD |