8828d7a1e76b7d301bcd7385aa27c52512e855ce |
|
13-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Replace mail_transaction_commit_changes.changed with changes_mask
This allows better finding out what changed in the transaction. |
08495095af85423369e1419dc1a4bd8299a4022c |
|
13-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Remove mailbox_transaction_context.nontransactional_changes
Nothing cares about them. It was only set for POP3 UIDL change with
Maildir. In theory dsync replication would want to replicate such a change,
but it doesn't actually support changing UIDLs for existing mails. Other
mailbox formats don't support it anyway. |
6c2e7ad9c45936aa07cbc9daadf168c362f34a77 |
|
08-Feb-2018 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Set mailbox_transaction_context.flags earlier
Set it in index_transaction_init() so plugins' transaction_begin() methods
see it after calling super.transaction_begin(). |
c51390c3ae6e373e7b4a052a94e8e4065b98321c |
|
24-Jan-2018 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
lib-storage: Add and use MAIL_STORAGE_CONTEXT_REQUIRE
Satisfies static analyzers |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
103b44c67f38862d1e72c9bfdf11f067b4670675 |
|
25-Dec-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Set index error on transaction commit() callback
The commit callback is setting errors to storage. However, it's being
called from mail_index_transaction_commit() whose callers are expecting
the error to be in index. If that index error was attempted to be used,
it could have been wrong or NULL. Fix this by setting the same storage
error also to the index. |
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. |
c6ce2e251ac75fa650c7fbfa52150eae69386293 |
|
22-Sep-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add reason to mailbox.transaction_begin() |
d1fbd2c264368d8b4c7139b96e3b21f45930b857 |
|
03-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mailbox_transaction_set_reason() |
acfeae4e2b5c2acdab88a1377ff6cd4a9b5f0a3a |
|
29-Mar-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fix potential dict transaction leak on transaction rollback. |
897368f75a68f97e172ba76540759a10c557f1c3 |
|
14-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Always create mail_save_context.dest_mail
This allows removing similar mail_alloc() from storage backends and plugins
that need it.
As a side effect, this changes mbox code to always assign UIDs to saved
mails. This shouldn't be much of a problem, since it happened practically
always already. |
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 |
2b9dbb270ad82e58d5f3581436e6f143176d5819 |
|
21-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
dbox: Optimize POP3 MAIL_FETCH_UIDL_BACKEND.
We keep track of the highest UID known to have POP3 UIDL in index's header.
If saving adds a newer message, it'll also update the header. When fetching
UIDL_BACKEND, we can need to check only mails with lower UIDs. There are
some race conditions here, but normally UIDLs are set only once during
migration so it shouldn't matter. |
661998e2ccd772ad92a9d4a75cb712692a8c94b3 |
|
08-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-dict: dict_transaction_commit*() returns now error string |
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/' |
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. |
50c617761ee9653bd44646a95178773a3686d62e |
|
14-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed mailbox_attribute_get/set() APIs to have a transaction and update index.
The _get() doesn't currently actually use the transaction. It was mainly put
there for future use where it could be useful. It's also possible that
_iter() will need a transaction also. For now these decisions seem good
enough. |
e2d268e9531227ead6a98466ecf3c046c857ef70 |
|
19-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Saving/copying no longer discards private message flags. |
5a580c3a38ced62d4bcc95b8ac7c4f2935b5d294 |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Oops :) Update copyrights to 2013 without breaking all .c files. |
cca4ba2a504d70a9fe9fee37f8433997359de52c |
|
02-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2013. |
1f1ee8db68d9ae1604350801cd8dc33ebe29fe8a |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Renamed mail_storage_set_index_error() to mailbox_set_index_error() |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
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 |
068da0f391ff8c633f629f5ab207331db8c3e987 |
|
04-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAILBOX_TRANSACTION_FLAG_SYNC flag |
900bb5e316d030cdebff7ee128ce65881dfb27f7 |
|
02-Mar-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_transaction_commit_changes.changed=TRUE only when something actually changed. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
a3786abd0ed32840d0a4236cb98e9f6213c7cadd |
|
08-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed unnecessarily duplicated code. |
128ea07dab8d67124ea74bcc085a478784b6358a |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: Changed mail_cache_view_close() API to take pointer-to-pointer. |
b1ba6a91bd73e1407865acd405814753dedd0121 |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAILBOX_TRANSACTION_FLAG_NO_CACHE_DEC and use it when precaching.
The result is that "doveadm index" no longer changes caching decisions. |
ab9a91eb05a54f7675e0bf861aca53f417e1980d |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAILBOX_TRANSACTION_FLAG_NO_CACHE_DEC and use it when precaching.
The result is that "doveadm index" no longer changes caching decisions. |
7370fb9ff75b674f99059adf24502ee9ae7a47bc |
|
05-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_is_cached() |
1460ef7a18c53216ddb4a94bb62fba96076aae8e |
|
24-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved index_mailbox_context.save_*() methods to mailbox_vfuncs. |
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. |
dbe64f3893616a4005c8946be75d2dc8f6823d72 |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Unvirtualized some methods from struct mailbox.
There was never any point in overriding or hooking into them. |
c04f9a724a7b3cc649485a61b0a540868d25d71b |
|
05-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed struct index_transaction_context.
All of its contents are now in struct mailbox_transaction_context. |
e6488134faa6d3f9d96af26a6c1c91b431f06609 |
|
15-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added assert to transaction rollback to make sure all mails are freed.
The same assert was already in commit, so this should be fine. |
de9d79337eca11a7f9c1cd476c74dfe4f09a4bd7 |
|
30-Jun-2010 |
Timo Sirainen <tss@iki.fi> |
Removed mail_update_uid() / mail_index_update_uid().
It was working properly only with mdbox and there wasn't really a need for it.
--HG--
branch : HEAD |
ba8b5d510a75b74afa967ce43dd79d6a9d2558b3 |
|
07-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed wrong asserts (causing crashes in quota plugin).
--HG--
branch : HEAD |
cd83124e5d070a016c590bb0b1096d7828c7b6ad |
|
19-Mar-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved index transaction/view from index_transaction to mailbox_transaction.
--HG--
branch : HEAD |
6d931bbce16786df431e9ae8201a78a95084316d |
|
15-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
Memory usage optimizations.
--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 |
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 |
ca98d6a1bbe73499da758a36bfab2963375c8d06 |
|
07-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved struct mail_index_* from index_mailbox to mailbox.
We're relying more and more of all mailboxes being used via lib-index, and
this change makes accessing the indexes easier.
--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 |
741d705983e10046f07ef372b760bcdd169b068a |
|
06-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Don't assert-crash after noticing cache file corruption.
--HG--
branch : HEAD |
eb0816090cf5a549280ad783b9aa6fec199d36ba |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Simplified the way transactions are are created/finished.
Removed also mail_storage.class_init/deinit since they're no longer used
for anything.
--HG--
branch : HEAD |
88f56040cebb5d272b658b8e00f02434b9dca200 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Code cleanups.
--HG--
branch : HEAD |
fa3be6b0d9d9fc0264a8434e17e26ad26c739dae |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Removed unused MBOX_SYNC_LAST_COMMIT and related code.
--HG--
branch : HEAD |
d59f44917f9862d3f95d7c95885b6f50e802ae38 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Removed duplicated flags from struct index_transaction_context.
--HG--
branch : HEAD |
bddd52cb7f3e5a894c080f60750aa76b5aeaf103 |
|
28-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to change existing messages' UIDs with mail_[index_]update_uid().
--HG--
branch : HEAD |
96308127e006bb3b1108093bcf4cc1fd9481cb7a |
|
24-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit_get_uids() changed to _get_changes() with more generic API.
Saved UIDs are no longer necessarily in a simple x:y range.
--HG--
branch : HEAD |
61b6d1256936065321153bcd9228b9e45d95c9ab |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
More fixes to cache changes.
--HG--
branch : HEAD |
398d66217c5916b14485714954c14cf8af0c8547 |
|
14-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Fix to previous cache changes: Cache transaction was commited too early.
--HG--
branch : HEAD |
a341c4cdbd4b93ba479f465ad3f569dc82f57312 |
|
14-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Changed MAILBOX_OPEN_FAST meaning a bit. Don't use it where it's unnecessary.
--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 |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
48270badadd82279bfe50ae3d187aea8b0b2b30e |
|
21-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
CONDSTORE: STORE UNCHANGEDSINCE conflicts are now checked atomically.
--HG--
branch : HEAD |
9293bf90039454f47e94e4ba3722a775cfa7d25c |
|
16-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added MAILBOX_TRANSACTION_FLAG_REFRESH. Use it with STORE UNCHANGEDSINCE.
--HG--
branch : HEAD |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
01937f71b3ae0d5b30b813372f44a3e7e86c89dc |
|
28-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Assert-crash if there are mails belonging to a transaction while it's being
committed or rolled back.
--HG--
branch : HEAD |
63f36c2b47217fc2dc4ed49cfc1907311d5ed366 |
|
30-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit*() doesn't sync the mailbox anymore, so it
shouldn't take mailbox_sync_flags parameter either.
--HG--
branch : HEAD |
89a126810703c666309310d0f3189e9834d70b5b |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced my Copyright notices. The year range always ends with 2007 now.
My name was replaced with "Dovecot authors". In many cases I didn't really
even own the copyright, so this is more correct.
--HG--
branch : HEAD |
88187ee880b4829443e0d55ea7d145d9d5880217 |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Removed explicit locking from views and maps. They were already locked all
the time when they were used. Because of this change several functions can
no longer fail, so they were changed to return void, and a lot of pointless
error handling was removed.
--HG--
branch : HEAD |
ccec5f82349eae44087900c0e64ed1fd5a1a6fca |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mailbox_transaction_commit_get_uids() now returns also UIDVALIDITY. It's the
only usable way to get it returned correctly. Removed maildir-specific
mailbox_get_status() handling, it's supposed to return the current state of
the mailbox, not the latest state. It was useful only for returning non-zero
UIDVALIDITY for newly created mailboxes, and that's no longer needed.
--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 |
cb5ff22eba16bc08b3fa2fc34bfc0f02d387b436 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Fixed mailbox_transaction_commit_get_uids() to actually work and not just
crash.
--HG--
branch : HEAD |
4d2211dac61c615c5bdfd501ea54d46c89d41b0f |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Added mailbox_transaction_commit_get_uids() which returns the UID range for
saved/copied messages.
--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 |
72898747f93d746d6d110bec483a86c5fe3b4698 |
|
25-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
crashcheck
--HG--
branch : HEAD |
b67c4cff87186c243b92ff537098420901388116 |
|
28-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Reversed last change. Doing it another way.
--HG--
branch : HEAD |
a5cc9935581d9503b5f77097390d903b8add6c44 |
|
28-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Call mail_index_view_unlock() only when all transactions are finished.
--HG--
branch : HEAD |
013e3b3942e9550fde619a0b3ce6bdd04edc4268 |
|
10-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Make sure the mailbox is opened when transaction is started (fixes deliver).
Also did some other API cleanups, mailbox index opening can't fail 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 |
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 |
e05a4c4136fec723f019bee8383103080203f127 |
|
10-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
Added module_contexts to transactions.
--HG--
branch : HEAD |
fdc557286bc9f92c5f3bb49096ff6e2bcec0ea79 |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Major mail-storage API changes. It's now a bit cleaner and much more plugin
friendly. Removed proxy_mailbox* stuff, they were difficult to use and
there's now much easier way to replace them.
--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 |
53ea5cb26b07671cfd3eaecd9383f80fb6332ff6 |
|
03-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Fix for error handling.
--HG--
branch : HEAD |
dbfabccd2a9f22887c250dc7e16bff1ba1fd8b36 |
|
10-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
fetch_mail needs to be deinitialized before transaction is
committed or rollbacked
--HG--
branch : HEAD |
1efb8b95e87ca3940cc74f9553a3c8ca5d85ead3 |
|
09-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Always create cache transaction. Easier that way .. and fixes a crash.
--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 |
a40d26f83af808a0ea1e212c001d682a96d870b0 |
|
04-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Caching fixes and optimizations. Removed all network byte ordering code -
it's not worth the trouble and would require massive changes in indexing
code as well to be useful. Changed next_offset to prev_offset which is
updated while syncing index.
--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 |
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 |
da5d50534cfca45d0aaaf0bdac17b287b4588809 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Beginnings of getting cache file working again. Easy to break currently, but
basics seem to work.
--HG--
branch : HEAD |
8a3d609fdd84f5938c82e8e7eeb84a24ab41b317 |
|
10-May-2004 |
Timo Sirainen <tss@iki.fi> |
When committing with no changes, don't try to sync them later.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |