9a2149cccfab52ca88cd6b5eecec776a0c3584ec |
|
14-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_namespace_is_inbox_noinferiors() |
5b82f3b2f544cf891a390083f1bcf60409be20b8 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add struct mail_namespace.user_set |
aafbaa45a60ec50815e0c985690a828617013a8f |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_namespace_alloc()
This makes it easier to create new namespaces.
Based on patch by Jeff Sipek |
bb1da4a6320eec11890c852e74a08868837e7be3 |
|
05-Jul-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Clarify that mail_namespace_find_inbox() never returns NULL.
If namespaces==NULL, this function isn't even supposed to be called. |
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] |
90804278df6586cceaf1b1b07a44713c01694048 |
|
15-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_namespaces_init_add/finish() to manually initializing namespaces. |
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). |
47ede56f4e6eebfe631a1f0febf74d7adcdbcd00 |
|
08-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for multiple storages per namespace. |
9b706b345064ce8e8a657f54633f009a101298ea |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
If prefix="" namespace isn't defined, autocreate it as an unusable namespace.
This avoids having to handle mail_namespace_find() errors all over the
place. Instead now the mailbox accesses will simply fail. |
c396c5cdd510d09aa35875ccfd643c5c21ed1f89 |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use const pointers for mail_namespace.(set|unexpanded_set) |
abed24374d7e1a57bec8d8a108acfcaffd52d4f9 |
|
04-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed LIST (SPECIAL-USE RECURSIVEMATCH) to actually return CHILDINFOs. |
3e0bae44b65f5c46989fcef3d1e07203f496327e |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed enum namespace_type to enum mail_namespace_type |
7fd51f7b0b4d990ec3cfef4e60ee685bf9fb32de |
|
14-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If alias_for references inbox=yes namespace, copy the inbox=yes to the alias ns.
So even though this still doesn't allow giving multiple inbox=yes settings
in configuration file, it's now possible for multiple namespaces to have
them. They just need to point to the exact same INBOX. |
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 |
c10669a4219b5323127356d8ad5416d41c128235 |
|
06-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
Moved mailbox {} settings inside namespace {} and no longer require ns prefix in name.
This allows specifying mailboxes more easily with per-user namespace
prefixes. |
288d6ef592719f2be3cad9f034e9be05f9839785 |
|
15-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_namespace_find_unalias() |
d9250ee7e2815bb2116134b58f7c860578148d6c |
|
08-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_namespaces_init_location() for creating a single namespace for user. |
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 |
6145bd3b17b9135b77b0b42409a0cc3fa0d1b946 |
|
26-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added refcounting support for namespaces |
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 |
0b4e1043e596bfb36d999dacbf1d4d63ee96d75f |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
When creating shared directories, preserve parent dir's permissions if it has setgid bit enabled.
This works only if location path uses %variables. The directories up to
last variable are created by preserving parent directory's modes, while
the rest of the directories are created with 0700. For example
with "/var/mail/%d/%2n/%n/Maildir", "/var/mail/domain/nn" preserves /var/mail's
permissions, while the "username/Maildir" directories have 0700 mode.
--HG--
branch : HEAD |
de4d9f77d6378a416c9963963eac5ac18b75ec0b |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_iter_init_namespaces() has more filtering capabilities now.
- namespace types
- MAILBOX_LIST_ITER_STAR_WITHIN_NS flag so that "*" doesn't escape beyond
the namespace it started in.
--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 |
482ca9ca1b9cfa58df9648db77b5ced84c65a05a |
|
12-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_namespace_get_storage_name().
--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 |
16db188cfddce117500a161302f17ae691b4500e |
|
26-May-2009 |
Timo Sirainen <tss@iki.fi> |
Split NAMESPACE_FLAG_INTERNAL into distinct _NOQUOTA and _NOACL flags.
--HG--
branch : HEAD |
60b42c6dfdf9edcca8a96b380ef9a0adc60c2464 |
|
03-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
acl: Don't try to create dovecot-acl-list file for unknown users' auto-created namespaces.
--HG--
branch : HEAD |
7327394e30c1020b9a2a49c72a7e3d0f7803e680 |
|
20-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
mail-storage API: Added some function description comments.
--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 |
af3f857bb3166ed99595e11a9d18e5b5cc670e1a |
|
30-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added alias_for setting for namespaces. Fixes namespace issues with fts.
--HG--
branch : HEAD |
67c47dbb3fde79218320fd38a45c33f61bbf3012 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
mail_user_*() now handles home directory lookups when necessary.
Namespace owner is now a pointer to struct mail_user rather than a string.
--HG--
branch : HEAD |
a02c3e423f365d54ad731811dcb2cfad0c0e3cbb |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added namespace owner username to struct mail_namespace.
--HG--
branch : HEAD |
4ac2d38239cea8090154e17faefd77de5a71d882 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added list=children option for namespaces.
--HG--
branch : HEAD |
b337d3b6871b878d6467d7d8ed600433af5da5a1 |
|
19-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
When autocreating a new shared namespace, drop existing namespaces where we haven't seen any mailboxes.
--HG--
branch : HEAD |
c8cf8a605e0ddea7cb36fe04551aeca5090e684b |
|
19-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_namespace_destroy().
--HG--
branch : HEAD |
a988c3fd9251806e38931a011aaa4006dd081cbd |
|
18-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Subscription handling fixes for subscriptions=no namespaces and shared mailboxes.
--HG--
branch : HEAD |
092018b35bb1dc5bd61848a38189fe6ac8f791dd |
|
12-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Removed pool parameter from mail_namespaces_init*(). Use mail_user's pool intead.
--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 |
68a4946b12583b88fa802e52ebee45cd96056772 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added more consts, ATTR_CONSTs and ATTR_PUREs.
--HG--
branch : HEAD |
a3f6d0302a83270253ff9d2ebd4fea0003e9ac95 |
|
09-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
mail_storage_create() now finishes namespace initialization so namespaces
can be created more easily.
--HG--
branch : HEAD |
ef50336eefcb9ba99f73c6af37420eaf8857a39b |
|
28-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling namespace prefixes and real!=virtual separator. Added a
new MAILBOX_LIST_ITER_VIRTUAL_NAMES which specifies if mailbox listing
should be using virtual or real mailbox names.
--HG--
branch : HEAD |
32e1554df9abca74fef0af2ba2e4c37e90a06cd0 |
|
21-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Added subscriptions setting to namespaces to specify if it should handle
subscriptions itself or if the parent namespace should handle them.
--HG--
branch : HEAD |
29e82a14501731bef8c41a1b27fc415d634fa01d |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Mark deliver's dummy mbox namespace as internal and don't include it in
quota calculation.
--HG--
branch : HEAD |
c25356d5978632df6203437e1953bcb29e0c736f |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed .h ifdef/defines to use <NAME>_H format.
--HG--
branch : HEAD |
48a4fccfb24f81ee05ebc07b5db569c1fbf499c5 |
|
08-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added hook_mail_namespaces_created.
--HG--
branch : HEAD |
957d09e495c33ad1180f82152e5e87e6b51ab04b |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_namespace_find_inbox() and mail_namespace_find_prefix_nosep()
--HG--
branch : HEAD |
296dca49e4fe6046e0328c67ef1cf4b8077dec9c |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Moved several namespace booleans to a flags field. Removed unused
subscriptions boolean.
--HG--
branch : HEAD |
2b95b7a9f4f06e7640ef431d9e6efc2423cacf1a |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Store namespaces sorted by their prefix length.
--HG--
branch : HEAD |
14376e0584c178306c400750352869cf2aaf6fee |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure all listable namespaces use the same separator. If there's no ref
or "" namespace, use that separator instead of INBOX's.
--HG--
branch : HEAD |
d03007e5a453abcbd9a133108ed480ab38704886 |
|
25-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added list setting to namespaces to control whether mailboxes in the
namespace are visible with LIST command without giving the namespace prefix
(eg. does LIST "" * show the mailboxes or not)
--HG--
branch : HEAD |
9874ad56b94788297fdac4eae7cba5d651b48222 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_namespace_update_name()
--HG--
branch : HEAD |
c58906589cafc32df4c04ffbef933baadd3f2276 |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list to struct mail_namespace. Added a few functions to get
private data out of mailbox_list.
--HG--
branch : HEAD |
e8490a52a1bc71bc53034e68f464435684ad810f |
|
03-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Moved namespace handling to lib-storage. Beginnings of namespace support for
non-IMAP parts of Dovecot.
--HG--
branch : HEAD |