bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
6307d76096764e66bddc63d4a3e5a1aa19cc528f |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on buffer_free(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- buffer_free(&E);
- }
+ buffer_free(&E); |
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 |
e7d0bea63a08b08c47c4b5c187d2cb7127859657 |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Make sure *_malloc() calculations won't cause integer overflows. |
382d45f2557a5e8c787e6170491a6d881d30d195 |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Fixed mail_index_lookup_ext_full()'s map_r with transaction-view. |
ecb1ecd370080361a216d26b1029b7a317071b7d |
|
19-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-index: Code cleanup - moved code to tview_lookup_ext_update()
No functional changes. |
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. |
e49e973f363a56ad186fce372310d5ec6d83d8fa |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
lib-index: Don't lookup mail's expunge-state in transaction log view if caller doesn't care.
This was especially bad with dsync, which could trigger sorting of the
expunges array each time after processing a mail (= potentially tens of
thousands of sorts). |
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. |
d95065a4ca76ab3f17abce9f761d7e11e470d7b2 |
|
07-Dec-2012 |
lion@ubuntu.ubuntu-domain <lion@ubuntu.ubuntu-domain> |
lib-index: Optimized single sequence lookup of newly created mails in transaction view. |
90d077832b1e37952675b85bcd24a0e948bb09d9 |
|
07-Dec-2012 |
lion@ubuntu.ubuntu-domain <lion@ubuntu.ubuntu-domain> |
lib-index: Fixed sequence lookup of newly created mails in transaction view. |
3ef21e8aeacd1e75511eb87cc7a20d0a4c83d6a4 |
|
03-Nov-2012 |
Timo Sirainen <tss@iki.fi> |
lib-index: Transaction view shouldn't return ext records if the ext was already reset. |
4ee00532a265bdfb38539d811fcd12d51210ac35 |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Array API changed: ARRAY_DEFINE(name, type) -> ARRAY(type) name
Easy way to update your existing code:
perl -i -pe 's:ARRAY_DEFINE\(([^,]+), *([^)]+)\);:ARRAY($2) $1;:' **/*.[ch] |
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 |
250105a1440167ef000323cdb2721cd2a3688e1e |
|
22-May-2012 |
Timo Sirainen <tss@iki.fi> |
Don't write "keyword reset" records to transaction log anymore.
These are a bit problematic for dsync's keyword merging to handle. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
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. |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
150fec71ac282bf35f8c446bc4e19e192dff8e67 |
|
14-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Transaction view: Don't assert-crash if record size grows during transaction.
--HG--
branch : HEAD |
48a1d109563d54542797e317a1d9efab22c5b1a1 |
|
21-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Transaction view: Fixed getting extension data from messages whose flags had changed.
--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 |
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 |
3b1f52f010c27c049d8416b685c593282fc4d03d |
|
14-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
transaction view: Allow looking up multiple ext datas for the same message without breaking.
--HG--
branch : HEAD |
977fcb5a2e43c1e8db40b2d58fb6dc0e41d9d019 |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: If index is reset, lookup_first() shouldn't return old sequences.
--HG--
branch : HEAD |
0f37a808b678da97c3995c56261173a5528b1df6 |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: If index is reset, don't return old to-be-removed sequences.
--HG--
branch : HEAD |
6ceec000fb554d3b38715288039b16534d7e3d4b |
|
22-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: get_message_count() returned one too few when there were new messages.
--HG--
branch : HEAD |
4acc6f9d0286bcf9ee3905439b82ef49afafc41f |
|
13-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: One more try at really fixing lookup_ext()..
--HG--
branch : HEAD |
265f59a823f054277e1013984050097ed337ccf7 |
|
13-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: Fix for the previous lookup_ext() fix.
--HG--
branch : HEAD |
bb67eddb5fb05b19217c2960d7a25d443311b1d1 |
|
11-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Transaction view: lookup_ext() crashed if extension was just being added within the transaction.
--HG--
branch : HEAD |
c99ef3a248af169345ceb5cd7d73da45a31b1599 |
|
30-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup_ext*() didn't return properly aligned pointers with updated transaction views.
--HG--
branch : HEAD |
705b3c6a8960e53442e503031a26492ff7253577 |
|
28-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup_seq*() could have returned wrong sequences with transaction views.
This caused assert-crashes in recent flag handling for mbox and maildir.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
856c3044d236edae4a418f8cba5476a3cd71cef2 |
|
29-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup_seq*() were broken for updated transaction view when
trying to find messages past the first newly appended message.
--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 |
a94936bafd127680184da114c6a177b37ff656e5 |
|
16-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Removed _ prefixes from function names.
--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 |
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 |
44c5e644cb413a6559bf2d4179cbe48f9a82f366 |
|
10-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_ext_get_reset_id() takes now map parameters. Fixed it to work
properly with transaction views.
--HG--
branch : HEAD |
5278c93bd7105c32ac7ec37f36015d5950f6cbca |
|
06-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_index_ext_get_reset_id() which returns the latest reset_id when
using transaction views.
--HG--
branch : HEAD |
1d3f7c1278168d5b1cbfa9a2cc9929a0909056b4 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Recent flag handling rewrite. Still not perfect with maildir.
--HG--
branch : HEAD |
9bbfcf3e9aa5e1778a13109f471d1725c2766083 |
|
16-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
mail_index_lookup_uid_range() works now correctly when searching for newly
appended messages.
--HG--
branch : HEAD |
3776ed607821b502468bdfd5a4533af3002125d1 |
|
01-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed view->hdr. Use view->map->hdr directly.
--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 |
ef708a587774bc77c3b9dfe7f88b968530166fd4 |
|
02-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
And fix for previous change..
--HG--
branch : HEAD |
08b3b663c0e2b46d7408009034fcb8738a22bb05 |
|
02-Aug-2006 |
Timo Sirainen <tss@iki.fi> |
Transaction view: mail_index_get_header() returns now updated next_uid field
after appends.
--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 |
5d27987496b12dbad8c78aba5a9ccc74e6606623 |
|
12-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
mail_index_lookup() and mail_index_lookup_full() returns now 0 if the mail has been expunged within the transaction.
--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 |
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 |
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 |
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 |
6f9b1b72282365a6770e64184ba4dbd0fb614e08 |
|
29-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
If extension data changes was actually found from transaction view, it was
returned wrong. Caused problems with cache file.
--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 |
b20fb5b1df9d604a7541f5118fc5b4b466d211ef |
|
24-Nov-2004 |
Timo Sirainen <tss@iki.fi> |
Changed mail_index_get_header() to return the header as return value because
it can't fail anymore.
--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 |
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 |
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 |
6ee148cd3532f0cac445b16b433635c357d21a63 |
|
15-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
don't return void types
--HG--
branch : HEAD |
5a07b37a9df398b5189c14872a600384208ab74b |
|
05-Sep-2004 |
Timo Sirainen <tss@iki.fi> |
Save extra record/header infos into index file permanently.
--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 |