6a0855a04d75bce3c0a2f68517d02f86ae72087f |
|
13-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Add mail_index_transaction_commit_result.changes_mask
This can be used to determine what type of changes were committed in a
transaction. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
a102d189881a35d72ac3106a9e7e00577ae69310 |
|
20-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-index: Unconstifty pointer array
clang complained about the extra const. |
26e5bdf37d7d0deed1e2e8483366c83631b9d251 |
|
20-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-index: Add missing initialization for chained hooks |
2b8ff102f5117f917248f98ccbdc8e6a6af83c87 |
|
20-Feb-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-index: Allow multiple hooks for transaction creation |
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 |
9e6d83a3ef6abb393eeebca423cfd0d8cb08d430 |
|
18-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Added mail_index_transaction_get_highest_modseq() |
02c335c23bf5fa225a467c19f2c063fb0dc7b8c3 |
|
12-Jan-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: freshen copyright
git ls-files | xargs perl -p -i -e 's/(\d+)-201[0-5]/$1-2016/g;s/ (201[0-5]) Dovecot/ $1-2016 Dovecot/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
46b823ac3bce2c0f9f0fc73911e48d3a77b04fbe |
|
08-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
Replaced unlink() calls with i_unlink*() wherever possible. |
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> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
ef4d0eafab4d26bba047551db1e23ceff8aa9404 |
|
15-Jan-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Keep track of views and transactions in linked lists.
This makes debugging easier. |
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. |
4253a4a66323bc5ff1103af7d7f77fe7c78b9b2b |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Fixes to replacing message's keywords. |
93d08c32afb545ba32e9a1d973b34756c4b01983 |
|
26-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: mail_index_transaction_lookup_latest_keywords() didn't work properly.
It wasn't actually looking up the latest keywords. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
515f81466f673c1b4f72e053f1a9686e6fca6b61 |
|
03-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Fixed MAIL_INDEX_SYNC_FLAG_AVOID_FLAG_UPDATES with concurrent keyword changes.
If session 1 saw keywords="a", session 2 added keyword "b" and session 1
(without the client syncing session) replaced flags with "a", the "b"
keyword wasn't removed. |
e169102fb38ce788b76c2a344bee7d77079dea05 |
|
03-May-2012 |
Timo Sirainen <tss@iki.fi> |
Added MAIL_INDEX_TRANSACTION_FLAG_SYNC |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
491178793199e62320f7bc6292e7b8fd843ae5bc |
|
09-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: MAIL_INDEX_SYNC_FLAG_DELETING_INDEX now allows committing changes to deleted index.
This fixes deleting mailboxes. |
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. |
d2470b3dfe91ca07459185384ee25080b42a1636 |
|
24-Feb-2011 |
Timo Sirainen <tss@iki.fi> |
Avoid unnecessary data stack leaks. |
5e88e4624aa6d482b5b195acd2f4e02aeb385f20 |
|
06-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Always update index map while committing a transaction.
The previous code was doing this only in some situations, which was probably
enough, except maybe in some special cases. The log file was also read until
EOF always anyway, so the only thing this was saving was some CPU. With the
new behavior the committing stage should be more reliable, and also makes it
easier to do changes without accidentally breaking it. |
07e80e04c8876b6bf3f95266f48b41e1a681e445 |
|
06-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Avoid unnecessary pread()s at end of transaction log file.
If we've already read until EOF while the file has been locked, there's no
need to do it again. Previously this worked while index was being synced,
but not while committing a transaction. |
3b426f49d36187895debdda67fff09f97941881c |
|
08-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: When index is reset, make sure old dovecot.index gets deleted.
--HG--
branch : HEAD |
8872e5c991430f96138a46e36b7f3c2c40d8e5c2 |
|
09-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added support for undeleting a deleted index.
--HG--
branch : HEAD |
651fc0f1e43fef3e02e0e7b5f498973b05f641d7 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Added support for marking mailbox index deleted. Don't allow any changes after that.
This is going to help with race conditions when deleting mailboxes.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
9f19a50d5966643c4d1c5ca06868ac2ad31bc4d5 |
|
19-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Transaction commits can now track how many uid/modseq updates were ignored.
--HG--
branch : HEAD |
61ddcdc28f50d9cb9994fcc4ad63f9dff0e80628 |
|
03-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
lib-index: Don't refresh index after transaction commit if nothing was changed.
--HG--
branch : HEAD |
741d705983e10046f07ef372b760bcdd169b068a |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Don't assert-crash after noticing cache file corruption.
--HG--
branch : HEAD |
d1baa8c6f97cdb1b3c2c44a73cc21f9dfc7a963f |
|
06-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
lib-index: Fixes to handling UID changes.
--HG--
branch : HEAD |
0c909e3461607eadcd66f4eac69b7f34e37fccf1 |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Keep track of expunged messages' GUIDs and expose them via mailbox_get_expunges().
The message GUIDs are stored in expunge records to transaction log. Before
doing the final expunge, Maildir and dbox verify that the GUID in expunge
request matches the current actual GUID. The GUID is stored in 128 bit
field. If the real GUID isn't 128 bit, the bits are taken from SHA1 of the
GUID.
--HG--
branch : HEAD |
b346610430690398b8c840006004a2df4aa8ce92 |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Moved around mail-index-transaction code and added initial unit tests.
--HG--
branch : HEAD |
54b51a9c2705a19dfb1639647bc7e9378e37f881 |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mail_index_update_flags*() now does a better job of merging flag changes together.
--HG--
branch : HEAD |
abfc687d2392ebcc6031ed73f6cdf294a749fbf2 |
|
13-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Fixed expunging appended message that had atomic extension changes done.
--HG--
branch : HEAD |
3f2ad7b8c3a243dabcba469c8a331423d036f3fc |
|
13-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Moved mail_index_keywords_*() to mail-index.c.
--HG--
branch : HEAD |
bc397dfcbe6e22aa1ca2e15a9f3cd42f39e2ec4e |
|
13-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Moved mail_index_seq_array_*() to mail-index-util.c and added its own .h file.
--HG--
branch : HEAD |
5e40ed3f0a2c2acddc9b8eab59670c7a850114c5 |
|
13-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Isolated all cache transaction handling code to a single file.
--HG--
branch : HEAD |
84ed9f8f3d0e5ed47607ef417618e49e4f865557 |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added reference counting to struct mail_keywords and related APIs.
--HG--
branch : HEAD |
40a5aeebf6b4858b93f0ddff0bf12fba769cf903 |
|
09-May-2009 |
Timo Sirainen <tss@iki.fi> |
Tests are now run on "make check". Added initial tests for lib-index.
Moved old tests away from tests/ to libraries' individual directories.
--HG--
branch : HEAD |
1279090ba03f9c176976a69ab7718f0ed77b19af |
|
09-May-2009 |
Timo Sirainen <tss@iki.fi> |
Moved transaction commiting code to mail-index-transaction-*.c
--HG--
branch : HEAD |
99f482c13492c443ad550872dac59313c9e48026 |
|
10-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
indexes: Removed unnecessary code.
--HG--
branch : HEAD |
b7a5580abb62dd82e82e58ed81dcb307ed338144 |
|
25-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
mail_index_atomic_inc_ext() now returns the current diff sum.
--HG--
branch : HEAD |
5c42ea4a70cf5c6df179f22af2a44b214df0a873 |
|
24-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
mail_index_atomic_inc_ext() didn't handle multiple increments within a transaction.
--HG--
branch : HEAD |
346ee8b23fe6187632efe5930e59dafa17625138 |
|
20-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Removed some asserts that dbox code hits now.
--HG--
branch : HEAD |
9404a7b90dcb80d31bd37ee2493f03751acdb1bd |
|
11-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Removed rarely used parameters from mail_index_transaction_commit().
mail_index_transaction_commit_get_pos() can be used where they're required.
--HG--
branch : HEAD |
1aa80711dcef7f193038b1f3ff65f331b43a4beb |
|
10-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
indexes: Removed unnecessary code.
--HG--
branch : HEAD |
28f0b21ee66fe5a5cb961f6b3ae598c88d2eb5d3 |
|
06-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
mail_index_atomic_inc_ext(): Added error checking.
--HG--
branch : HEAD |
c5794838af9995f50bfecb06a3cd4f9a0ac77858 |
|
04-Mar-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_atomic_inc_ext() for atomically incrementing numbers in extensions.
--HG--
branch : HEAD |
9a64caaed480a88f16b53b996b2bbf4833d282c4 |
|
22-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Another fix to mail_index_transaction_get_next_uid() fix.
--HG--
branch : HEAD |
9a2f1856dc0a4b67d42836c77eff73f13aced7dc |
|
22-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Fix to mail_index_transaction_get_next_uid() fix.
--HG--
branch : HEAD |
cf93189100a9136f2fd508c26e1573410bc8c1aa |
|
22-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
mail_index_transaction_get_next_uid() shouldn't sort appends. They may still be modified!
Fixes a dbox rebuild bug.
--HG--
branch : HEAD |
ed972860257649990e39f7483614186e09cbc977 |
|
14-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Crashfix / keyword handling fix when appending messages non-sorted (dbox rebuild).
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
3fe9483b2b412a14493e3120751b0e99ecfe9388 |
|
14-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mail_get_flags/keywords() now returns updated values if they've been changed within transaction.
--HG--
branch : HEAD |
273f714d5640dca9ad13fc17de3bcb2cf5b1abff |
|
21-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
If UIDVALIDITY changes and view hasn't noticed it yet, don't assert-crash
when saving messages.
--HG--
branch : HEAD |
ab0d9eecd85f74acae18fe88529302e0776cc500 |
|
20-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
extern/static fixes (from a sparse check by Diego Liziero)
--HG--
branch : HEAD |
48270badadd82279bfe50ae3d187aea8b0b2b30e |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
CONDSTORE: STORE UNCHANGEDSINCE conflicts are now checked atomically.
--HG--
branch : HEAD |
81a5d8714c566ce50c4a2409f59e82e716d576d2 |
|
18-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
mail_index_update_header_ext() can now be called multiple times for the same
extension.
--HG--
branch : HEAD |
2ab7efebc44eb24cb48ebe8081b4967f7a9f1927 |
|
18-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
mail_index_ext_resize() may have looked up old record size from wrong
message.
--HG--
branch : HEAD |
6e07b4251bf6a3cf34019c351a32a65c08392e58 |
|
29-May-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_ext_reset_inc() to atomically increase extension's
reset_id. Added clear_data parameter to mail_index_ext_reset*().
--HG--
branch : HEAD |
39d5fa228fa404c0ddfdb212bb1f396dbeb419e3 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES: Don't crash if trying to add
keywords to newly added messages.
--HG--
branch : HEAD |
694a8e2ed8a3c8279e3937c5b64560e5fc628327 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES: Don't crash if trying to add
keywords to newly added messages.
--HG--
branch : HEAD |
9270ca3c33f27e2d1bbe4171941dab82be7cb0e3 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES bugfix
--HG--
branch : HEAD |
e00a8b0dc71aeb96c4d756644c5f00ea3619b255 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES: Avoid also keyword updates.
Also fixed a bug with flag updates.
--HG--
branch : HEAD |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
9ffc8f589f6fbe43012f6d3f8f426e29c5514fd7 |
|
15-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed bad memcpy() usage with memmove().
--HG--
branch : HEAD |
b10468c6274e490a95377cf4b88f9212c4848d3e |
|
15-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed bad memcpy() usage with memmove().
--HG--
branch : HEAD |
7212243efb0d8fa1cd8b2e37b7498323540b9e97 |
|
07-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
When converting sequence ranges to UID ranges, don't try to optimize the UID
ranges by letting them contain expunged UIDs. This makes the transactions
somewhat larger if UID range has holes, but it properly fixes problems with
updating flags for expunged messages.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
a4533a1b40dd668a038ede64af2c237710d195e7 |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_transaction_reset() didn't reset mail_index_ext_set_reset_id()
calls. Those calls also leaked memory.
--HG--
branch : HEAD |
d0fdb272b9159f5c0f934832edcb2926170a6d2b |
|
10-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Panic if duplicate UIDs are tried to be appended within a transaction.
--HG--
branch : HEAD |
5d1833b98fa85d8061626aa986f38dcbcd70553e |
|
10-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to handling cache file syncs and expunging.
--HG--
branch : HEAD |
1f68b6db9b8d02b0f4116e42ac82c4aac5579574 |
|
02-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Refresh index always after committing a transaction. This is especially
useful now that we don't always bother to sync the mailbox after a commit.
--HG--
branch : HEAD |
fd1f0e9ef52b3e157cfd1a01c464c2ac7458ab17 |
|
24-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Use N_ELEMENTS() macro instead of doing sizeof()/sizeof([0]) ourself.
--HG--
branch : HEAD |
6f73af3a3a6ee900c7e736874587968d76a20bc0 |
|
22-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mail_cache_transaction_commit()/rollback() API is now public and takes a **
pointer. Don't break if transaction is committed/rollbacked multiple times
for a cache view.
--HG--
branch : HEAD |
123962e68d25c1c5b04160d70f65ef6a66298d40 |
|
21-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_expunge() can now expunge the last appended message.
--HG--
branch : HEAD |
76262a0cdce6c3cc82fc071d8cc2e431052994a4 |
|
21-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
When sorting appends, sort also keyword resets.
--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 |
d3837c0362588792db3e3148d217f31ff3172922 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed strarray_length/remote() to str_array_length/remove()
--HG--
branch : HEAD |
a94936bafd127680184da114c6a177b37ff656e5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefixes from function names.
--HG--
branch : HEAD |
61f5256ef248d35459b53534ae428bf6d016e1c5 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed mail_keywords creation APIs to take mailbox/index instead of
transaction.
--HG--
branch : HEAD |
e391b14beedad6b011e3c16f1f082de2398fdd9d |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_keywords_create*() now drops duplicates.
--HG--
branch : HEAD |
e02e5d9fe1d86ac1aad3dc70af00b4c801f3b1f3 |
|
31-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_transaction_sort_appends() fixed to work with keywords (dbox-only
problem)
--HG--
branch : HEAD |
6825360d446542046757b06064282301c4c6b27c |
|
31-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Removed autocreate parameter from mail_index_keyword_lookup(). Added a new
mail_index_keyword_lookup_or_create().
--HG--
branch : HEAD |
73b50eecfc31750a312e2f940023f522eb07178c |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup*() can't fail anymore. Changed several APIs not to return
failure anymore.
--HG--
branch : HEAD |
27bc15088a485a8047fca9b0d24d2904c6dda919 |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_seq_array_lookup() didn't return idx_r correctly always, which
could have caused out-of-order mail_index_update_ext() calls to break. We'll
use bsearch_insert_pos() now instead of our own duplicated code.
--HG--
branch : HEAD |
3697080532ccd9f51fac108be6079b616c7a2ddf |
|
03-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Created a new struct mail_index_record_map which can be shared by multiple
mail_index_maps. This avoids having to copy records when appending new
messages.
--HG--
branch : HEAD |
19f2cdd797b1ed206eb007bd245e857a7e68c2fc |
|
19-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES handling.
--HG--
branch : HEAD |
a022088674a5ae72ed29ae001834cbad62a4f19f |
|
19-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Keep flag updates separately from transaction.log_updates flag, because the
flag updates array can become empty.
--HG--
branch : HEAD |
c8adec8db635f5efb13b9879a5f3fb523abdc969 |
|
19-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added MAIL_INDEX_TRANSACTION_FLAG_AVOID_FLAG_UPDATES and
MAIL_INDEX_SYNC_FLAG_AVOID_FLAG_UPDATES flags to make
mail_index_update_flags() not do anything if the flags in view already are
those.
--HG--
branch : HEAD |
db87d16551d1081ada01f787ea21aa3ed1402c31 |
|
19-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Changed mail_transaction_begin() API to take flags parameter instead of two
booleans.
--HG--
branch : HEAD |
7d9954a0609f942dada5ebf98031f1f1b94c5f35 |
|
18-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if mail_index_reset() is the only change in transaction.
--HG--
branch : HEAD |
225efa78c4773d37017ca925310f8e9a3f29e795 |
|
18-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_transaction_get_next_uid(): If mail_index_reset() was called,
don't use existing next_uid (and crash).
--HG--
branch : HEAD |
46726d2abcfffdd13cf9dbdb0acb11b2c01c0549 |
|
18-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If a flag is added and then removed, remove it from the transaction
completely.
--HG--
branch : HEAD |
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Recent flag handling rewrite. Still not perfect with maildir.
--HG--
branch : HEAD |
a2cbf1d392ee983520451bc9b849a490f28ac298 |
|
14-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
If mail_index_ext_set_reset_id() is called, the transaction may go back to
unchanged state and we don't want to write it to transaction log then.
--HG--
branch : HEAD |
0e2ceb3d8d6dc79fc2dd74fd777c144b091ad8ef |
|
14-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Last change didn't clear ext resizes right.
--HG--
branch : HEAD |
b5efcae1db660e69ed7126521735a3f3f1ddd10c |
|
14-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_ext_reset() and mail_index_ext_set_reset_id() need to clear
ext header updates and resizes. mail_index_ext_set_reset_id() also needs to
clear ext resets.
--HG--
branch : HEAD |
893e5bbd5184ec5c21f47c67c8ea6efbea41f7d0 |
|
12-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_ext_set_reset_id().
--HG--
branch : HEAD |
7429204f1c7e30bc0488354c0f762fdeacdd7e00 |
|
09-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
We didn't commit transaction if it had only extension header updates.
--HG--
branch : HEAD |
beb6125ee872e7fed57745ab33e6de99639180f3 |
|
08-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Implemented mail_index_update_header_ext()
--HG--
branch : HEAD |
14c474d9f4591c397ed0b5206af6537c7b52c924 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Rewrite index lock handling.
--HG--
branch : HEAD |
ae8817f05005f57bba32479a610b52d083e2b6eb |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Added support for resetting index.
--HG--
branch : HEAD |
35316602eabbae7dcb86dd74c71e04cce45ba7c7 |
|
13-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Update day headers while committing appends.
--HG--
branch : HEAD |
87ca2e468841829b44c09d618ac02f61a30b7a49 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_view_add_hidden_transaction() takes now a whole area parameter so
it has to be called only once for each transaction, instead of each for each
transaction record.
mail_index_view_add_synced_transaction() is no longer public.
--HG--
branch : HEAD |
439942f89a77180719644e7af3752a8329259eb9 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups
--HG--
branch : HEAD |
e376693bfa3985232c41df99c7010fca22612c89 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transaction_is_expunged()
--HG--
branch : HEAD |
2674b4f0cf8f3c203d8e56b29735f5e267038daf |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
Typofix: transction -> transaction
--HG--
branch : HEAD |
48136ae5a0eb49daa44e343553f3688a500307e2 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transaction_get_view()
--HG--
branch : HEAD |
eac3948d67eff8623d51aeaea9eca582f3aec677 |
|
22-May-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transction_reset().
--HG--
branch : HEAD |
46c31f64b9f0949f00b7819f45b22f2d64b2ea27 |
|
29-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Better type safety to module_contexts arrays. Already fixed some bugs.
--HG--
branch : HEAD |
a4962562bb77afe1d058124762b7ecea5028a528 |
|
25-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't read/write outside boundaries if the extension data's size isn't
divisible with 32bit.
--HG--
branch : HEAD |
3d3bde73024116f6d739eaf9f3638f267e97bd66 |
|
16-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Crashfix with nonsorted appends
--HG--
branch : HEAD |
985fa802913c96ce6f2e25bbc788ee39c416a7e0 |
|
06-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
When adding mails to index in non-sorted UID order and then using
mail_index_get_header(), the next_uid field could have been wrong.
--HG--
branch : HEAD |
9aba3468134d4f5130c1d36c53b8664be4ef30d7 |
|
22-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Added asserts
--HG--
branch : HEAD |
2d79e603e20a32bdae4c2b516ead5c5c9169545a |
|
25-Nov-2006 |
Timo Sirainen <tss@iki.fi> |
Don't break if extension record size isn't divisible with 32bit.
--HG--
branch : HEAD |
687bb904e1bb76c21a6e392f60c990486b298ea4 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
After saving messages the mailbox wasn't synced, which caused deliver to
treat the mailbox as unsynced and not update the indexes.
--HG--
branch : HEAD |
7d7b5c98f086ffa8ac9c90f21db17748ca607202 |
|
17-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes
--HG--
branch : HEAD |
c6eca51b54586c1f37cfe39e38c844da3f937a4d |
|
16-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Don't allow giving NULL parameter to array_get() or array_get_modifiable().
--HG--
branch : HEAD |
91dca97b367c54a139c268b56a0c67f564bd9197 |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Replaced ARRAY_CREATE() macro with [ipt]_array_init() macros. The macro
has no side effects so it might as well be lowercased.
--HG--
branch : HEAD |
26a8b7deb3a5b6f26f9c4d71538e1248f680e4be |
|
10-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Removed type parameter from ARRAY_CREATE since it's not needed anymore.
--HG--
branch : HEAD |
d6badc27cd6e8d3398877b6766cb0aaeef3a7800 |
|
28-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Beginnings of joining mail-storage API more closely to mail-index, so that
mail-index could be directly used if needed. Currently only transactions
are joined.
--HG--
branch : HEAD |
8d80659e504ffb34bb0c6a633184fece35751b18 |
|
28-Jun-2006 |
Timo Sirainen <tss@iki.fi> |
Array API redesigned to work using unions. It now provides type safety
without having to enable DEBUG, as long as the compiler supports typeof().
Its API changed a bit. It now allows directly accessing the array contents,
although that's not necessarily recommended. Changed existing array usage to
be type safe in a bit more places. Removed array_t completely. Also did
s/modifyable/modifiable/.
--HG--
branch : HEAD |
a93d68f7c78b85bdbc6d01b0bf6be6e66fa44071 |
|
03-May-2006 |
Timo Sirainen <tss@iki.fi> |
Fixes to updating keywords
--HG--
branch : HEAD |
a1248a194946f2429f1cb0da7cf22bf73e8a11be |
|
23-Apr-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Fixed crash while updating keywords (broken by recent changes).
--HG--
branch : HEAD |
5ada3f57a970f226eb29956d30f66afc3537200d |
|
20-Apr-2006 |
Timo Sirainen <tss@iki.fi> |
If we sorted appended messages, we weren't sorting extensions and keywords
so they were mapped to wrong messages (dbox-only problem, keywords not yet
fixed by this change).
--HG--
branch : HEAD |
a6745c1336427f5641715baee3d2369d3e91ebe0 |
|
15-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added some checks and better logging for figuring out why (*seq != 0) assert
happens.
--HG--
branch : HEAD |
d5cebe7f98e63d4e2822863ef2faa4971e8b3a5d |
|
14-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
deinit, unref, destroy, close, free, etc. functions now take a pointer to
their data pointer, and set it to NULL. This makes double-frees less likely
to cause security holes.
--HG--
branch : HEAD |
6ef7e31619edfaa17ed044b45861d106a86191ef |
|
13-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added "bool" type and changed all ints that were used as booleans to bool.
--HG--
branch : HEAD |
c27f03fa8fd2ef4acd1db814fae7d90e0eb9d3ae |
|
06-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Cleanup: Created mail_index_registered_ext which is used for
index->extensions array. Put sync_handler to it and removed sync_handlers
array.
--HG--
branch : HEAD |
406393bc328f056c49df0804f894ac2070aa5846 |
|
21-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Allow appending mails in wrong UID order. Sort them internally when
committing.
--HG--
branch : HEAD |
fe469a081ebdbf383b6a7a15d6c5b5c1d1464c31 |
|
02-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
mail_index_keywords_create_from_indexes(): Don't crash with 64bit systems if there are only 0 keywords.
--HG--
branch : HEAD |
503a863a317acba125a4e46435694e35fad769e4 |
|
25-Nov-2005 |
Timo Sirainen <tss@iki.fi> |
Moved seq_range_*() functions to more generic ones in lib/.
--HG--
branch : HEAD |
16f816d3f3c32ae3351834253f52ddd0212bcbf3 |
|
04-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Moved array declaration to array-decl.h and include it in lib.h. So array.h
needs to be now included to use any array_*() functions.
--HG--
branch : HEAD |
e6f0cbdb1eb604f21a65cd45072febe678187054 |
|
30-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Keyword changes weren't converted properly from sequences to UIDs.
--HG--
branch : HEAD |
053843989f13d9013b265fb401a4bde7e0e6568e |
|
28-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Renamed array_modifyable_*() functions. I could never remember how they were
named.
--HG--
branch : HEAD |
02c537541a82797d0f3f5e6df6caf62e90b0cf39 |
|
14-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
Another empty-keyword-list fix with 64bit systems
--HG--
branch : HEAD |
cddb3224f1937590198e26396b4ef600f41357aa |
|
14-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
mail_index_keywords_create() crashed with 64bit systems and not exactly
correct with 32bit systems either, if it was given empty list of keywords.
--HG--
branch : HEAD |
a2e37357bff1b181cf4be1bee5464dcde8729d1b |
|
23-May-2005 |
Timo Sirainen <tss@iki.fi> |
Keyword resets were written using sequences to transaction log, which caused
keyword breakages.
--HG--
branch : HEAD |
aa38d1a0945f0bc13a225d043f53fad2eec666b1 |
|
23-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
If UIDVALIDITY changes, don't invalidate the whole index. Just expunge all
existing messages and update uidvalidity/nextuid fields. Now we don't have
to re-login when this happens.
--HG--
branch : HEAD |
c93f3ab84b317acf4755063ab4856c8fbfd3e064 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
If keyword was set for message whose seq != uid, we broke index.
--HG--
branch : HEAD |
bb10ebcf076c959c752f583746d83805d7686df8 |
|
02-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Keywords are now stored in X-Keywords headers in mbox. Did several related
API changes to get better performance.
--HG--
branch : HEAD |
d7737c090219b03e98a04bb30f84ef55e397319b |
|
27-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Changed keywords_buf to array. Added mail_index_sync_get_keywords().
--HG--
branch : HEAD |
9cf3ccbbed3b1dd2babdcbf7bb43a6fe21f4bd81 |
|
24-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Array code changes broke setting old_data_r in mail_index_update_ext(). This
kept breaking cache file.
--HG--
branch : HEAD |
1b84018ce06dba050f1111a2cfa6332595f603fd |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
ARRAY_ARG_SET_TYPE() -> ARRAY_SET_TYPE()
--HG--
branch : HEAD |
287ba82a8da3eaa473b5735d4eeac2fb4c5d8117 |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Changed many buffers to arrays. Cleans up the code a lot.
--HG--
branch : HEAD |
ae6ead56ef1ca592e6d4e446d7d5d43c70fd9915 |
|
08-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Don't crash with empty keyword lists.
--HG--
branch : HEAD |
faed8babca9914257f34fb2e603d74016d563b2d |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Internal changes in how keywords are handled. struct mail_keywords isn't
automatically freed anymore, added *_keywords_free() for that.
--HG--
branch : HEAD |
42739a4203faffcea3ecf60dbf7ee9a8c0f24337 |
|
23-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
one more fix
--HG--
branch : HEAD |
f84ef9754f697526ee11a2fb0e99fc6d390e0619 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
still not right
--HG--
branch : HEAD |
8ceed5d2d7c70cb8db35bcdd8a4ea5e0bbc1ff45 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
and more fixing..
--HG--
branch : HEAD |
ba665db60cf64cbe6e3ac67822de72101ec6fd36 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
3127020d0ae64cd75bb428bdee42391376b9dd74 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
fixes
--HG--
branch : HEAD |
ae6c13635a316a0c6069a462d5a52f249089785a |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
extra assert to make sure struct mail_keywords isn't tries to be used
between multiple indexes.
--HG--
branch : HEAD |
d8d7051915029da61911295962d85c332210ee38 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
fix
--HG--
branch : HEAD |
e8acc691a14a6d0884c5ca9aa4d8507f1e082040 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Instead of using separate transaction sorting code for syncing, just put the
data from transactions into a temporary transaction and read it from there.
--HG--
branch : HEAD |
c251a38df327599a62d341bf5c2282f31352faa5 |
|
22-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_update_flags_range() and optimized the non-range version as
well.
--HG--
branch : HEAD |
4767a0a58e5a6020165e8f47e2a9101b52e7e029 |
|
16-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Removed assert which crashed us every time we were setting flags to messages
in non-increasing order (could be done only with POP3).
--HG--
branch : HEAD |
1611cc99ad00c7b57b6f0c539001a783126361b2 |
|
16-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
crashfix
--HG--
branch : HEAD |
d3624dd45f4d4d81da50981f3ba95ca25199a1af |
|
15-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
static -> dynamic keyword buffer. It's not actually possible to know the
minimum needed size for the buffer beforehand.
--HG--
branch : HEAD |
460bbc67ac18cb3155708693436b87410000288d |
|
12-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Fixed crashes with keywords code when copying/saving many mails.
--HG--
branch : HEAD |
41e1c7380edda701719d8ce1fb4d465d2ec4c84d |
|
10-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
Keyword fixes.
--HG--
branch : HEAD |
16c89b1260c9d07c01c83a9219424d3727069b2e |
|
26-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Initial support for keywords. Syncing to mbox/maildir doesn't work yet.
--HG--
branch : HEAD |
df4018ae2f0a95be602f724ca70df7e0e3bd6a7d |
|
29-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed view->messages_count, view->hdr.messages_count is enough. Also fixes
assert crash in mail_index_bsearch_uid().
Renamed .._get_message_count() to get_messages_count() to be more
consistent.
--HG--
branch : HEAD |
1b3bb8d39686ed24730cbc31cc9a33dc62c8c6c3 |
|
14-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Update view's header only after syncing the view. This and other changes fix
several view syncing problems and crashes.
--HG--
branch : HEAD |
7c95b03620a03a43dd72d39608cea5fc77393ad6 |
|
11-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Allow specifying to transaction if it's external. Make mail saving
transactions external to avoid problems with uids.
--HG--
branch : HEAD |
6a19e109ee8c5a6f688da83a86a7f6abeb71abdd |
|
06-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Removed cache_offset from mail_index_record and changed it to use extension
instead. Added possibility to register sync and expunge handlers for
extensions. Changed the way extension resets work: all extension updates
which were committed without having seen the reset are ignored.
--HG--
branch : HEAD |
d143077bd518de129b8d446fb58e003903e50867 |
|
17-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
New way of handling extension introductions in transaction log.
--HG--
branch : HEAD |
4b058f90f9e8a2c6b2eed275de4eb8cc5195a71d |
|
08-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.
This also changed base64 and hex-binary APIs.
--HG--
branch : HEAD |
bbf796c17f02538058d7559bfe96d677e5b55015 |
|
03-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Index extensions can now specify record alignment, and it's possible to
resize header and records. Fixes mbox crashes with some 64bit systems.
--HG--
branch : HEAD |
7797aa2479e99aeb71057b7a2584b2cb72e4d3f8 |
|
26-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Renamed "extra record info" and variations of it to "extension" or "ext" in
short.
--HG--
branch : HEAD |
47d1fae2fa2964faa70d9e656d6c3995a1066eae |
|
23-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Don't break if same mail is expunged multiple times.
--HG--
branch : HEAD |
d810ebb2cc4588d11508a59bae1d1a13cd374b07 |
|
20-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
type fixes
--HG--
branch : HEAD |
7416b94f38e82381abd9cee660efdcf3e7b773af |
|
20-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Memory leak fixes
--HG--
branch : HEAD |
73e7998716853b5b7621c06aea0022dccda70ad1 |
|
12-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
We didn't include extra_rec_updates at checking if transaction had changed
anything, and so they didn't necessarily get written to transaction log.
This broke mbox offsets sometimes.
--HG--
branch : HEAD |
9d8d1efcc1274ef4d8413c3687549b297d81da10 |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
added assert
--HG--
branch : HEAD |
6b817c545d810e583c6f5bf8a14aafca2d28e7dc |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
added asserts
--HG--
branch : HEAD |
9deb2e33af193aef0b70b6e9a598333f6f9d4f3b |
|
11-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
More "cache file reopened" fixes
--HG--
branch : HEAD |
5a07b37a9df398b5189c14872a600384208ab74b |
|
05-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Save extra record/header infos into index file permanently.
--HG--
branch : HEAD |
b492193936f0e63dd0a24137e600d495351bfca4 |
|
29-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Growing index record size in the middle of transaction wasn't working right.
--HG--
branch : HEAD |
ca316aeb7648d3f1bcf45231f73ddeb1b67a6961 |
|
10-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache fixes. Lookups now look into transactions too.
--HG--
branch : HEAD |
2ca4cb08680aebb1474d762738cf436871f095fb |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Make sure we don't set cache_offsets to old cache files.
--HG--
branch : HEAD |
72cbf33ae81fde08384d30c779ff540752d9256c |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache updating is done now by first reserving space where to write, and then
writing to it whenever buffer gets full. There is no persistent cache file
locks anymore because of this, but it also means that the same cached field
may be written multiple times to the file by different processes. Also since
we reserve more space than we actually need at first, it some space can be
wasted if multiple processes are updating the cache.
--HG--
branch : HEAD |
09c3a491f4f6ccebe290c7709bdc0d79a187610b |
|
03-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
UIDs for appended messages can now be assigned all at once. Maildir now
updates indexes immediately while saving messages.
--HG--
branch : HEAD |
7e94cf9d70ce9fdeccb7a85ff400b899e6386f36 |
|
24-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Record size is allowed to change between index files. This will allow adding
extensions dynamically for existing indexes.
--HG--
branch : HEAD |
24fc71a693331ffe77e2b6d81c70aca6fa055e47 |
|
22-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_transaction_get_updated_view() which can be used to access
uncommitted messages.
--HG--
branch : HEAD |
b44a50ea4123f21dfc8e1b6c602f690fd9721b67 |
|
21-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Cache doesn't crash anymore if we're asking it about messages that exist
only in uncommitted transactions.
--HG--
branch : HEAD |
56f45b3f3ae20e5c933701f4657dda5ef1916855 |
|
19-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Several fixes and cleanups to cache file code, still badly broken
--HG--
branch : HEAD |
345212e8f61ebf14ff4f80df26df9e655eb5121e |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
mailbox_save() and mailbox_copy() functions can now return the saved mail so
it can be immediately queried. Implemented UIDPLUS extension using it.
Maildir implementation missing, so it crashes with it for now.. APPEND with
mbox now doesn't require resyncing the mailbox since it updates indexes
directly.
--HG--
branch : HEAD |
024815ea2ffdda9ea79919f18e865663977f73ea |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Fixes for extra_records
--HG--
branch : HEAD |
1175f27441385a7011629f295f42708f9a3a4ffc |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Modifying extra_records should work now.
--HG--
branch : HEAD |
8e7da21696c9f8a6d5e601243fb6172ec85d47b2 |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for per-index sized mail_index_record.
--HG--
branch : HEAD |
e06c0b65c16ccce69bbee009ead14d7d3d17a256 |
|
24-May-2004 |
Timo Sirainen <tss@iki.fi> |
Index header changes now go through transaction log. Removed the kludgy
parameters for mail_index_sync_end(). Removed code duplication of syncing
index root mapping and view mapping. Some fixes to handling uidvalidity and
nextuid in syncing.
--HG--
branch : HEAD |
b35f7104715edee0cfac6d46ab0b342033867eb7 |
|
22-May-2004 |
Timo Sirainen <tss@iki.fi> |
Set dirty flags through transaction log, not directly. Some other flag
fixes etc.
--HG--
branch : HEAD |
659fe5d24825b160cae512538088020d97a60239 |
|
22-May-2004 |
Timo Sirainen <tss@iki.fi> |
Transaction log contains only UIDs now, no more sequences which just mess up
everything.
--HG--
branch : HEAD |
5b1980a4dd8baad683578351d7f154b87c5f35e0 |
|
17-May-2004 |
Timo Sirainen <tss@iki.fi> |
Don't remove flag changes in transaction log if they're expunged
--HG--
branch : HEAD |
d8b77aef97e89f1ccc5cbdaef77be9052279e35f |
|
02-May-2004 |
Timo Sirainen <tss@iki.fi> |
s/custom flags/keywords/
--HG--
branch : HEAD |
31ddc75584c5cde53d2e78a737587f2e7fdcb0d2 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Forced locking to be right with mprotect()ing index file. Support for
disabling mmap for indexes, and disabling just mmap+write().
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |