bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
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 |
02d6628c1fea2990c67c60b111c8e68867160885 |
|
25-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: fsck now adds MAIL_INDEX_HDR_FLAG_FSCKD to header.
It can only be removed by an explicit header update. |
826f767b6017e4572dcc1dcd4f7573a5df6cd767 |
|
25-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: fsck: Fix log_file_head|tail_offset properly |
909a45f03f34dcdf9495b037ab87520152a4bc6b |
|
03-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fixed fsck handling extension with invalid header size
Fixes:
Panic: file mail-index-sync-ext.c: line 393 (mail_index_sync_ext_init_new): assertion failed: (hdr_buf->used == map->hdr.header_size) |
6ded8819b9002150a95a7615e4f64f091c250464 |
|
22-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Small improvements to logging the reason for long transaction log lock waits |
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> |
2f8da04d700cc23fcd6630226a4866e828b761bd |
|
09-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-index: Include reason string in warnings about keeping transaction log locked for too long. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
0b2d4626c6fb4e40bc81c56d8227191f3c7e1ea3 |
|
17-Jun-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Don't bother tracking if header/records were changed.
They aren't really needed. When mail_index_write() is called, we already
know we want to update the index. |
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. |
e34d170f8f0e084bd94bfbc1a7085ece67e508df |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make sure we check all the functions' return values. Minor API changes to simplify this.
Checked using a patched clang that adds attribute(warn_unused_result) to all
functions. This commit fixes several error handling mistakes. |
d7c8280f58292cc292eba9209dcc9024fe96cf06 |
|
03-May-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Updated dovecot.index file only by recreating it, never write to it directly.
This is safer, and nowadays there shouldn't be much of a performance loss
with it either, since dovecot.index isn't updated very often.
This also allows removing all locking from dovecot.index file, although for
now we'll keep it in case old Dovecot versions are simultaneously writing to
the index. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
8a3f549a3cb1d6dd980a4fa3db284653e256dae7 |
|
07-Dec-2011 |
Timo Sirainen <tss@iki.fi> |
lib-index: Added mail_index_reset_fscked() |
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. |
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. |
3e42e3748e489b62554ae0562b5537c20defc1ee |
|
13-Sep-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: fsck shouldn't assert-crash when no .log file exists |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
e20e638805c4bd54e039891a3e92760b1dfa189a |
|
08-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_foreach*() in some useful places.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
5aeb15e5817fbd4b1d8de540aa7673e3819a8030 |
|
14-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
Replaced literal "keywords" strings with a macro.
--HG--
branch : HEAD |
a553ee9b9c50d7cd317825ccb8150331560a9dd9 |
|
31-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
index fsck: Don't give bogus "duplicate extension" errors and break them.
--HG--
branch : HEAD |
1944ee7729e2fabd85773a81ca408acd3e36ab1c |
|
04-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Index fsck crashfix / cleanup.
--HG--
branch : HEAD |
d67f6ca7e313e9192268f6bf9952594524655dcd |
|
04-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
Index opening: If there's broken index and no .log, don't crash.
--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 |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--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 |
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 |
0f66f12eb4cdbf47670975044c88d8f388bf92df |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Changed buffer_free() and buffer_free_without_data() APIs to take ** pointer
which is set to NULL instead of hiding it with a macro.
--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 |
8ababf3e7b15f793370d1dedf85825d38b42633f |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
fsck fixes now keyword header problems
--HG--
branch : HEAD |
746d35bf3dba3ae5ddbcecb9732f60d5e9de77ef |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
If extension header is broken, drop it when fscking.
--HG--
branch : HEAD |
9f57ffa4d421951bbfc7f2de2abcbd8033e6a8c3 |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanup
--HG--
branch : HEAD |
eb9f7005390bf7d5771d2faedb771ce41103b93a |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Code cleanups
--HG--
branch : HEAD |
6ec7cf71ccd0eed1f9cc1b0bda8960796b04160b |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed MAIL_INDEX_HDR_FLAG_FSCK. It's not used anymore.
--HG--
branch : HEAD |
3b80595fcf2001cf7b2fcc6290823e38f4a142fc |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
fsck won't fail anymore with "corrupted index", all problems are fixed.
Added mail_index_fsck_locked().
--HG--
branch : HEAD |
f1e040bdc28be2d42723838bedb5ce54a87cf969 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Don't bother complaining about changed log offsets if file also changed.
--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 |
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Recent flag handling rewrite. Still not perfect with maildir.
--HG--
branch : HEAD |
b0be0bead3d6963149f7f2a9504b8ab5aced9af5 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_map now contains pointer to index, so all functions taking map
parameter don't need index anymore.
--HG--
branch : HEAD |
e3689d0f073341e844638f34e1e4d0b7bb053cc8 |
|
28-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Handle losing index file better. Handle fsck better.
--HG--
branch : HEAD |
b00eab39755656ee5bac297f5f6ae959da5acef1 |
|
16-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Do a bit better job with fscking.
--HG--
branch : HEAD |
2a6af811ea3de3cf9e2f15e446674dd21b0705f3 |
|
11-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Initial commit for major index file code cleanup.
- dovecot.index file isn't anymore required to be updated when syncing.
- Getting the latest index file mapping is now done always by reading
dovecot.index and then reading the latest changes from dovecot.index.log.
- mmap()ing dovecot.index file is slower than reading it, so it's not
currently done unless the file is at 256kB. This may change though.
- Some things are still broken.
--HG--
branch : HEAD |
77f386273491b3a20b49b2a5a9db4b6e360615f9 |
|
23-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Log a warning when we're starting fsck. Log error before calling fsck.
--HG--
branch : HEAD |
633e6afa5de9ad8108ff8dbdee889ecf6170026e |
|
17-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
cleanup
--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 |
a050ca9def13949dbaa67bd6574a41c4f397ae26 |
|
06-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Handle missing/broken transaction logs better. Handle broken sync position
in index header better.
--HG--
branch : HEAD |
6a1cb8bcac9b4dc7846ef19f2e7c53ecf37f1d55 |
|
27-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
Call mail_index_map() with force=TRUE parameter. Required if
mmap_disable=yes, otherwise we'd be fscking our internal index built using
transaction log.
--HG--
branch : HEAD |
e12648867876aaec17e06ee4caef0bb60363449d |
|
29-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Check broken flag counter values every time when updating them. Added
fsck-flag to index header, if it's set do fsck when opening index and when
syncing.
--HG--
branch : HEAD |
b9ce555e8624a5593b3bfd81b572b7d2e1e1fca5 |
|
05-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Don't try to fsck when we're modifying index. It could have happened with
corrupted transaction logs.
--HG--
branch : HEAD |
5f692399f719bd6b68cebb189f1a941fe84613b8 |
|
04-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
If index is completely broken, don't try to fsck it since we'll just crash.
--HG--
branch : HEAD |
1b62b06d6fa688368f661b72d14de6518b5d1789 |
|
07-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Allow calling mail_index_fsck() with log locked.
--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 |
8e7da21696c9f8a6d5e601243fb6172ec85d47b2 |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Added support for per-index sized mail_index_record.
--HG--
branch : HEAD |
92888ef30960c30ccc9e030fe7eab5d4d04a7d1c |
|
24-May-2004 |
Timo Sirainen <tss@iki.fi> |
Some more UIDVALIDITY issues fixed.
--HG--
branch : HEAD |
d482b35af87f5fd872bad007da0475813a401a49 |
|
23-May-2004 |
Timo Sirainen <tss@iki.fi> |
Recent flag fixes. Should work perfectly now with maildir.
--HG--
branch : HEAD |
5ec0ca7ff13595daf0d096c17100afb352e6294a |
|
01-May-2004 |
Timo Sirainen <tss@iki.fi> |
missing index file fixes
--HG--
branch : HEAD |
2a909d051d11e67400b333904e24bf421e99cad7 |
|
29-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
recent fixes
--HG--
branch : HEAD |
5c1a8aee989af87bddefd71e2aa83aa2bd695155 |
|
28-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
Locking changes. bugfixes.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
0d6c06233b2cdc5d854329ea6de3e1a0e244cdb4 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
removed out of the way of new index code
--HG--
branch : HEAD |
6789ed17e7ca4021713507baf0dcf6979bb42e0c |
|
06-Aug-2003 |
Timo Sirainen <tss@iki.fi> |
Index cache file rewrite. It's not finished yet and mbox support is
completely broken. But it's getting difficult to maintain outside cvs :)
--HG--
branch : HEAD |
e2503d9e0306e3d256b314b5410460a18c8b99e4 |
|
21-Jul-2003 |
Timo Sirainen <tss@iki.fi> |
Removed .imap.index.tree file. For now we'll just rewrite .imap.index file
whenever there's expunges. "Expunge binary tree" might be added later, but
it's not really useful until you have thousands of messages in mailbox and
you're deleting old messages from it.
--HG--
branch : HEAD |
c0435c854a0e7246373b9752d163095cc4fbe985 |
|
05-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming style changes, finally got tired of most of the typedefs. Also the
previous enum -> macro change reverted so that we don't use the highest bit
anymore, that's incompatible with old indexes so they will be rebuilt.
--HG--
branch : HEAD |
821b1d66a72b10169ebcad77a9db8ee03c6b6752 |
|
20-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
fsck updated first_unseen_uid_lowwater wrong, which caused SELECT or EXAMINE
to print wrong [UNSEEN seq] tag, or sometimes complain about corrupted
indexes.
--HG--
branch : HEAD |
96a940de09adb2616f1cb99124d0b63deca13d45 |
|
09-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
When printing fsck warnings, print also the index file path
--HG--
branch : HEAD |
8ee027460bff961a99418386b89db8f77a1d699c |
|
28-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
fsck() should reset lowwater marks to end of uids, not to beginning.
--HG--
branch : HEAD |
f6d121ba17e01dbf43a3d9c98a024ed8f1eb9043 |
|
09-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Fixes for first_hole_* updating. Removed last_lookup, it doesn't speed up
much anymore and it's just annoyance to keep valid.
--HG--
branch : HEAD |
647afe054117804e3e156b46ada4c5bec0ac4c38 |
|
09-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
ioloop_create() takes now pool-parameter. io_buffer_create_mmaped() takes
start_offset parameter instead of getting it with lseek(). Instead of using
offsets to index file, we now use record indexes (first_hole_index, tree
file).
--HG--
branch : HEAD |
8d67115ff1d54ba967c835c5aa050111fa54602f |
|
20-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
Index compression broke it + few other fixes
--HG--
branch : HEAD |
2a0faefaf4f30c9acea142ed12c11524ff78ea55 |
|
20-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
fsck() now prints what differences it found
--HG--
branch : HEAD |
02b32cf39a098edf60981fc228e4b034f11f3b90 |
|
14-Sep-2002 |
Timo Sirainen <tss@iki.fi> |
lots of cleanups. also index/datafile is now capable of staying in memory,
as long as it's noticed while opening the index.
--HG--
branch : HEAD |
ec9d382ea6adbf2c8a0e5dd304acb629ebed3203 |
|
27-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
to be able to handle off_t overflows properly. Also changed a few unsigned
int fields into uoff_t so we should now support >2G mails if uoff_t is
64bit. Also fixed several potential integer overflows.
--HG--
branch : HEAD |
e403d34ae6904cd8d9f72345a2f2dc017d3b46aa |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Message data is parsed in blocks (no longer entirely mmap()ed). Several
IOBuffer changes. All mixed signed/unsigned comparisions were fixed so code
can now be compiled with gcc's -W flag. mbox support is broken currently,
and there's most likely several other problems too.
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |