bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
c147bff818798a979d93537f72f5c1f68f5d5ba8 |
|
24-Nov-2017 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
global: Use t_buffer_create
sed -i -e 's/buffer_create_dynamic(pool_datastack_create(), */t_buffer_create(/g' |
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 |
df1b2c3ff9cea4b57a4b9f1688bef54998fda5a4 |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Don't waste 3 bytes of space in struct mail_index_record.
It was always supposed to be used mainly for keywords, but it got broken
many years ago and nobody noticed. |
1af0c5d8814c2304d09d8ca844a84f0b9b0c1f61 |
|
03-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Added header-size asserts |
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> |
be8c8479f918875eda871c5685ab2b4067228e26 |
|
02-Jun-2014 |
Phil Carmody <phil@dovecot.fi> |
mail-index: use _REC_AT_SEQ not _MAP_IDX in loops from [seq1..seq2]
[seq1-1..seq2) becomes [seq1..seq2]
Don't decrement before starting, and include the upper bound.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
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. |
8ae72ad7d0c69e972cfa65d1e2ce4e3e9a8b765c |
|
24-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
Replaced all -1U and (unsigned int)-1 with UINT_MAX.
It's somewhat clearer this way. Also clang's -fsanitize=integer gives
runtime errors about -1U (but not about explicit casts, so no need to change
(type)-1 casts). |
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. |
3281669db44d09a087a203201248abbc81b3cc1a |
|
06-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Renamed buffer_create_*data() to buffer_create_from_*data() for consistency.
Especially i_stream_create_from_data() was a very similar function, which
made it difficult to remember which one should have "from" and which one
shouldn't. |
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. |
d200ae87140a1985fe527e6527bc4bd3035189b1 |
|
04-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Avoid assert-crashing on keyword-update record with empty keyword. |
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. |
d721a5f55d3a4a100ae593ab85fa13661d2134ab |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-index: Make static analyzer happier. |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
02752bc8d64df8cd361f464e55422f7b3f2f143e |
|
25-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
Removed buffer_create_static_hard().
buffer_create_data() handles most of the situations where it was wanted.
--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 |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
20b9283d4af31e45e588014da427fb2dbcd3227a |
|
07-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Reverted fix for dropping expunged messages from flag updates. It's more
common that the UID range was actually meant to include the expunged
message.
--HG--
branch : HEAD |
200c36b2e0816ac102f7f9a55e6b1b7d75848256 |
|
06-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
If a message was expunged but is still visible in a view, its flags/keywords
might have been updated if an uid range included the expunged message.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
3da614c39dd29f536c485089e67839b4cf89fed3 |
|
03-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Renamed mail_index_lookup_uid_range() to mail_index_lookup_seq_range(), made
it return a bool and added mail_index_lookup_seq(). Cleaned up the code to
use these functions.
--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 |
08f03325b34becc0e9f2bb130ac013bf54b9cca3 |
|
15-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Make sure extensions updates don't modify keywords.
--HG--
branch : HEAD |
d051664df497582e1eb75a9f238d04b65e858db8 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Cleaned up keyword handling code.
--HG--
branch : HEAD |
7ded22760598b78ee29f9418eacc0abe3fb51055 |
|
02-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Only index extension indexes are now called "ext_id". For map extension
indexes use "map_ext_idx".
--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 |
d1c2f6dd39ebb7f6b220ae2afda1162ba72ab43b |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added an assert
--HG--
branch : HEAD |
8870854fbd44602a2d2174177c305f3570401a09 |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Log an error if empty keyword name is tried to be used.
--HG--
branch : HEAD |
f0559b6bd1914e9118772d49415defe3dbb1817b |
|
27-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
If keyword ext record is missing, log an error instead of assert-crashing.
--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 |
bf91bed88d4e294b4577ba2a3b14d87cf35ae135 |
|
02-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mmaping works again properly. Changed to use private mmaps which are
directly modified. The file is kept locked the whole time while it's being
mmaped, so multi-process updates may be slower than necessary.
--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 |
c91de2744f8c1e61e91082ff5e214450f28a0e7c |
|
13-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Moved duplicated log record validation code to a single place.
--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 |
055a42c6987f93fb88291f64813dfceb1b25895d |
|
24-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
When adding new keywords, update the index file atomically so the keywords
won't break if we crash in the middle of the header update.
--HG--
branch : HEAD |
10fbaec619a9904f98ee72b687b9ca01070f8650 |
|
22-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Removed accidentally committed debug assert.
--HG--
branch : HEAD |
190237ce467d2389dfb809874b0fec86d3c7968d |
|
18-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
Keywords were sometimes being re-added to the index even while they already
existed, causing the record size to bloat.
--HG--
branch : HEAD |
8f7b00599e73fe71b1d2c6c65f8ae98aac1b23fb |
|
23-Jul-2006 |
Timo Sirainen <tss@iki.fi> |
In some conditions a keyword could have been added to the index twice. Also
a few cleanups.
--HG--
branch : HEAD |
9887c39c5ba429169389153ca99de49e084a73f0 |
|
30-May-2006 |
Timo Sirainen <tss@iki.fi> |
If we're synchronizing a view (and not index itself) from transaction log,
give a different error message and don't mark the file corrupted.
--HG--
branch : HEAD |
1e47cfede3a0b62654105daab00e97b5d660bc6b |
|
16-Feb-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Try to handle ESTALE NFS errors the best way we can.
--HG--
branch : HEAD |
41bb0aa8e357876bc9a1916a37c9e3e78e5f8185 |
|
02-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Don't rewrite index file every time with mmap_disable=yes.
--HG--
branch : HEAD |
bf045aa2e9c3846ecde84db303db6588b173bbae |
|
25-Aug-2005 |
Timo Sirainen <tss@iki.fi> |
We didn't add the ending NUL character in keyword name, which caused more or
less random failures.
--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 |
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 |
287ba82a8da3eaa473b5735d4eeac2fb4c5d8117 |
|
12-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Changed many buffers to arrays. Cleans up the code a lot.
--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 |
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 |