2a86a88fb41f4777a937dec3b2d54dedd47ed6cc |
|
01-Mar-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add and use MAILBOX_LIST_PROP_NO_INTERNAL_NAMES
Use it to replace Maildir++ check to see if mailbox_list.is_internal_name()
is wanted to be used. |
655fc45da67a4cfa63d9d12cf106961a1afc12b9 |
|
24-Feb-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-storage: Add NO-FS-VALIDATION flag |
20856c63a2c0f694f32db4368cea2505937570cb |
|
24-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Never prevent using '/' in mailbox names with mail_full_filesystem_access=yes
It was already allowed with LAYOUT=fs, but not with e.g. LAYOUT=Maildir++.
Now it's possible to use e.g. SELECT /home/shareduser/Maildir/test.box |
847caf605dc11acfb1861586b558d9cca4a85cb0 |
|
07-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mailbox_list_[un]lock() |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
d95773f272b0475ac0e51b96f603a28e8674e8f1 |
|
13-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Make sure index root is created when it's the same as root directory
This is required by the following commit. |
82e7761750881b85128ccb2e4d4d06075ca36050 |
|
20-Nov-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add a fall through comment to fix gcc-7 warning |
638600575ee95f2513c683ef09cb188f76eacd22 |
|
20-Nov-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add INDEXCACHE=<path> to mail_location
This allows configuring a different directory for dovecot.index.cache files
than the rest of the index files. |
eaa2d473ed2ecdb9856cd98a33f4d3063cfaf2a1 |
|
25-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add setting to disable \NoSelect mailboxes
Enabled using mail_location = ...:NO-NOSELECT
Trying to create \NoSelect "dir/" will result just creating "dir", similar
to how Maildir++ layout already did it.
Deleting a mailbox will delete all of its \NoSelect parents. |
d85f37fe02fadcd5144560495a7196133c8ec947 |
|
25-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: If root dir already exists as file, log better error message. |
49c48631cfd07017d5f93d83713fffe4f13730c4 |
|
24-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Allow LISTINDEX to point to a different directory
Most importantly because the mailbox list index is only a cache, it could be
safely pointed to e.g. tmpfs to save disk I/O. |
4654cf737f538f5de032b8c9908913f121917366 |
|
10-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mailbox_list_last_error_push/pop()
These are similar to mail_storage_last_error_push/pop() |
4fce6ce68d13836faf6d68f35855eba4573b42b2 |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mailbox_list_get_permissions() - Use index dir with ITERINDEX |
6763c5f6246a0705b141d99d32fe9e2096042bd3 |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: mailbox_list_get_permissions() - Use index dir for storage without mails
The index dir might still exist. |
4225ae95dd2110fe678ee70c64be14784a53c364 |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Cleanup - move code to mailbox_list_get_permissions_stat()
Comments changed also a bit, but no functional changes. |
2f552aa8fb0fc86473c2d7dea85d8237373fb35f |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Cleanup - Use mailbox_permissions_copy() instead of duplicating it |
5069b6adc4acb0efb3c6e87e778b820bae9bae9b |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mailbox_permissions_copy() |
1728ff34ee03de825ad3aeed67d19f8ae140ee2e |
|
03-Jul-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_location=..:ITERINDEX
This changes mailbox list iteration to work using INDEX directory instead of
the normal mail directory. This can be helpful when the indexes are stored
on a faster storage. |
7d2d0ae1131c8b632cc7e86000adaaf8c9ef42a9 |
|
30-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add BROKENCHAR to mail_location
This makes the mailbox_list_settings.broken_char configurable. Mainly useful
with imapc when remote server doesn't contain valid mUTF-7 mailbox names. |
3e0b3ae576483a96b88802b27e93f3caeba09ddc |
|
29-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mailbox_list_get_last_mail_error() |
fd8b93ca5cbeba64fe6fa5dc98a3e580fb046791 |
|
28-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add VOLATILEDIR setting to mail_location
This is useful for creating temporary locks that could exist in tmpfs.
Currently this is used for .vsize.lock and dovecot.autoexpunge.lock. |
8ca217bf3aa23c7922d0d4aa44fcd2320416d61c |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add mailbox_list_get_last_internal_error()
This returns the error given to mailbox_list_set_critical(). |
dd645357a6b851a3a9527d16e2bced731e46dcaa |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Add error_r to t_readlink and its callers |
dfa2201c6ac8ddb2d2798dee15662cfe774e644e |
|
30-Jan-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: Rename abspath to path-util |
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 |
e7d0bea63a08b08c47c4b5c187d2cb7127859657 |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure *_malloc() calculations won't cause integer overflows. |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
fa780a18c41881036af582f7a3473d6399e9d34d |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Make dovecot.list.index's filename configurable.
This is useful when there are multiple namespaces pointing to the same mail
root directory. For example mdbox with lazy-expunge:
namespace {
prefix = Expunged/
location = mdbox:~/mdbox:MAILBOXDIR=expunged:LISTINDEX=expunged.list.index
..
} |
33525312d3f45995686aa0b538dea1cd6eb936e2 |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Deduplicate code into mailbox_list_settings_init_defaults() |
4b1781e4c64be52e25b5994e5242dbe696cc7d29 |
|
20-Oct-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Use i_strchr_to_next() wherever useful. |
ac2defed599a97c4a71a9e90ba185929dfe59226 |
|
19-Oct-2016 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: clean up mailbox_list_create to improve readability
There is no reason to use mailbox_list_driver_find() here instead of
mailbox_list_find_class() as (1) we do not need the index into the list
driver array, and (2) dealing with double-pointers is harder than regular
pointers. |
bedb7f369599d112e62eed14ab692351493bf623 |
|
09-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-storage: Limit folder full name only
Before we had limit of 16 levels and 255 bytes per name
which is same as 4096 bytes. Now we limit only the total
length of the name to MAILBOX_LIST_NAME_MAX_LENGTH. For
compability reasons, we are restricting individual component
names to 255 characters. |
d9a7e950a9cd21f2b4a90ec7759fca9e8fcc7995 |
|
05-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Fixed mismatched bool vs. int/pointer handling
I don't think these fix any actual bugs. |
0175d37a5ae5a4d146ca41b684bd38d9b03683cb |
|
30-May-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
Remove t_malloc in favour of t_malloc_no0
Using either t_malloc_no0 or t_malloc0 makes it clear whether the
allocated memory is zeroed or not. |
e353d03d3643f380dc7e6dc29a512dec86b8a3de |
|
30-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Clear list error before mailbox_list_get_hierarchy_sep()
With ACL plugin enabled the call could have triggered dovecot-acl-list
rebuild, which in turn could have set list errors if it didn't have
permissions to all the mailboxes. This caused IMAP logins to fail. |
a4e2101473cfd7ce960fc49b3ce097c3f89ec2ad |
|
14-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added mailbox_list_[un]escape_name_params()
This allows calling the mailbox_list_[un]escape_name() with wanted parameters
instead of taking them from mailbox_list. |
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/' |
d3e5a14ea363264dcc7640ca7226249d0c27a793 |
|
26-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_[un]escape_name() can now be called globally |
f0d09be40bd0c4423873128ae2f88a4020075dc4 |
|
04-Aug-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: escape_char and broken_char settings weren't copied on mailbox_list_create() |
e0f57c552d2f436458163f722a7d0cc9a95d0709 |
|
05-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: After mailbox_list_init_fs() is finished, notify fs about it.
Creating a separate fs_init_finish() would perhaps have been clearner, but
it's a lot more work and usually isn't even necessary for most backends.
So I simply chose to use fs_get_properties() which is a fast call in all fs
backends and the few ones that actually care about the initialization finish
can then do their work in there. |
a41f6dd2a2434206d2a445ac73c79861d3496a2a |
|
05-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_fs_get_list() shouldn't crash if fs wasn't created by mailbox_list_init_fs() |
697ff56bf3cdc9e7989ea2a70accf866b14b64d1 |
|
22-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_fs_get_list()
Using mailbox_list_init_fs() now sets the mailbox_list pointer to root fs,
which allows the fs backends to lookup the list. Although this can't be done
in the init() function since the list is set only afterwards. |
4a14ae55292476bc0b8eb314d602a262ab094a52 |
|
20-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
Removed mountpoint checking and updating code.
After a few years it seems like it has just caused more problems than it has
actually fixed. The only thing it's been used for is to make sure that
Dovecot can't create empty user directories when the user's mail filesystem
isn't mounted. But that's supposed to be normally prevented already if the
mount root directory permissions are only writable by root.
For now the mountpoint listing code and doveadm mount code still exists just
in case people have some scripts using those. Those could be removed in v2.3.
If we somehow figured out which mountpoints existed (not so easy because
they could be only visible in userdb lookups for different users), we could
maybe create some kind of a script that checks the permissions at startup.
This would work with Linux at least:
mkdir test
mount / -o bind test
ls -ld test/var/mail # assuming /var/mail mountpoint
umount test |
d3d2e50d6217e29fbc9c72d14c812c02dee291ef |
|
18-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_mailbox() now copies the mailbox_exists() error.
Instead of assuming it has to be an internal error. |
1bf1a24a902d5861f577df3d39e27b373b12c719 |
|
01-Mar-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow up to 255 chars in a single mailbox hierarchy name.
This also reduces the max number of hierarchy levels, but 16 should still be
enough for normal uses. |
1701b354e81ff1dfd0b6c7bb4412b8d9c2b9f986 |
|
17-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_user_init_fs_settings()
Also changed mailbox_list_init_fs() to use it internally. |
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> |
625042f95d7eb71f6b94a61ea4f461866be1bef9 |
|
28-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't allow '/' for filesystem based mailbox list backends if their internal separator isn't '/'.
Basically this means that Maildir++ shouldn't be allowed to create mailboxes
with '/' in the name. |
11538e79ae94be5143d0055d4635fcdfd79a3906 |
|
09-Jul-2014 |
Timo Sirainen <tss@iki.fi> |
lib-fs: Added fs_settings.username and .session_id |
15bfe73fb3988bb80e6afe6a60b9a715c7207600 |
|
02-May-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_settings_find() now takes namespace parameter instead of user.
This fixes an infinite (until stack gets full) loop with shared mailboxes:
mail_namespace_find() -> mailbox_list_get_storage() ->
mailbox_settings_find() -> mail_namespace_find() -> ... |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
b7c7a04bc5edb8eebea3837ff624441d9fa3721c |
|
22-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Non-crashing way of avoiding fs lookups for storages without mail root. |
758d8b46f9e8fd87cf58bb4912cddf6bf28918cf |
|
22-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't do filesystem permission lookups if storage has no mailbox root dir. |
c905571984fe8ccdb6f2a266b813f19b0643a66c |
|
21-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Improved EACCES error messages for some stat() calls |
9393445a6dabd17ce62ebfc12fd73545b0065824 |
|
06-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_init_fs() to easily initialize fs.
Use it for dbox's attachment_fs. |
12b4dbf933ee54f7b96968ba150095baa985fdaf |
|
05-Nov-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added FULLDIRNAME=name to mail_location.
The difference to DIRNAME is that the name is used also for index and
control directories. |
6f970b9a0dadb80e120d017c75c637b5a3879dac |
|
21-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed listescape when escape_char was the same as namespace separator. |
4809537f0c5a2e1cee9559ec842cc869884d2cb7 |
|
18-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed crash with some autocreated (e.g. shared) namespaces. |
d2e74f2af690b8e2d536400f02f397cbed1334b7 |
|
08-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox { driver } setting to specify which storage to use. |
949fa97a4ab5c62e4db73c3973e35ae3b73a2b23 |
|
06-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
Avoid using mail_namespace.storage directly. |
8709b2fe6ec2b5ca1d90a63490f8371472062efd |
|
06-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Renamed mailbox_list_get_closest_storage() to ..._get_default_storage()
This function wasn't previously used by anyone. |
1f4399a277b861419b82758ab0462e90c00a4c41 |
|
05-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_settings.broken_char wasn't escaping 8bit chars correctly. |
64ee8113a88e5d6e3cba7b1c4abd537cc2632bb9 |
|
01-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Empty mailbox name isn't valid. |
5c95939662dc6e4317f4eec60289bb12fd51982b |
|
29-May-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If INDEX=MEMORY, return index root dir as nonexistent instead of as "". |
3d027f35398f80cf09be84b740085e607b23e764 |
|
29-May-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Reverted previous change after all. |
2d8d76a57173de7b7e1ff62f2deabd637ce908ae |
|
29-May-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't try to mkdir() empty directory with INDEX=MEMORY |
43487bb7de9e907ad61e186714956a83f5be4a15 |
|
10-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Make sure index root dir is created when mailbox list index is created. |
db7ca286e3ef53f73a3e8e46104a31247ebfe213 |
|
07-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: dovecot.mailbox.log should have used file permissions, not dir
Although this didn't actually make any difference since 0666 mask was used. |
e36574dadcac802d6780fa94ee45951e75594c96 |
|
22-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Compiling fix |
ae2b61a8c6318e56dabd44de17e227c95985aeda |
|
22-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_get_settings() |
a8dcdc2e5fe1a232c8937461e4c406174c3ca6e5 |
|
26-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Write dovecot.mailbox.log entries using virtual names, not storage names.
This file is used only by dsync, and the new dsync design uses only virtual
names everywhere. This of course means that now it's not easily possible to
use different virtual names for the same user, but nobody really did that
before anyway. The only other fully working solution would be to send both
the virtual and the storage names in dsync, but that's a bit of a waste. |
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. |
a58e63b4928017b5af123967c1c98f8bcb242a9a |
|
10-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Maildir++ layout shouldn't disallow "cur", "new" or "tmp" mailbox names. |
dbc86748934bc34826d9cc8c43d24df09b3ba402 |
|
10-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Improved "Using permissions" debug message. |
9d4c027e7de01ab948d6221bc27c9b45d32d1ea5 |
|
14-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed vname -> storage name conversion for some nonexistent mailbox names.
For example prefix=INBOX/ name=INBOX-foo would have converted the name to ""
instead of keeping "INBOX-foo". |
2eb22deb4bf53ef9f40732bea9f04b842fdff15b |
|
12-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use stat_first_parent() instead of doing it ourself. |
0bf25546c91ccafff9e2cc93368d2d25acb5c39e |
|
23-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When mkdir()ing home, copy permissions from parent if it has setgid-bit and we're using %h/~.
When using %d/%n instead of %h in the location directories, use the earlier
methods. |
2cb0a0438b625cd399a4aaa0615d69f4b54d349a |
|
23-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When creating user directory under domain, set its setgid-bit on.
The previous mkdir_parents_chown() change changed this behavior. I'm not
entirely sure if the setgid-bit is a good idea or not in here, but we'll
just continue the existing behavior. |
69af83d4e6c2c5c825a17edd7a41a4fb014caa8f |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for "broken_char" setting for escaping invalid mailbox names.
This is currently enabled only for imapc backend, where '~' character is
used for it.
Most importantly this allows migrating mailboxes from other IMAP servers
that contain mailbox names that Dovecot's imapc backend couldn't otherwise
access. |
917498e6f84969d2b93410c1e479735abe8e0ed7 |
|
12-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added optional mailbox_list.init(), which can check for failure.
"index" backend now gives a nice error message instead of crashing when
mailbox_list_index=no |
231f124bb57e1a6ffff6619eb2258d1be939a029 |
|
02-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When index mkdir() fails with EPERM, create the dir anyway with 0700 mode.
This avoids failing entirely when /var/mail/user has 0660 permissions and we
don't have access to the group. The error message is still logged. |
a7e1fd461a52bc597b7c0319c613dfbb6d3dc914 |
|
02-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed getting filesystem permissions when parent dir has setgid-bit enabled. |
360123b1b41b7aa8af6c4a91c39046be646cd349 |
|
24-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added ALTNOCHECK option to mail_location.
By default Dovecot verifies that $rootdir/dbox-alt-root symlink matches the
ALT directory location, and logs an error if not. This is mainly to avoid
accidents during initial configuration when for example alt dir was set in
global mail_location but was forgotten to be set in userdb reply's
mail_location. The ALTNOCHECK setting simply doesn't check or create this
symlink, giving a (very) small performance improvement. |
65cca8364f483126b396aeb2036dc879ad45ab8d |
|
18-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Compiling fix for previous alias symlink change |
77b5fd56e5a06d624f3ab92198272287333114f4 |
|
18-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: MAILBOX_LIST_ITER_SKIP_ALIASES now skips also "alias symlinks"
An "alias symlink" is a symlink that points to the same directory. These can
safely be skipped when iterating through all mails in all mailboxes (unlike
other symlinks that may point to external storages). |
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. |
94f84d1c3f786d1b92dd2a1507f83a2dad887c56 |
|
26-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Cleanups to mailbox mkdir() related functions. |
76b91bac787101e6b0075122ab6478dd98c8a884 |
|
26-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_root_permissions() now returns struct mailbox_permissions. |
48ce03445eaea184426156440116ca1da978bb54 |
|
25-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Improved mailbox_list_mkdir() error handling. |
e9df0f285429d2b896ecdb4cd873d25e5e895620 |
|
25-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Various cleanups to checking if mailbox name is valid. |
442b4c6c0d69e04297c00beb1a06da9855cb5ebe |
|
25-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed mailbox list backend-specific mailbox name/pattern validation.
The virtual name validity is independent of the backend. The physical name
is always used for paths in filesystem, so it can also be verified with
common code. Backend's mailbox_dir and storage's internal directories can
also be checked. There's nothing else left really. |
1f149331f29809def8f1874312b969408ea60985 |
|
25-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed unused mailbox_list_create_dir() |
d508ab8db2b0f74b5e225d199b4aaa5293342746 |
|
25-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If list escape_char is set, allow ".", ".." and "dbox-Mails" mailbox names. |
ec1b0f9b121cc0fe1085329905a47ce0aed690b2 |
|
04-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Log mailbox directory creations to mailbox log. |
3e0bae44b65f5c46989fcef3d1e07203f496327e |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed enum namespace_type to enum mail_namespace_type |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
678d0463849ba777106eb7875f27db07a5d8e3df |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Hash table API is now (mostly) type safe. |
e58f291e777b25c1286965b80e142ada6fdacb03 |
|
14-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_storage_name() shouldn't treat INBOX specially in inbox=no namespaces. |
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 |
5da1aa5197a43d83f0fb3eeb83125c7cd73d1b62 |
|
11-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
shared mailboxes: Per-user flags can now be stored in private index files.
This can be enabled by adding e.g.:
mail_location = mdbox:/var/shared/mdbox:INDEXPVT=~/mdbox/shared |
21c7e5bc983075544d8df414edf4cfb2e3c1b91a |
|
08-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Extra check to mail_shared_explicit_inbox=no |
0bd259973f98837cf0e41fdee3e2a578e51ad09e |
|
04-May-2012 |
Timo Sirainen <tss@iki.fi> |
Added mail_shared_explicit_inbox setting. |
e4cb3bfcd42f1f2c9e676ece6f7f53803f5c6a16 |
|
01-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: shared/$user/INBOX is now visible only as shared/$user |
8f70c97f7ab7b7e1683ed5cfcd96721a899c2520 |
|
23-Apr-2012 |
Timo Sirainen <tss@iki.fi> |
listescape: Don't unescape namespace prefix. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
63e207529879438e9f4412d97cdc34bdc82a3702 |
|
01-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: And another fix to previous maildir_name/mailbox_dir_name changes. |
5214b67a7dabab87da74e04bb8b227f94b95bce4 |
|
01-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Crashfix to previous change. |
318ef3683d67683173f1b552cf5f9af4375b3017 |
|
01-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Abort index/control/alt root dir creation if mountpoint isn't mounted. |
4b8a6aec5fe2daa564799867f31e39e7ea46b9c3 |
|
01-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_mkdir_root() API changed. Use it now for creating mail root dir.
It was supposed to be used for it previously, but wasn't.. |
b1f37113a5760bee842c5a7678bb5fa6f5bd8b60 |
|
10-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
Use t_strflocaltime() where possible. |
3f2dd5867a85b15555eb43a33ea5029393a45103 |
|
15-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_permissions() didn't properly erase the full return struct.
This shouldn't have caused any bugs currently. |
9b00ecffbe74fd864d0d72e6112ec53b86f619ba |
|
10-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_vname() no longer treats INBOX case insensitively.
The INBOX vname is case sensitive, the INBOX storage_name isn't, otherwise
it's not possible to access <ns prefix>/inBox cased mailboxes. |
13d98ffa534f2e7d04a832c9d0153fc9c568b878 |
|
02-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved mailbox list iteration functions to a separate file. |
7cf1c7dd3dfd989cba1ed32a8e17c1b031c4629b |
|
04-Nov-2011 |
Timo Sirainen <tss@iki.fi> |
imapc: Don't use separate indexes/ directory anymore. Fixes/cleanups to make it possible. |
1c1cecd3dfaf71b0c9499b044023e631841e88aa |
|
21-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
Added new mail_location setting "UTF8" to use UTF-8 instead of mUTF-7 in storage names.
This basically changes mailbox names to be UTF-8 everywhere where they are
mUTF-7 currently (filesystem, subscriptions, etc.) |
e200d1ba38eeebfb0b9e60150d93753ec6d823c8 |
|
15-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed debug message to sound less like an error message. |
ba36444cdf332c75ecdd2696e34c391eea75597c |
|
11-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed mailbox_list_mailbox() for backends without get_mailbox_flags(). |
fb365addee8210c28e6856e34d690dd8d1636993 |
|
11-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed unused struct stat parameter from mailbox_list.get_mailbox_flags() |
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. |
de62ce819d59a529530da4b57be1b8d6dad13d6b |
|
25-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Moved GUID code to liblib. Use guid_128_t type consistently everywhere. |
2becb54a6342cf326c25db0c9ad010983979e2b4 |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't crash on getting alt root dir, when no alt dir is specified. |
37cfbf01ccb035d24fa1cce3b6f86bbcb968dff3 |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Log alt path when mail_debug=yes |
7920a47321690c932ffd4d286cd16b4048d22d41 |
|
16-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Log alt path when mail_debug=yes |
47d5cc09738defd0020c797866e2a25a344aa65a |
|
15-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_get_permissions() now returns struct mailbox_permissions.
Also added new file_uid and file_gid fields to the mailbox_permissions. |
bd4e36a8cd7257cca7d1434c49a1e343ed7c5100 |
|
11-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_alloc_guid() for opening mailbox by its GUID. |
08ed4ab71fd2a4e800d9025a736f0f46b771ea90 |
|
10-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixes to handling INBOX/ namespace prefix. |
9ba91492d2eb29199674b669c673332ae2b01438 |
|
29-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_mailbox() now returns INBOX as nonexistent if it physically doesn't exist.
This is important for MAILBOX_LIST_ITER_NO_AUTO_BOXES to work correctly with
Maildir++ layout INBOX. |
be110f0a3888a24282f06820ec0b5068d2b8f906 |
|
02-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mkdir APIs changed. |
0b25846ba794ce19536a24d4065beaf2a0bd9464 |
|
30-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_delete() for a symlink now removes the symlink instead of expunging mails. |
76a8438e7420ae212ac5a37c20312738e04aa63e |
|
21-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't try to create /dovecot.mailbox.index when indexes are disabled. |
db8b0a3f74a20528d66a3c4be7df920e5c4554c2 |
|
10-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow creating a secondary mailbox_list for a namespace. |
dc5606fb66d30a659459446b6ca1a8b4f1146052 |
|
10-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Moved most of listescape plugin functionality directly to lib-storage.
This fixes actually opening escaped mailboxes. The plugin may eventually be
removed and replaced with a setting. |
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. |
a5c81d77e6a496f1ab5eabed2e15e43ee9c3227e |
|
19-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
fs layout: Fixed crash on listing % when namespace had a prefix. |
a0cda1ea5c31b5d28e4d6705a0d5cb8191f3d760 |
|
12-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixes to mailbox_list_iter_update() |
688d869f3449827ac9b5a0a02dbc1b27177b6d20 |
|
12-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_mailbox() should have replaced info flags, not updated them.
Many callers didn't have the flags cleared before calling it. |
9b2bbd89073e5b78f3f39a19f3f8d7c6d03bbd4c |
|
12-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When listing subscriptions, make sure children flags are returned if requested. |
4ba962c3e78f140facdcfb1e093c4c46de75ae24 |
|
11-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed mailbox_list.subscriptions_refresh() API to be more flexible.
The new API makes it easier implement subscriptions=no to a backend that
doesn't use the regular subscriptions file. |
d06c46087e9e6e66bbbbb9df1d5b33154349515c |
|
11-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: When creating a new mailbox, get permissions from its parent mailbox, not root. |
cb933f0a570a9cef5c975eadb818aa6b1002a269 |
|
05-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Crashfix. |
b13f738e8eb3f24dc2abf2c804f954b4d864ac6f |
|
02-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Cleaned up subscription listing internally.
The subscription listing code is now mostly separated from the mailbox
listing code. |
e5aa8d4c9bdda79c2db03391ec45b37bf774df14 |
|
01-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Merged returning dir mode into mailbox_list_get_[root_]permissions(). |
636f017be100bce67d66fd3ae1544a47681efd33 |
|
01-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox virtual names are now in UTF-8 format, not IMAP mUTF-7.
Plugins that use mailbox names in configuration now take them also as UTF-8
rather than mUTF-7. |
c58c12049c883b281c088d47a2a7278c21c390e1 |
|
24-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Give a better error message if mail_location has INBOX but no mail root dir. |
494a5de15db3b2806ab31d5ecc3e1c306ae14d06 |
|
23-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Recent changes accidentally made INBOX case-sensitive. |
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 |
b30f98f260924a50343c4d0493a7c4fe5e714d0f |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Crashfix on trying to create index root dir. |
306cfd77100131c08b243de10f6d40500f4c27c6 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Replaced mailbox_list_get_name_status() with mailbox_exists(). |
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. |
d450553148026d83f1c672d15b27c451edd726dc |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed subscription name validity check from lib-storage after all.
It could have broken when subscriptions were being set for subscriptions=no
namespace. |
7fd8e15822ffce063df2927e0c86cd904df86678 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox directory creation didn't properly enforce that the name was valid.
The name was checked against "valid existing name" rather than "valid create
name", which mainly meant that the name could have contained control characters
and other things that weren't really intended. This couldn't be used to
cause any security holes though. |
43a4450c3b9d995a68f1f0dac129c5a63ae2a8ae |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed unused mailbox_list_get_mailbox_name_status() status codes. |
510c82e8330503b47060869c53b96eb57b482583 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't allow subscribing to invalid mailbox names. |
1c1e571f549f09f6547ed142f4b3a725dd9f7245 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox directory creation didn't properly enforce that the name was valid.
The name was checked against "valid existing name" rather than "valid create
name", which mainly meant that the name could have contained control characters
and other things that weren't really intended. This couldn't be used to
cause any security holes though. |
9abf5be0962538e1f6f5c73c838ff677341da0c9 |
|
09-Nov-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed expanding "~" (without '/' afterwards) in mail_location |
5a0fc34c5cc525334c5a10531713017ae321c573 |
|
04-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't write to dovecot.mailbox.log if setting subscription didn't actually change anything. |
a91bd6256b33729531c33ff8bc66ee1ae95840f9 |
|
14-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_create_dir() |
6600c05e2ab38e9f662582b63c56b0c980a03748 |
|
06-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't fail with "maildir_name not supported" when using empty DIRNAME= |
3f3260616dd0132974d18edf3fdbbb4abc45b1c3 |
|
05-Aug-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed mailbox_list_get_hierarchy_sep(). Its usage wasn't correct.
Especially with listescape plugin loaded the function was returning the
wrong separator. list->ns->real_sep should be used instead. |
7fc0f80480063a9d4cb9e8c07b50db2a5627799e |
|
22-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
Fixing my english: s/non-?existing/nonexistent/ |
f7ee94201b23b4bd5764cb85cb51d5c995e475ec |
|
22-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed mailbox_list_mailbox() for INBOX in under non-root mail dir. |
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. |
4d84348ffcbb60de566108562c95ad64629e7a53 |
|
07-Jul-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Make sure index directory is created early enough for mailbox.log
For example if subscriptions were added before any mailbox was opened,
the index dir may not have been created yet.
--HG--
branch : HEAD |
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 |
c19f0dd4d274c15ef7b592dcc9d8c2c8c1e22abe |
|
17-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox list iter: Require MAILBOX_LIST_ITER_VIRTUAL_NAMES flag.
The backend code will be simplified later by removing two code paths for
virtual/non-virtual names.
--HG--
branch : HEAD |
94d8e51119003d2bc5a100c663f90141f297385d |
|
14-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Use macros instead of magic '0' and '1' characters.
--HG--
branch : HEAD |
1433bf361ddb0bba8878c8ada5726d0284edad57 |
|
14-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_get_unexpanded_path(): Don't crash if namespace location is already expanded.
--HG--
branch : HEAD |
4a514fb20e04df397842cde11cc9ea92abfe9728 |
|
11-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_get_unexpanded_path(): Don't crash with -o mail_location=..
--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 |
e0ca8f2484847b57e20798a9f9c7040708696a90 |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_get_root_path() to reduce code duplication.
--HG--
branch : HEAD |
b365bd121cdc87f63e1dd47c5085a27091118e00 |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Code cleanup.
--HG--
branch : HEAD |
6b8bcce7a001076605cb2cfdca8507204c88f376 |
|
19-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_list_iter_init_namespaces() didn't match INBOX pattern correctly.
--HG--
branch : HEAD |
0910ea0672c0295c442eb686cc41e98656831f37 |
|
29-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Create all files/dirs with u+rwX mode, even if source file/dir doesn't have it.
This is mostly important when creating index files for read-only mailboxes.
--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 |
81fa2cf342657ee5ed02b7b36014dc08a254b006 |
|
06-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_mailbox(): Avoid crashing with shared namespace prefix.
--HG--
branch : HEAD |
e22efc90e109ade2936eea0b062a99480310fd41 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_mailbox(): Don't show namespace prefix as selectable if it points to INBOX.
--HG--
branch : HEAD |
2a6dcd984104fed84bed8795ccdfabb20e41ce52 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Avoid crash with pointless configs.
--HG--
branch : HEAD |
a24519c36d5f8fa22f58b2c693ba547e8d175a54 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added "none" mailbox list driver.
Fixed the most obvious crashes when using the driver.
--HG--
branch : HEAD |
b6eced3d628ad0c50a3cbc9f966da0edc20108ab |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_mailbox(): Fixed INBOX and root dir lookups.
--HG--
branch : HEAD |
af86c8415338fc2ea1819dc091b971c93cbee5d2 |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
Don't crash when trying to list shared namespace prefix.
--HG--
branch : HEAD |
ff1777f61db8b45c72d8bcb843f9106eb0227ab6 |
|
18-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mail_full_filesystem_access=yes: Replace absolute path with mailbox name whenever possible.
For example "foo", "~/mail/foo" and "~user/mail/foo" can all point to the
same "foo" mailbox. When accessing it via "foo", it may have different index
settings and such, so convert the other forms to it whenever possible.
--HG--
branch : HEAD |
6d931bbce16786df431e9ae8201a78a95084316d |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Memory usage optimizations.
--HG--
branch : HEAD |
dca6d617a23e3f93af3b8df59acb46478179fe55 |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed mailbox_list.iter_is_mailbox() API.
--HG--
branch : HEAD |
2649b237dd4690575e75a30b2bf3b39ebd37b835 |
|
14-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Mailbox renaming API changed.
--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 |
ed704d95cc94390bba7ebf085945caf5957b0c9f |
|
08-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mailbox_name_get_sha128() truncated the returned GUID too early.
--HG--
branch : HEAD |
ac26a4607cb12b156f6a42f1ead2881bedd43d94 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Moved mail_index lookup cache from lib-storage to lib-index.
Removed some code duplication as a result.
--HG--
branch : HEAD |
27586e4785d56aeb76e1fd96af8db799688dc64a |
|
02-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Don't ignore :ALT=path in mail_location.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
2f30b72d49fbff0c4096125c139e4bdfef45669c |
|
31-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mailbox_list_delete_dir() to (try to) delete a \noselect mailbox.
--HG--
branch : HEAD |
9c66dd5c3e2ba484a5c7cdb98a139bda31fdfaa4 |
|
31-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed mailbox_list_get_guid().
Directory GUIDs are pretty pointless.
--HG--
branch : HEAD |
3fe67ec75ccae1230bb9eb9f16affc48377f6441 |
|
21-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
dsync: Write mailbox changelog records using original timestamps.
--HG--
branch : HEAD |
04a5fcf56cf85ac9de624095ee8457b63c764c5c |
|
17-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't clear errors unnecessarily (and inconsistently).
--HG--
branch : HEAD |
32f4b9ab23148bec295196a8029a43ff89ce124d |
|
14-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox log: Create file with correct permission.
--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 |
5a0b68eeaf48cd1655057f36f19357146bf08e1d |
|
20-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_set_changelog_writable().
--HG--
branch : HEAD |
78bb4a443b4ca97ce27976916953e4898aa8a125 |
|
14-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Delay initializing mailbox changelog index, so mbox has time to override its path.
--HG--
branch : HEAD |
0185427dd52fddec6fc76d6e99c7659620d4366e |
|
29-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Added support for mailbox directory GUIDs.
--HG--
branch : HEAD |
e5acc283bf030b0b5c79ca4e52d315c516a299fa |
|
16-Oct-2009 |
Pascal Volk <user@localhost.localdomain.org> |
Log debug-level messages with i_debug().
--HG--
branch : HEAD |
5c597df6aa8d81de4053c6986fab7739f3b44b20 |
|
28-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
mail_location: If it ends with ":", ignore it instead of adding ":" character.
If ":" is really wanted, it should be done with "::".
--HG--
branch : HEAD |
9f1a154d6f436e67f22f737f66bb148b502d4d2a |
|
01-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Allow selecting namespace prefix even when list=no.
--HG--
branch : HEAD |
93107c0447855ce051cb4a2215ac1089536110ca |
|
09-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Don't crash when listing shared namespace prefix.
--HG--
branch : HEAD |
6b067886457724ca13d81e869240500c5bd5d7e2 |
|
07-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Disallow control characters in mailbox names when creating them.
--HG--
branch : HEAD |
37847ec8eaec9ad55c9df10ae109efe7b37ac573 |
|
06-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fill mailbox log with mailbox delete/rename/(un)subscribes.
--HG--
branch : HEAD |
6bc5fed79741503437c6d46d9f282b66bd029c6b |
|
06-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_get_guid() to get/create directory GUID.
Directory GUIDs are mainly useful for dsync to identify \Noselect mailboxes.
--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 |
472369cba85d9f7c995dda60e7cd01d78b4a960a |
|
08-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_create_parent_dir() and used it when creating subscriptions file.
--HG--
branch : HEAD |
94b0ff77495c3ed14bdd4b5d7ae1eb37e8c9efb5 |
|
08-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mail_location: Added support back for ~user/ expansion in paths.
--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 |
ebded144e74a668973ec9ba6e7e169d4e6dc766c |
|
25-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Increased some initial memory pool sizes.
--HG--
branch : HEAD |
547847191d4a95cd267fc846a1ca3c2111214719 |
|
23-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox list iteration: Added MAILBOX_LIST_ITER_SKIP_ALIASES flag.
--HG--
branch : HEAD |
c1d19144dd7b1de6822df6ed1d10af0c9cb38840 |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
mail_location: Allow using ":" characters in dir names by escaping it as "::".
--HG--
branch : HEAD |
1d2b188f0eedc3cab6e27ceac5425a037f38042e |
|
15-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox opening and closing APIs changed.
--HG--
branch : HEAD |
563273bdac80393af63b9520cbf4d24cc0efd028 |
|
03-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
mail storages can now be shared between namespaces.
--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 |
93688bfedcfb2b9c02750b8d4d409123a386de5c |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
More group permission handling fixes.
--HG--
branch : HEAD |
490f66d6476d51cc02333d6eb398a5cd94b67f48 |
|
01-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
storage: Create index/control root directories using same permissions as mail root.
--HG--
branch : HEAD |
91b203fd2132510a47a4b34252c0ae0efd688a19 |
|
23-May-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented initial support for renaming mailboxes across namespaces.
--HG--
branch : HEAD |
ff26037994e5d77049aba7434dbe138f6474504c |
|
01-May-2009 |
Timo Sirainen <tss@iki.fi> |
When :MAILBOXDIR= was empty, we might have appended extra '/' to it, which caused problems.
--HG--
branch : HEAD |
c42286c1274b0fd02a1ba636106a2977a94b55ef |
|
18-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
MAILBOXDIR changes broke some setups.
--HG--
branch : HEAD |
5494a6bc149da8f02fd25c0434a9d612ac33f659 |
|
12-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Added :MAILBOXDIR= to mail_location to specify the root dir for mailboxes.
--HG--
branch : HEAD |
e91543761d0b7b97a1dc28e036e44d76405545c2 |
|
05-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_get_dir_permissions() returned broken permissions if root dir didn't exist.
--HG--
branch : HEAD |
a1d8f53f21be1b5755836fe3ff9faa08e3d08843 |
|
12-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Added :MAILBOXDIR= to mail_location to specify the root dir for mailboxes.
--HG--
branch : HEAD |
6dd77763f5451269ace733579cf58f2f3b18bca4 |
|
26-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Creating directories based on mbox file's mode dropped +x permissions.
--HG--
branch : HEAD |
106b804c819443791f1324f8bbe34429eeea6a13 |
|
22-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
mailboxes: Copy root directory's +x modes for newly created dirs perfectly.
--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 |
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 |
407453d06e5622ac3bf099cc76bfcbfb5860b444 |
|
23-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed crashing with virtual mailboxes.
--HG--
branch : HEAD |
25f7517d84d5a883ce2dab8b9900259b2463e8d0 |
|
21-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed deleting control directory when it wasn't the same as index directory.
--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 |
ac4e6609cbdca594db1b1c02afb1e372ab22e060 |
|
16-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Made CRITICAL_MSG* public to MAIL_ERRSTR_CRITICAL_MSG* in mail-error.h.
--HG--
branch : HEAD |
4321f6c969e7b8f6b243ff5bb6b8d297921676f6 |
|
15-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Implemented imap-response-codes draft.
--HG--
branch : HEAD |
bbd0a870f8639767e4e4011d2aedadac08d5c66f |
|
15-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed dbox to work with Maildir++ layout.
--HG--
branch : HEAD |
e28fa207d1a097fa6e4a867f74ee0761472ef1ce |
|
01-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Enforce valid mUTF-7 names when creating new mailboxes.
--HG--
branch : HEAD |
e7157fa0ad659fa7984f3e6c59c195221c53ac64 |
|
25-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Fixes to mailbox list iteration (fixes some issues with virtual mailboxes).
--HG--
branch : HEAD |
02e61e13a8360a9d3ec92c5fa5ae60c0f0181b71 |
|
25-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
If a missing home directory is tried to be used, fail the namespace creation.
--HG--
branch : HEAD |
06f2599faace2943684f7b3d0de2bda6c60457c8 |
|
09-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Shared mailboxes: Don't crash in some systems when debug logging NULL root_dir.
--HG--
branch : HEAD |
96f2533c48ce5def0004931606a2fdf275578880 |
|
30-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Created mail_user_[try_]home_expand(). Used them for expanding mail directories.
--HG--
branch : HEAD |
de486b59018016977015ef42e6071155b60e82e1 |
|
08-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_iter_init_namespaces() for listing mailboxes from multiple namespaces.
struct mailbox_info now always contains the listed namespace.
--HG--
branch : HEAD |
aaa340328f0c43b3ebdedd7bded70521d3f7a167 |
|
21-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fix.
--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 |
c78e7a94528078728cc639b26a1c83e11b4d7e1b |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
If mail_debug=yes: Log which per-namespace file permissions are used.
--HG--
branch : HEAD |
68a4946b12583b88fa802e52ebee45cd96056772 |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added more consts, ATTR_CONSTs and ATTR_PUREs.
--HG--
branch : HEAD |
4366a21968093172d9b757fe6894b1ee8916434e |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_iter_update() was always setting subscribed flags to processed
nodes. Changed the API so the flags can be specified.
--HG--
branch : HEAD |
8a0ad174adb1eb5108511b90e97f4e5f9089b0ee |
|
15-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes
--HG--
branch : HEAD |
266697d2af982a9e52573404a1dd9cf0898bf43c |
|
15-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes
--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 |
1d266a7419fafa25f3505a12217452a8c647074f |
|
05-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling INBOX with non-INBOX namespaces.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
c040ee67d0ac0fb7375bb543965bf67dcae6affa |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_get_global_temp_prefix()
--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 |
3ac0d8763b06a39c95187fe6170b1bf822b28a1f |
|
18-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
If we can't delete the index or control directory, give a nice error message
instead of internal error.
--HG--
branch : HEAD |
bc564f1d3d953cf724828322b11ae89e0f59ffc9 |
|
18-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
NFS cache flushing APIs changed and backend implements it a bit differently.
Hopefully this works now more correctly.
--HG--
branch : HEAD |
509daf558a54d7d1c8006c54ef799cb99e31662e |
|
11-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_get_permissions(): If group doesn't have any permissions, don't
bother returning any group either.
--HG--
branch : HEAD |
32ee977e189266744ef69ac4e832fd3111d6f949 |
|
11-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Delay creating directories until we really need them.
--HG--
branch : HEAD |
d02d34e138e32b4266f5a403d6c51d7803bf322f |
|
11-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Simplified mailbox_list_get_permissions() a bit. Now it returns only
permissions for the root directory. Also UID isn't returned anymore.
--HG--
branch : HEAD |
4645cc6c911a95991d7af43b40f88e99506ea5e9 |
|
03-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Support for looking up dbox files from an alternative directory if they're
not found from the primary directory.
--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 |
adb6413686e52e00dded4932babcc08ff041876b |
|
17-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Moved mail_location data parsing to a common function. It supports now also
specifying SUBSCRIPTIONS and DIRNAME.
--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 |
1701e3f91107051b1704721bf1dc1e32491faaf9 |
|
09-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Split mailbox_list_init() to _alloc() and _init(). _init() is called only
after storage backend has overridden the wanted functions, so plugins can
override them.
--HG--
branch : HEAD |
2dd39e478269d6fb0bb26d12b394aa30ee965e38 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_storage.create() now returns error message string. Also fixed handling
"/" and empty root paths.
--HG--
branch : HEAD |
d92f33f13830ba23d814342bf3ea8db721a15bb1 |
|
15-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added support for multiple mailbox list patterns.
--HG--
branch : HEAD |
ff4bb2dfb5714eeb0408d3bb862de1646351d097 |
|
13-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
compiler warning fixes
--HG--
branch : HEAD |
533bfba437e4120aa29dd45bca2aa87e30ee28a2 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
s/mask/pattern/ for mailbox listing.
--HG--
branch : HEAD |
61e84692827b6a64912343f515c984853021483a |
|
27-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_list_iter_next() returns now const pointer.
--HG--
branch : HEAD |
8fbb781d749be44e70434f4f70eff09956d58163 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes for INDEX=MEMORY
--HG--
branch : HEAD |
ff7056842f14fd3b30a2d327dfab165b9d15dd30 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Error handling rewrite.
--HG--
branch : HEAD |
5694eeb99b69dea8033ca77ad69743c6b4871370 |
|
11-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_list_get_permissions() and MAILBOX_LIST_ITER_RAW_LIST.
--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 |
740dfc753f1f087f0c41082e4c551053129e875d |
|
31-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
assert updates
--HG--
branch : HEAD |
f97cacf16251b42f530c6a28686cc8c9aa7df3a2 |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
cleanup
--HG--
branch : HEAD |
7d7917f3b54749f667d8c98e881a965ae84f033e |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
cleanup
--HG--
branch : HEAD |
25d9db0c00e8041165540e0829d7eab7548cbaa5 |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Verify that mailbox name is valid before deleting it.
--HG--
branch : HEAD |
5160580b0ec3f3288a320987abdf12a990f09df5 |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Moved some common code to mailbox-list.c
--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 |
7e459d4ba3add84f31a72992efc33bd53f2c655d |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Create index/control dirs if they don't exist
--HG--
branch : HEAD |
00efa7d99981e18e286c02b18c1163dde18ee521 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Type safe callbacks weren't as easy as I thought. Only callback(void
*context) can be handled generically. Others can be handled specially, but
only if all the parameters are pointers, otherwise eg. int parameter can be
replaced with long without compiler giving any warnings.
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
d9fdacd5fb3e07997e5c389739d2054f0c8441d8 |
|
06-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Lock handling changes. Everything goes through file-lock API now and there's
only a single enum listing the different lock methods. This change exposed
some unneeded (or possibly even wrong?) unlock calls in index file handling
which were fixed.
--HG--
branch : HEAD |
5fb3bff645380804c9db2510940c41db6b8fdb01 |
|
25-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Mailbox list indexing and related changes. Currently works only with
maildir and mmap_disable=no. This allows doing STATUS to synced mailboxes
without opening their index files at all.
--HG--
branch : HEAD |
220e21750948941dc6e33b8f11b552fa21d7f81e |
|
18-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes
--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 |