677b75f90d81eafe742896d6570a2f63ce501d05 |
|
19-Jan-2018 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: don't cast NULL to void *
NULL is guaranteed to be a void * thanks to
dd6043c05e32a8e8db1233ed711a2c74d1477a89. |
bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
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. |
87490012895b4f371635ded00add04c9107dcfef |
|
18-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert index to use container_of |
c150beda11da6fbbb1a936829550945d5e884f68 |
|
07-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
lib-storage: convert mbox to use container_of |
7204b8112e005ff81dcf628f7880ef1feed1effe |
|
19-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail.mail_stream_opened and .mail_metadata_accessed
These allow determining after mail_*() calls how efficiently they were
performed. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
21aaa6affb9f134112b75b5db737309fc35ef1cf |
|
27-Oct-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: rename get_real_mail to get_backend_mail
Also change the function signature so that it returns an int to indicate
success or failure. |
0206dc57f2c04da69599dea5816235cfeb2b897a |
|
13-Aug-2016 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: remove set_cache_corrupted_reason from mail_vfuncs
Change set_cache_corrupted signature to what set_cache_corrupted_reason
used to be. |
6de6ec228a41275ddda972d4a554699ea75cd06d |
|
28-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Added mail_set_cache_corrupted_reason() |
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> |
3063bd8ff05d3d8cd33156f4366b36890e501436 |
|
19-Nov-2014 |
Timo Sirainen <tss@iki.fi> |
mbox: Added more (and earlier) detection for errors in mbox istreams. |
915bb1572a406d30013ed3ee83fba7082a6d1bae |
|
27-May-2014 |
Phil Carmody <phil@dovecot.fi> |
lib-storage: functions returning bool actually return ints
Their return values are compared as if they are at least tri-state
(-ve, 0, +ve), so really aren't bools at all.
Note - this should cause the code to change in behaviour, and thus might
introduce regressions as previously all non-zeroes would have been mapped
to 1.
Signed-off-by: Phil Carmody <phil@dovecot.fi> |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
fc22ecbb03396eda9270472446a6065a986a43e0 |
|
20-Sep-2013 |
Timo Sirainen <tss@iki.fi> |
mbox: Handle correctly if MAIL_FETCH_HEADER_MD5 lookup fails because mail is already expunged. |
03010dbaa74ec70f062994dfe3cd39bedc99a28b |
|
16-Feb-2013 |
Timo Sirainen <tss@iki.fi> |
mdbox, mbox, virtual: Avoid getting expunged-status in index lookups when not necessary.
This especially improves dsync performance with mdbox. |
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. |
f46885a5b78b15a8d2419f6e5d13b643bd85e41f |
|
04-Jan-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for "private modseqs" for INDEXPVT index.
Used by dsync (next commit). |
1f1ee8db68d9ae1604350801cd8dc33ebe29fe8a |
|
29-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Renamed mail_storage_set_index_error() to mailbox_set_index_error() |
5f44975ec6c5755dd74bcd4c47a123a7242ecab3 |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved index_mail.data_pool to mail_private.data_pool |
86c6b2546b0bbfce326583f14d05f59674a6d861 |
|
02-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
mbox: Added support for copy/move/catenate within same mailbox. |
27a44fcfd8d19bffe0f267f20a2b5d3fe7600fdd |
|
19-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
Removed CONTEXT_TYPE_SAFETY macro and reimplemented its functionality better.
gcc/clang now gives a compiler error in many places if callback isn't
exactly what was expected. It's also now much easier to add more of these
checks. |
306b3f41b05da642d87e7ca7a1496efce9f5902f |
|
11-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
IMAP BINARY extension supports now FETCH BINARY command. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
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. |
7bd301fdbfefe7cef3576d19ece29c75ebe53baf |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Make static analyzer happier. |
a10ed8c47534b4c6b6bf2711ccfe577e720a47b4 |
|
23-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
The non-obvious APIs where NULL parameter was changed to "" are
master_service_init() and auth_master_user_list_init().
These checks can currently be enabled only on a patched clang:
http://llvm.org/bugs/show_bug.cgi?id=6786 |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
ecd69c4e8371853667e01b0c16d436ef7f7393e2 |
|
12-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_log_update_wanted_fields() |
6df0ab0c1ab91f06b6418cb30eff44405a1b8f02 |
|
04-Oct-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_get_hdr_stream() and use it where possible.
This makes it clearer for backends when it needs a message body instead of
only message header. |
37fd9adeeed62ba1d29f158f7ce5a05bc8280f5a |
|
12-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed fetching last message from compressed mboxes. |
767cd7e92a46ca7c0dc4823936750b2bf2eb99e3 |
|
12-Sep-2011 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed fetching last message from compressed mboxes. |
421d30619384e72a27e2a5d13ff6525aff4d17fe |
|
31-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Redesigned mail precaching APIs.
There's no longer a one monolithic mailbox_sync(MAILBOX_SYNC_FLAG_PRECACHE)
call, but rather one mail_precache() call for each mail to be precached.
This allows the callers to show the progress and in general is cleaner. |
36f4f01d56ec9156ab75bc2047a8388192df3178 |
|
23-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
mbox: Avoid crashing when getting GUID or header-md5 in some conditions.
mbox file can be opened and locked (especially with pop3_lock_session=yes)
without actually creating a stream for it. |
7631f16156aca373004953fe6b01a7f343fb47e0 |
|
28-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail->saving was set too late, which could have caused crashes. |
c7e14824e4e1ca9dc5d48d1eddc4a38d3041218f |
|
05-May-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_parse(). |
e6aa82aeb50948cb47a45a1b61a9c16d6a162388 |
|
28-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
mbox: Looking up GUID/MD5(header) more than once was broken. |
e15b305e90c9834734ccf35ed78f0ad29d570ee9 |
|
31-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Search supports now prefetching data for returned mails. Dropped imapc's own prefetching.
mail_prefetch_count specifies how many mails can be kept open and issue a
prefetch.
This works using posix_fadvise(POSIX_FADV_WILLNEED) for maildir, sdbox and
cydir backends. Apparently only Linux supports this.
imapc backend also implements this internally by sending wanted IMAP
commands to remote server. The command pipelining helps with latency. This
change also makes it actually possible for imapc backend to first check if
wanted data is already cached in local index and avoid sending unnecessary
IMAP commands to remote server. |
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. |
ca98892a6b8a30ffc1fe26fcf02c7d59e3204e7e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Lazily look up mailbox path and permissions. Added functions to get 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. |
6564208826b0f46a00f010d1b5711d85944c3c88 |
|
20-Oct-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added istream_opened() method to struct mail.
This can be hooked into by plugins that want to do something with the
message's stream in the message file, rather than the virtual resulting
stream visible to client. For example when using dbox attachments, this stream
contains only the data in the dbox files without any external attachments. |
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 |
61e27995aadbc2f97927d3635f98d1d4ac4751e0 |
|
13-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Removed struct mail.get_index_mail(). get_real_mail() is basically the same.
--HG--
branch : HEAD |
9af6cc9ebc9986c1275ebdfa29c39e152af1557e |
|
12-May-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_get_real_mail() that returns physical mail in a virtual mailbox.
--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 |
cbcde6379f1b0b27bdefc4b11eec93ad69e459d4 |
|
22-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed header-md5/GUID lookup when it's done with mbox file unlocked.
--HG--
branch : HEAD |
f140f88a5ab3e2194f214c11f9f418559e949c83 |
|
18-Feb-2010 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed getting header MD5 (GUID) if it wasn't already in index.
--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 |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
e48c10b9db945fd72e2315e3ec343174fa55c7c7 |
|
18-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Minor error message improvement.
--HG--
branch : HEAD |
bf9402875418faf11825cf11fbe06326b6086e3d |
|
29-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Return header MD5 allocated from mail's data pool, not data stack.
--HG--
branch : HEAD |
ee3e01f75b1db691bf20dd4e2558965421b8f937 |
|
29-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Use header MD5 as message's GUID.
--HG--
branch : HEAD |
5daa12cc1c862eec4f63df42227812d3514da2cc |
|
29-Oct-2009 |
Timo Sirainen <tss@iki.fi> |
mbox: Fixed looking up header MD5 values when they didn't exist yet.
--HG--
branch : HEAD |
225e82df5dd1e765f4e52b80c954558f00e5a7df |
|
01-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
Added pop3_save_uidl setting.
When UIDLs are sent to client, save them to dovecot-uidlist. This allows
changing pop3_uidl_format without messages getting re-downloaded. It's also
useful with virtual POP3 INBOX when UIDLs are based on IMAP UIDs that may
not be as stable as in non-virtual INBOX.
--HG--
branch : HEAD |
ea5f188fc29dfaa0c4071e6413e16e1d04263722 |
|
31-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
index-storage: Moved mail MD5 calculation code to mbox-specific code.
Nothing else used it.
--HG--
branch : HEAD |
ad48319996942463675b53877092ab7e13a7a75a |
|
29-Jul-2009 |
Timo Sirainen <tss@iki.fi> |
Added ability to specify message's minimum modseq value.
--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 |
1d2b188f0eedc3cab6e27ceac5425a037f38042e |
|
15-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Mailbox opening and closing APIs changed.
--HG--
branch : HEAD |
ebe6df72f1309135f02b6a4d2aef1e81a073f91c |
|
29-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
Added struct mail.lookup_abort, which can be used to abort lookups that can't be done using cache.
--HG--
branch : HEAD |
aa247243412a49f9bdebf7255e131dc6ece4ed46 |
|
25-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Mail copying: Avoid updating cache file because of copying.
The mail is being opened in any case, so it's unlikely to help anything.
--HG--
branch : HEAD |
a64adf62fa33f2463a86f990217b0c9078531a40 |
|
28-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Initial commit for config rewrite.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
8ed8c821ba8aab0b4ed0375f87d48737ef0e0d8e |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't cache mbox state after it has been unlocked.
--HG--
branch : HEAD |
73247459cf41eb1e5ae5bc61354db46d3b05ee75 |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mbox locking fixes.
--HG--
branch : HEAD |
690bafa70767e3f6e98bbfd62ad4a26be2387ea9 |
|
13-Dec-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Added a new index header where dirtyness state is stored.
This also fixes a bug where sync_size wasn't updated in header when mbox was
marked dirty, causing other parts of code to assume wrong file size and
return wrong size for the last message and/or cause "Next message
unexpectedly lost" errors.
--HG--
branch : HEAD |
b12a6d0e54318273acf0d0fb8b3f4c29f67b62b0 |
|
30-Aug-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: If we detect corrupted cached offsets/sizes, make sure the mbox gets resynced.
--HG--
branch : HEAD |
5abb33fdc94c081ccd3213bf7d0fa9d0367b4bfd |
|
19-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't give "Can't find next message offset" warnings when (quota)
plugin accesses the message being saved.
--HG--
branch : HEAD |
54d42552005111841ab45ec9ca7559075fabd5df |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
Getting "next message's offset" was broken if a new message had been added
recently. This broke message size calculations.
--HG--
branch : HEAD |
f480b30abdddf6f1beb8a2c5b1ce4bf8999400db |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
Error message improvements.
--HG--
branch : HEAD |
64a67c0296b120b6e15169ac9d84dec964e55969 |
|
04-May-2008 |
Timo Sirainen <tss@iki.fi> |
mbox: Don't stop at From_-lines in the message bodies. Use Content-Length:
header to figure out if it belongs to a message body or not.
--HG--
branch : HEAD |
ea4f28398a0e4fb46be074307d512925c1fe7fc1 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
struct mail can't necessarily be casted to struct index_mail. Added a new
get_index_mail() method to return it.
--HG--
branch : HEAD |
01404d41657a104c5ea1c12bb87f9c321e9c1ac4 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
struct mail can't necessarily be casted to struct index_mail. Added a new
get_index_mail() method to return it.
--HG--
branch : HEAD |
a2f250a332dfc1e6cd4ffd196c621eb9dbf7b8a1 |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Initial CONDSTORE support.
--HG--
branch : HEAD |
b90c984b8dae4f52fb150fc30e799af1177bcf99 |
|
17-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed "Cached message offset lost" errors when quota plugin was used.
--HG--
branch : HEAD |
6fcc89d6c081c4411660e68a29dc41e74e29f33c |
|
17-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Fixed "Cached message offset lost" errors when quota plugin was used.
--HG--
branch : HEAD |
838e367716bbd5e44b4a1691db9cbf72af53e9f0 |
|
14-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_set_cache_corrupted() to rebuild the cache file and force
recalculating the given field.
--HG--
branch : HEAD |
277506e6e05cdac79bacfb57e629e2fa0aa1ffdc |
|
14-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_set_cache_corrupted() to rebuild the cache file and force
recalculating the given field.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
a5c8dc283ef673fcdae158513b8032e74b45f59a |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Avoid moving raw stream offset.
--HG--
branch : HEAD |
10c96a244935de4add8213ba0b894178dfb889a5 |
|
22-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Removed v_start_offset parameter from i_stream_create_limit(). We'll always
use input->v_offset now.
--HG--
branch : HEAD |
aa215ab623706463cea1d047f975ffe51d3f0c05 |
|
21-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
mail_get_physical_size() returns now the message stream's size and not the
physical size on disk that varies. This fixes mbox issues and it's also more
correct conceptually, because it doesn't return metadata size with other
formats either.
--HG--
branch : HEAD |
a757f31393b9d6fc7760a9dec8363404ab3ae576 |
|
09-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail_get_keyword_indexes()
--HG--
branch : HEAD |
1b5366b2234892f8930a29351da06b193e385150 |
|
04-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Optimize physical mail size calculation by using the next message's offset
or the mbox size for the last message.
--HG--
branch : HEAD |
ae1b268ffff743ad9927c304a1344c5cbd7f909d |
|
22-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Cleanups/rewrites to how/when date/size caching is done.
--HG--
branch : HEAD |
8f017a40470ef2f4b530000d947a8bce44350a5e |
|
23-Oct-2007 |
Timo Sirainen <tss@iki.fi> |
Return mbox stream without CRs. Fixes crashes at least when searching.
--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 |
0d86aa0d47f7393c669c084b34c0537b193688ad |
|
13-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Added mail.close() virtual function.
--HG--
branch : HEAD |
83bb013a99f0936995f9c7a1077822662d8fefdb |
|
12-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
mail_*() APIs changed to return int and return the actual data as pointer.
Changed some code to do error handling a bit better.
--HG--
branch : HEAD |
fe363b433b8038a69b55169da9dca27892ad7d18 |
|
24-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
Removed memory pool parameter from iostreams. Default pool was almost always
used, and the stream usually required destroying anyway so it didn't even
make freeing memory easier.
--HG--
branch : HEAD |
910fa4e4204a73d3d24c03f3059dd24e727ca057 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Added MAIL_ERROR_EXPUNGED. Set the error whenever expunged message is tried
to be accessed.
--HG--
branch : HEAD |
4b41116563110d00330896a568eff1078c382827 |
|
17-Apr-2007 |
Timo Sirainen <tss@iki.fi> |
Call sync_notify() once at the end of syncing. Allow accessing mails even
while syncing, as long as it's safe to do so.
--HG--
branch : HEAD |
ccc895c0358108d2304239063e940b7d75f364ab |
|
30-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Removed struct index_storage abstraction. It's pointless.
--HG--
branch : HEAD |
fe6c1556d3529a6376d4cbb3766c34aebde0de99 |
|
25-Jan-2007 |
Timo Sirainen <tss@iki.fi> |
If we can't find the mail from dirty mbox even after syncing, fail with
error instead of looping forever.
--HG--
branch : HEAD |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
8000c86be02008b74acc71fa422444dc432e2c01 |
|
15-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
We added received date as time_t instead of uint32_t which crashed with
64bit systems.
--HG--
branch : HEAD |
90adcaa0a00eba29b7fbd50ca66be11c8d086d6a |
|
29-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added mail_get_save_date() and some cleanups.
--HG--
branch : HEAD |
a12399903f415a7e14c2816cffa2f7a09dcbb097 |
|
15-May-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
Added mail_set_uid() to select a mail by UID.
--HG--
branch : HEAD |
97511ac4d7607e1ba64ce151eda3d9b5f9775519 |
|
18-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Added mail_cache_min_mail_count setting.
--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 |
c74ea62a27878910e3ca1614ca055d7e2b3b00d5 |
|
11-Jan-2006 |
Timo Sirainen <tss@iki.fi> |
Handle unexpectedly breaking mboxes better without crashing.
--HG--
branch : HEAD |
597dce34068d603fb759b4dff404b34049213e51 |
|
30-Dec-2005 |
Timo Sirainen <tss@iki.fi> |
If mbox offsets are dirty and the mbox is write-locked (eg. copying mails to
box), we got to infinite loop.
--HG--
branch : HEAD |
a0b0d629931773c17a236f6214adbe0e13b9b3fd |
|
15-Jun-2005 |
Timo Sirainen <tss@iki.fi> |
When syncing mbox, update MD5 sum for mail if it changes. If we need MD5
sum but it's zero, resync mbox to get it.
--HG--
branch : HEAD |
6060b7c8edf8fce73470d0df6a2479b69b01c537 |
|
26-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
If we see mbox offsets break, don't invalidate whole index but rather force
resyncing.
--HG--
branch : HEAD |
b5e6f6f27c1461f0f9f202615eeb738a645188c3 |
|
08-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Moved mbox/maildir-specific variables from struct index_mailbox to
mbox_mailbox and maildir_mailbox.
--HG--
branch : HEAD |
87460b08cb97b31cde640d4975a6aa2c1d0e7226 |
|
29-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Renamed mail_get_header() to mail_get_first_header() and mail_gets_headers()
to mail_get_header_stream(). Added new mail_get_headers() which returns
NULL-terminated string list of all found headers.
--HG--
branch : HEAD |
a1808be0774cbcb28fec45341aabf803ec44bae5 |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
get_physical_size() was crashing if mbox hadn't been opened yet.
--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 |
e9a655e36757b0acf550ec5914559d111036decb |
|
15-Mar-2005 |
Timo Sirainen <tss@iki.fi> |
Include transaction pointer in struct mail.
--HG--
branch : HEAD |
b093b87c303d420bd14aeb53498f881ef2944aa0 |
|
07-Jan-2005 |
Timo Sirainen <tss@iki.fi> |
mail->expunged field wasn't actually set. Now it's always set if
wanted_fields contains message header or body.
--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 |
d30da25fb6be1f1c667d93767c9194000194b618 |
|
05-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Renamed mail_index_refresh() to mail_index_reopen_if_needed(). Added public
mail_index_refresh() which makes sure index is fully refreshed at the time.
Added mbox code to call it after mbox is locked to avoid using old mbox offsets.
--HG--
branch : HEAD |
af1f4b17a92ca7b2661737e65c7849df289d3070 |
|
10-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Don't lock/unlock mbox separately for each message. Drop the lock only at
the end of the transaction.
--HG--
branch : HEAD |
f1901fd21906911f7be075c965ac882f6a87b4c3 |
|
28-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added mbox_dirty_syncs setting which delays re-reading the whole mbox when
it's changed.
--HG--
branch : HEAD |
d67fde1a8ebc1d85704c5986d8f93aae97eccef3 |
|
28-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Added mail.get_physical_size().
--HG--
branch : HEAD |
185ed0142fbbfb86e7a98519e7c6f11ec00723cd |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
Changed istream-header-filter API a bit. Added HIDE_BODY option. Fixed
mail.get_headers().
--HG--
branch : HEAD |
bd96f3feda739823bac48ab881be2a19d7ccb114 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
header filter can now optionally use either LF or CRLF linefeeds.
--HG--
branch : HEAD |
a72355fef49c512c13b7d8c3e07f4f76ebd57a10 |
|
22-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
istream-header-filter now parses the headers incrementally while read()ing,
instead of doing it at initialization and storing into one large buffer.
--HG--
branch : HEAD |
e015e2f7e7f48874495f9df8b0dd192b7ffcb5cc |
|
18-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Header caching redesigned. New design allows caching decisions per field, so
they can be divided to temporary/permanent. Cached headers are now always
returned in original order, old code didn't guarantee it. Some other caching
changes. (still missing code to store changes in caching decisions)
--HG--
branch : HEAD |
992a13add4eea0810e4db0f042a595dddf85536a |
|
08-Jul-2004 |
Timo Sirainen <tss@iki.fi> |
Cache file fixes, API changes, etc. It's still in somewhat ugly state, but
getting better..
--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 |
18565c69efcd7db003dbf27cf625ed822e889fb1 |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Filter internal headers from user visible input stream. Make mailbox_save()
use the same header list.
--HG--
branch : HEAD |
8af07808ba203f8709e2ff9eaf2291e1c4a4d53d |
|
20-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Expunge fixes
--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 |
7f773564b94e6054a40d3785cb63c29f1e4d4dee |
|
16-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Complain if file isn't in mbox format. Complain if From-line wasn't found
from expected location. Parser should handle now correctly any kind of mbox
no matter how corrupted.
--HG--
branch : HEAD |
63a61b7a739ae0f3f520215137d9c50f94d0f34f |
|
15-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
lock the mbox before reading it.
--HG--
branch : HEAD |
db7c9201c88e3d9bee10485194ee5b0c67249916 |
|
15-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
more syncing fixes
--HG--
branch : HEAD |
01cbf4ac5d44137ab434791be7f838d98d0fcf3b |
|
14-Jun-2004 |
Timo Sirainen <tss@iki.fi> |
Save mbox offsets to index file using extra_records. Some other fixes.
--HG--
branch : HEAD |
b2ecd50bb98c44816cb07c17aa17fae2b425f941 |
|
06-May-2004 |
Timo Sirainen <tss@iki.fi> |
Some mbox fixes. Kind of works now.
--HG--
branch : HEAD |
8fcff4c5b52f24d9c681805fdf06b486f1d0fcbe |
|
06-May-2004 |
Timo Sirainen <tss@iki.fi> |
mbox code compiles again, but syncing is only partially implemented so
accessing mboxes fails..
Also some cleanups to index-storage and maildir code.
--HG--
branch : HEAD |