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. |
e5d60293a233970ecc7933ea9d6bf63cc4637022 |
|
18-May-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
virtual: Match any metadata condition
The old code ignored succesful earlier matches for
patterns, and stopped looking on first non-matching
metadata pattern. Now it breaks on error or on first
matching pattern. |
61cf001f1944d92eb25f113ba4c08985d6e30d53 |
|
03-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add mailbox_set_reason() calls
Added to the most important places. |
d4847b921058734e0668bc7690465c91523d9ec0 |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Log mailbox_list internal errors |
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 |
391970ed208650d807191e5f2fc403f20f76ce18 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual: Fixed error handling when matching mailboxes by metadata. |
e93184a9055c2530366dfe617e07199603c399dd |
|
06-Jun-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib: remove autoclose parameter from [io]_stream_create_fd
Use [io]_stream_create_fd_autoclose() for autoclose. |
7bb371485650002935888b2f9b72b23aba5a5d9a |
|
29-May-2016 |
Stephan Bosch <stephan@dovecot.fi> |
lib-imap: imap-parser: Made the fatal result parameter of imap_parser_get_error() optional. |
27f174f3b836b18cb81cd1e6534031f1f3355348 |
|
13-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual plugin: Added support for filtering mailboxes by METADATA entries.
Usage:
<mailbox patterns as usual>
[-]/<metadata-entry-name>:<value-wildcard>
There can be multiple metadata entries. All the entries must match.
For example:
*
/private/vendor/vendor.dovecot/virtual:*
-/private/vendor/vendor.dovecot/virtual:ignore
This matches all mailboxes, which contain a virtual METADATA entry that has
any value except "ignore".
Note that the current implementation requires still opening all the mailboxes
before matching the METADATA entries. This could be avoided in v2.3 with some
lib-storage API changes. |
28d6a9ec6b055ad6141f0961fe971543f781d4a6 |
|
13-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual plugin: Cleaned up behavior of '!' prefix with '+' and '-'
It makes a bit more sense now. Mainly the difference is that "!foo*" means
to save mails to a mailbox called "foo*", instead of including mailboxes
matching "!foo*" pattern to the virtual mailbox. It's unlikely anyone was
relying on this behavior. |
77a2367051db01c6fc8cc575242d8a7f5b2c1d42 |
|
13-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual plugin: Don't treat "+-box" as a negative entry.
This was already documented by wiki to work as a mailbox named "-box",
although it didn't actually work that way. There wasn't any practical
difference between "+-box" and "-box", so this change is unlikely to break
anyone's config. It was mainly done as code cleanup. |
fb297df915b623e8d83632abcd42182cbd86174a |
|
13-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual plugin: Minor cleanup/fix - find the namespace after we have processed special prefixes.
We already skipped over them earlier, but the logic wasn't exactly the same
as when they were actually being processed, so there could have been some
unexpected mismatches. |
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/' |
dd37e2ff291fbebac1b94e8aad50f3bdf7531049 |
|
24-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
virtual plugin: Auto-close mailboxes by hooking into backend's mailbox_open()
This is a more reliable way of doing it. The earlier version had problems
that all the backend mailboxes could be opened when doing a search on the
virtual mailbox (for getting the GUID of the mailboxes). |
a5056d1e9dd4c430390f8b1dc874a95a2fa16380 |
|
19-Jan-2015 |
Timo Sirainen <tss@iki.fi> |
virtual plugin: If mailbox list iteration fails, log the error. |
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> |
c64840e98649f906a7b587c259d5b9e697c37498 |
|
03-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier |
762d8af0b3fee4aef634f413ec61baccab827b37 |
|
08-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
virtual: Allow "*" to match inbox=yes namespace if there's otherwise no prefix="" namespace. |
676a42c1de72aaa6149d1ffd1d26c862951798a3 |
|
08-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
virtual: Make sure virtual mailbox doesn't try to access itself as a backend mailbox. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
8536cd46be13bc18aa538b279d7fdba7d54e268f |
|
29-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
virtual: If virtual mailbox has no config file, assume it's just nonexistent.
Most importantly if the virtual namespace root doesn't have the config, it
should fail with MAIL_ERROR_NOTFOUND rather than MAIL_ERROR_NOTPOSSIBLE. |
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. |
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. |
8a524e87e44ae629cf90262e92f7972ea3450c35 |
|
11-Dec-2012 |
Timo Sirainen <tss@iki.fi> |
virtual plugin: Don't fail if mailbox patterns don't match anything. |
a8fe899601735459641edae975c0fa08be8482e2 |
|
16-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Removed all the "enum foo;" declarations.
They didn't seem to be very standard. Old gcc versions warn about them and
C++ code doesn't like them. |
3e0bae44b65f5c46989fcef3d1e07203f496327e |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed enum namespace_type to enum mail_namespace_type |
402e999a878e0cc41a0afb830fea0a93afc75f0d |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed struct mailbox_info.name to vname. |
4307c886579381dbb1897ea1388ae6978c96f560 |
|
27-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Changed i_close_fd() API to set the fd to -1 after closing. |
cb78bd2ad54e402c1f53930b41e2295683bda90b |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced (void)close(fd) and close_keep_errno() with i_close_fd().
i_close_fd() preserves the errno and logs an error if the close() fails. |
77d20bf99719739c8a3d1157ccc28f37f6032f94 |
|
21-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
virtual: "*" wildcard matches now also autocreated shared namespaces.
Basically this makes "shared/*" work as intended for shared namespaces. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
428fb4dc39c6e9b2eb36216c396dad6096a65f8f |
|
09-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Added reference counting to imap parser. |
d798962a54c5cda054d57a0cfc7e5f47dfa20f6e |
|
31-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Changed header/body searching to do search key charset translation earlier.
This cleans up and simplifies error handling. |
2128e2bebe4af374561ea2846b9d3eca3cde233e |
|
16-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
virtual: Support +mailbox entries that clear \Recent flag from messages. |
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. |
f67059a0fb0ea694dfa49910c5af2ff0f60ea18e |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
virtual: Allow search rule continuation lines to begin with tab as well as space. |
ebc7480f2d7f235f2fd58f91b52f8a19f53ca26a |
|
04-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
virtual: Allow search rule continuation lines to begin with tab as well as space. |
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. |
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 |
ca98892a6b8a30ffc1fe26fcf02c7d59e3204e7e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Lazily look up mailbox path and permissions. Added functions to get them. |
722957a2f5974a4b38bebc89a1886badf2697cdc |
|
29-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
virtual: Don't unnecessarily stat() the virtual directory.
Its existence is checked automatically when trying to open dovecot-virtual file. |
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. |
9ec13676a657d974f6aaf85c6720c27f29ef8eb9 |
|
21-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
virtual: Fixed a crash when freeing an allocated, but unopened mailbox.
Based on patch by e-frog.
--HG--
branch : HEAD |
7a7d2aa11e46195e2d92d6c337d7e78052a5ce67 |
|
04-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Avoid including mailbox-list-private.h everywhere.
--HG--
branch : HEAD |
c3001a6476bae22fc0f55abc73014211b0775d98 |
|
01-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
virtual: Fixed looking up namespace for save-destination mailbox (!ns/box)
--HG--
branch : HEAD |
84078771687fabf75819918f0f3aecdc3ed08b36 |
|
07-May-2010 |
Timo Sirainen <tss@iki.fi> |
Mail search register getting API change to fix a doveadm crash bug.
--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 |
5c2d695acf9f95ae0dcdda89c4d2391ceda4d672 |
|
20-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for mail search input parsers. doveadm now uses command line parser.
--HG--
branch : HEAD |
4fc52b7b25c3d3f42348903e0154840f8761f306 |
|
13-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added search query building from human-friendly input.
--HG--
branch : HEAD |
e6530ec29fe1b8642c06cb2bef7991c1a604c51d |
|
08-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
virtual: Fixed showing error messages for mailbox open.
--HG--
branch : HEAD |
eca30f1fe8556c46abc75c94d03f59b2e89d4162 |
|
08-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
virtual: Don't crash when trying to reopen a closed mailbox.
--HG--
branch : HEAD |
d22301419109ed4a38351715e6760011421dadec |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: *_mailboxes don't descend from index_mailbox anymore, it's now a context.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--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 |
6b265a8a9d1ce3b3a8033445e99c9035d62ffbc7 |
|
28-May-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: If search rule is missing, use SEARCH_ALL.
--HG--
branch : HEAD |
7f3b826a89bcb7a72759912e99f574b28309fe1b |
|
18-May-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: If we can't open a mailbox that was added using a wildcard, just skip it.
--HG--
branch : HEAD |
3b1bf68d26c9f2fe4a649f40cf375d52acffc81c |
|
18-May-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Fixed handling multiple mailboxes using the same search args.
--HG--
branch : HEAD |
075a53973bbdf15cc3bd2ba4872f96f3f2f00574 |
|
02-May-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Open the dovecot-virtual as readonly, we don't need to write to it.
--HG--
branch : HEAD |
67770c0874918e3b73bbd1ff75b5ec91790d51dc |
|
01-May-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Allow search rules to begin with TAB instead of space.
--HG--
branch : HEAD |
867990944f0bda3a5bd70895d5a5ebfa611d0505 |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: If last search rule was invalid, we gave "Unknown error".
--HG--
branch : HEAD |
1330f999b8076b2f8eed2572c667f7482a555c1b |
|
16-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Fixed using !INBOX when INBOX wasn't in prefix="" namespace.
--HG--
branch : HEAD |
fb5b342aab25d6dc96df14774eb5215dc5481546 |
|
31-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Don't fail if using -negative boxes.
--HG--
branch : HEAD |
899ebb8ba3fbebaafd3e431943283719ce2b106d |
|
26-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Give a nice error message if mailbox's namespace isn't found.
--HG--
branch : HEAD |
c115c742f730e312d6b6ab5064595cd0d8b4e26e |
|
27-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Added support for saving/copying messages to virtual mailboxes.
--HG--
branch : HEAD |
107f6e87c6edcb29cf87195357144dea3fdda9af |
|
27-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Avoid getting duplicate mailboxes when expanding wildcards.
--HG--
branch : HEAD |
5e203e846133e28d0e36ca70ef1c30e72a922c14 |
|
21-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
virtual: Crashfix on a specific configuration.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
b8835b8a21c617ceb82ddc5a176243faf36aa8f7 |
|
30-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
fts: Added support for handling multiple namespaces.
--HG--
branch : HEAD |
3852872e6954b7132e637294132005e86b8ebd4a |
|
29-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Finished making full text search indexes work fast with virtual mailboxes.
--HG--
branch : HEAD |
d4854db53e9c141db3d02821ed857bea101b1cc2 |
|
19-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Changed all config file readers to not ignore the last line if it's missing LF.
--HG--
branch : HEAD |
834f2b9f60d93e4c7dfc6992e692f5b7213a1b11 |
|
07-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
virtual mailboxes: Support negative mailbox patterns/names.
This allows for example "all mailboxes, except Spam".
--HG--
branch : HEAD |
4a6f18b8c03dbb81b1e4f90242fe7788589d7876 |
|
25-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Virtual mailboxes: Skip non-selectable mailboxes when matching wildcards.
--HG--
branch : HEAD |
bcdb6c0bd2e7dbb34b306d3d8c2383a7d7654612 |
|
12-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Virtual mailboxes: Configuration parsing fix.
--HG--
branch : HEAD |
7e209b78ca757294dbbc15604c88673b3a6b0c39 |
|
12-Oct-2008 |
Timo Sirainen <tss@iki.fi> |
Virtual mailboxes: If CRC32 of the search strings changes, rebuild the mailbox.
--HG--
branch : HEAD |
66c0f96d704f09c88dd03b0ee13a3e9711ffe593 |
|
07-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Virtual mailboxes: Fixes to handling invalid configuration.
--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 |
111a7dda02defa4d612468cfc3c40da5240645af |
|
08-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
virtual mailboxes: Added support for using wildcards in mailbox names.
The wildcards don't span namespaces so that "*" won't also match
mailboxes in virtual namespace.
--HG--
branch : HEAD |
4ece61edd7c266a4b8f3b290a7f0a3cb3d13ca0f |
|
17-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Virtual mailboxes: Speed up initial search result building using modseqs.
--HG--
branch : HEAD |
24e5e4526d8f5cbc056ab97fd0d154d0936d7a5e |
|
13-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added initial support for virtual mailboxes.
--HG--
branch : HEAD |