bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
47a5a7e8296f3b8f2fac9a0659d4de3f2723ba4a |
|
06-Oct-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Use PRI* macros and %zu instead of casting |
0dab9cb35a976c49b28a11e28d5570f5191f1a7a |
|
22-Sep-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
lib-storage: Add reason to mailbox_transaction_begin()
Remove mailbox_transaction_set_reason(). |
0d1b8b6bec79746c5d89d57dd8c1688946bd9237 |
|
19-Sep-2017 |
Josef 'Jeff' Sipek <jeff.sipek@dovecot.fi> |
global: start relying on timeout_remove(NULL) being a no-op
Cleanup performed with the following semantic patch:
@@
expression E;
@@
- if (E != NULL) {
- timeout_remove(&E);
- }
+ timeout_remove(&E); |
5caf685b62a30b1f935b80a3f9f1bdcefb63a38c |
|
12-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: Fix pipelining commands with SEARCH
If the SEARCH wasn't a long-running one, it ends with going to sync.
The command state shouldn't then be changed to _WAIT_EXTERNAL. |
cddfd1355db6b60c71d7ee3c0b4f23b3efcc9ad1 |
|
03-Apr-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add mailbox_transaction_set_reason() calls
Added to the most important places. |
be6bde0e1f40db97871b657603188fc9041f1d04 |
|
19-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
imap: If SEARCH/SORT fails but returns some results, send them to client.
The previous error handling fixes cause SEARCH/SORT to now fail if there
are any problems reading mails. This change makes the commands still
return the best known results, so the IMAP client can still use them,
even though they may not be entirely correct. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
f153764d47dcb3b500f65238ac531100a338b397 |
|
12-Dec-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
imap: Fix assert when waiting for input on SEARCH/SORT
Set cmd->state to CLIENT_COMMAND_STATE_WAIT_EXTERNAL
because we are not expecting input or output.
Fixes Panic: file imap-client.c: line 854 (client_check_command_hangs): assertion failed: (client->io != NULL || (client->output_cmd_lock != NULL && client->output_cmd_lock != client->input_lock)) |
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/' |
814bf67459ad405a157af0b8940602024d7fadfe |
|
23-Sep-2015 |
Teemu Huovila <teemu.huovila@dovecot.fi> |
Remove now-unnecessary direct stdlib.h #includes. |
b7c841fd6dc508d87db8b1b64ea1a8f4cb0b8971 |
|
21-Sep-2015 |
Timo Sirainen <tss@iki.fi> |
imap: When running SEARCH on "background", run it through command_exec()
Otherwise all the timing information isn't right and the pre/post hooks
weren't being called so stats counting was also wrong. |
115cf0320f679e4e63db25e7f44f47977b8338de |
|
21-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
imap: Removed separate time counting from SELECT and SEARCH commands. |
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> |
7da99e97d68f854b8726755d36dfb24b6cf08701 |
|
05-May-2014 |
Timo Sirainen <tss@iki.fi> |
imap: Brought back the original SEARCH PARTIAL code with the minor fix that it actually needed.
The new code in v2.2.11 was completely wrong. The code in previous commit
was broken with SORT. The original code was correct otherwise, except it
couldn't handle partial1 pointing past the valid range. |
e0bca7e18f2cd90038a07cea7298e0ea688de29f |
|
05-May-2014 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed SEARCH PARTIAL to work correctly with UIDs and with SORT results. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
2b70e45cd586df6f082149df87d01da8060e30db |
|
03-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
imap: SEARCH/SORT PARTIAL reponses may have been too large. |
08837f59c1466ec0f533f120b167f2a3e87da738 |
|
03-Dec-2013 |
Timo Sirainen <tss@iki.fi> |
imap: If SELECT fails with "mailbox is inconsistent", disconnect client. (Plus related cleanups.)
The inconsistency can also be used to indicate that something is badly wrong
and nothing useful can be done before client reconnects. |
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. |
686ad6d723004b807fd558f3ef9d1f88afa7e127 |
|
24-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
Use imap_append_*string() instead of imap_quote_append*() where possible.
This makes it clearer what types of output should be sent. |
51cbc45fc1ac5dde29bc2adbb175945df1b4f7d4 |
|
13-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
imap: Implemented NOTIFY extension.
Requires mailbox_list_index=yes to work (and to show up in capabilities).
SubscriptionChange event is still unimplemented. |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
e2a88d59c0d47d63ce1ad5b1fd95e487124a3fd4 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Added o_stream_nsend*() and related functions to make delayed error handling safer.
Once o_stream_nsend*() is called, o_stream_nfinish() must be called before
stream is destroyed to finish checking if there were any errors. If
something failed and the stream is just wanted to be closed,
o_stream_ignore_last_errors() can be called.
For streams where errors don't really make any difference (network sockets)
you can call o_stream_set_no_error_handling() immediately after creating the
stream. |
86bde2c1838d1ce967fa2b394bb952004a4adcb7 |
|
24-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
seq_range_array_add() API changed. Added other functions to provide the less common use cases. |
5f5870385cff47efd2f58e7892f251cf13761528 |
|
12-Feb-2012 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2012. |
b104354c4a829e828c361e4a167bf7106d124174 |
|
28-Jan-2012 |
Timo Sirainen <tss@iki.fi> |
imap: CONTEXT search return option wasn't handled at all. |
da2f9bc5d477bdfee1773d7dcbcdd5a293c7d48c |
|
26-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
IMAP: Implemented the rest of FUZZY extension. |
eef4ba0cc3e78f8c26804c1c9251a76580a41f0c |
|
29-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Changed mailbox_search_*() API to return pointer struct mail.
This reduces the flexibility, because now different mailbox_search_next()
calls can't have different mail parameters with possibly different
wanted_fields settings. This flexibility was never used though, and removing
it gives a couple of benefits:
* it's now easier for backends to implement prefetch and parallel search
* usage is easier since mail_alloc()/mail_free() is no longer needed |
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. |
e29f8a6a52ca72fc6010132fb86dd00e9d96432a |
|
31-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved setting "wanted fields/headers" fields for sort program from imap-specific code.
Also separate between fields that are actually wanted to be fetched from the
fields that sorting wants to temporarily use. |
51327f2489a4e0e615eb9f7d921473cf8512bb79 |
|
01-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved some items from mailbox_get_status() to a new mailbox_get_metadata().
The idea is now that all status items are tracked all the time after mailbox
is opened and they can always be looked up without failure. The metadata
items are looked up lazily and the lookups may fail at any time.
mailbox_get_status() can be used after mailbox_alloc() to indicate that the
mailbox doesn't necessarily have to be opened, just that the status fields
get returned.
If mailbox is already known to be open, mailbox_get_open_status() can be
used. It never fails. |
31ed209b28f30bcc2ce20de07aaa43d432126e24 |
|
09-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap: Fixed a memory leak in ESEARCH |
5be786ac7cafd3dcd8574edaec31eb414ae92b03 |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Removed previous log prefix hack. |
0fb11b6350ecb430cd1888b662aac7624a26adad |
|
03-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
imap, pop3: Try to use the correct log prefix when service_count!=1. |
c2fbbf7515aa419dc8b2d62a3c2bb0471d51a391 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-imap: Changed imap_arg accessing APIs.
The new one is easier for both coders and static analyzers.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
7bd72e4deca3cbf757dd1ea298486d9f3bc24226 |
|
02-Dec-2009 |
Timo Sirainen <tss@iki.fi> |
Use array_foreach() more.
--HG--
branch : HEAD |
f3bb2fbe87425dc89a839908985af496f7f65702 |
|
18-Nov-2009 |
Timo Sirainen <tss@iki.fi> |
mailbox_search_next*() API changed to return bool.
If search fails, it'll be noticed anyway by mailbox_search_deinit().
--HG--
branch : HEAD |
7ef3553585e556f35d5919589cfdc1de3329e4bb |
|
12-Aug-2009 |
Timo Sirainen <tss@iki.fi> |
Moved all struct timeval comparing/calculation code to lib/time-util.
--HG--
branch : HEAD |
459f60325f94f486ef057241b42d8a9e9c376fb4 |
|
26-May-2009 |
Timo Sirainen <tss@iki.fi> |
imap: Cleaned up "command pending" handling code. Should fix hangs caused by recent changes.
--HG--
branch : HEAD |
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8 |
|
05-May-2009 |
Mark Washenberger <none@none> |
Renamed headers to prevent collision if they were flattened on an install.
--HG--
branch : HEAD |
3a508ab3b10ff08889f3046a6bbf8553b55e3d44 |
|
25-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
IMAP: Fixed SORT command crashing.
--HG--
branch : HEAD |
d43bed2d458520fd01c28229ce2b178a4593a4a7 |
|
04-Feb-2009 |
Timo Sirainen <tss@iki.fi> |
Implemented support for ESORT capability.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
0b1cf769e179d15815ef2330f029e35514da8f77 |
|
29-May-2008 |
Timo Sirainen <tss@iki.fi> |
SEARCH/SORT/THREAD: If search parameters are missing, return a clear error
message.
--HG--
branch : HEAD |
c27245ef934dbf93c8469fd1ae0519e6971ae64f |
|
06-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed imap_messageset_parse() to imap_seq_set_parse().
Added imap_seq_range_parse().
--HG--
branch : HEAD |
c4b376dd6e0c423006d7ac83a39253bcaf8e7c47 |
|
03-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Make mail_search_args an independent structure that can be used for multiple
separate searches.
--HG--
branch : HEAD |
97cfe59cd16ce624e58e8d9b6003d1e29d75b3d2 |
|
16-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Implemented SEARCHRES extension.
--HG--
branch : HEAD |
3447d9afb1ce87664fc67b613f73d4a48d4b1cf9 |
|
16-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Messageset 1,* was thought of as invalid
--HG--
branch : HEAD |
923eb3dde28e4d8841c14fd6b4a69635b7070c3e |
|
15-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Added QRESYNC support.
--HG--
branch : HEAD |
0934e86643bd122e260e4742b73612d29c1e7487 |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Moved IMAP messageset handling to lib-imap/ and searching to lib-storage/.
Rewrote messageset handling to use struct seq_range instead.
--HG--
branch : HEAD |
1176124297af5c56e932c0863c6637ff21d8a0ef |
|
14-Mar-2008 |
Timo Sirainen <tss@iki.fi> |
Moved IMAP messageset handling to lib-imap/ and searching to lib-storage/.
Rewrote messageset handling to use struct seq_range instead.
--HG--
branch : HEAD |
1091d5be391af806f7cf553521f6778f830f9500 |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
SEARCH SUBJECT now changes LWSP to spaces to match ENVELOPE's subject field.
--HG--
branch : HEAD |
95f3ad1f505146ba2f4d2f4022244250a58b836f |
|
21-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
SEARCH SUBJECT now changes LWSP to spaces to match ENVELOPE's subject field.
--HG--
branch : HEAD |
b8c52e715a2515dc0f254ead42f27057a6462e2f |
|
11-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Only the first value in a messageset was verified to be valid, the rest were
ignored (e.g. 1,100000 passed).
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
28603e0134d653e76b7007f94336aeaef3b50b18 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
SEARCH_KEYWORDS now uses struct mail_keywords instead of a string array.
--HG--
branch : HEAD |
41da195263f4c7f0eaf58f3ecee4d9ceb92ae8c1 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced SEARCH_<flag> with a generic SEARCH_FLAGS. Use value.size for
SEARCH_LARGER and SEARCH_SMALLER and give an error if it's not a valid
number.
--HG--
branch : HEAD |
cc2259f1d0a6672d9bd69e5d37cbfd00bd2855d3 |
|
29-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash when searching for empty TEXT or BODY.
--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 |
42840ceb1e28a5a42d90d43a83cc9be9f498454f |
|
02-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
Last messageset changes broke FETCH *.
--HG--
branch : HEAD |
acc076996ad1cc256e68fbeb69d8beaa7d64674a |
|
01-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
FETCH/STORE n:* should also give BAD if n > number of messages in mailbox.
--HG--
branch : HEAD |
e67b6473035353cf86d34632fd1e19b204371bd3 |
|
01-Aug-2007 |
Timo Sirainen <tss@iki.fi> |
FETCH/STORE n:* should give a BAD error if there are no messages in mailbox.
--HG--
branch : HEAD |
2d0ebf1c0259ec9a27c4e088ac50824cb377f7a7 |
|
13-Jul-2007 |
Timo Sirainen <tss@iki.fi> |
compiler warning fixes
--HG--
branch : HEAD |
7c7a364a72d4edd1701df72fee835c09db19d933 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Changed imap-parser API to use standard arrays for lists instead of its own
imap_arg_list struct.
--HG--
branch : HEAD |
f1e9611e93dcb3b745c1904029084fa81644e1b3 |
|
29-Jun-2007 |
Timo Sirainen <tss@iki.fi> |
Added more consts to imap-parser API
--HG--
branch : HEAD |
ff7056842f14fd3b30a2d327dfab165b9d15dd30 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Error handling rewrite.
--HG--
branch : HEAD |
cb44b8fd1fa5cac5a451c39245c878e1307c332c |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
lib-storage doesn't need the ability to return syntax errors. They should be
checked before lib-storage is called.
--HG--
branch : HEAD |
9b7c27cd95df5ca3cd523381205efe24e88ee817 |
|
13-May-2007 |
Timo Sirainen <tss@iki.fi> |
Parse search dates already in IMAP code.
--HG--
branch : HEAD |
eb0ede66120bb63c0212bad69e67efca1eb47324 |
|
20-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added support for X-BODY-FAST and X-TEXT-FAST SEARCH arguments. FTS plugin
now allows loading two backends: exact and fast. Fast backend (Lucene) can
be used to optimize only those searches, while exact backend (Squat) can be
used to optimize normal BODY and TEXT searches as well.
--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 |
768a07208b89e58308a965494090b658a577bc56 |
|
18-Sep-2005 |
Timo Sirainen <tss@iki.fi> |
Compiler warning fixes
--HG--
branch : HEAD |
ab0155cbec1286e1cd00a0e01d78e0f3ca34cea6 |
|
29-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Added separate "temporary error" flag for mail_storage_get_last_error().
--HG--
branch : HEAD |
e7785c3c4753a6e30c208c0c8cbc6bf349a9cf45 |
|
12-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
'*' wasn't working in non-SEARCH messagesets.
--HG--
branch : HEAD |
90f162e35a6efe03bba0d5b757a2bdda2455bca0 |
|
03-Jul-2005 |
Timo Sirainen <tss@iki.fi> |
Moved sequence set range checks to imap-specific code, so that SEARCH can
accept sequence sets with sequence being larger than number of messages in
mailbox.
--HG--
branch : HEAD |
e60a349c641bb2f4723e4a395a25f55531682d2b |
|
05-Feb-2005 |
Timo Sirainen <tss@iki.fi> |
Moved command-specific variables from struct client to struct
client_command_context and changed code to use it.
--HG--
branch : HEAD |
27953df39d85a74bb10d312505d95d6f5d042697 |
|
20-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
Don't try to uppercase search strings. It breaks some character sets.
--HG--
branch : HEAD |
df21989e6e08b13e2f7900eb8e4c413ca0b9fe62 |
|
19-Dec-2004 |
Timo Sirainen <tss@iki.fi> |
SEARCH UNKEYWORD wasn't working.
--HG--
branch : HEAD |
2767104d81e97a109f0aa9758792bfa1da325a97 |
|
15-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
We never do blocking reads/writes to network anymore. Changed imap and pop3
processes to use a single I/O loop.
Not much tested yet, and currently LIST/LSUB may eat too much memory and
APPEND eats all CPU.
--HG--
branch : HEAD |
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834 |
|
27-Apr-2004 |
Timo Sirainen <tss@iki.fi> |
importing new index code. mbox still broken.
--HG--
branch : HEAD |
b1f57b7183fe44d7d7ba30b944d3de1f015b9253 |
|
26-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
Removed fetch_init/fetch_next from mail-storage. search_* makes it
unnecessary
--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 |
fb8e400512210d49339775747a520411987d4353 |
|
27-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
some header file cleanups
--HG--
branch : HEAD |
278cd60f09503d682977462acb96bfc885337d9c |
|
21-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Don't crash with "SEARCH ()"
--HG--
branch : HEAD |
5ce2084ada06ade9f44fc2914c34658e9a842dc1 |
|
20-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
mail-storage.h interface changes, affects pretty much everything.
FETCH, SEARCH, SORT and THREAD handling were pretty much moved from
lib-storage/ to imap/ so adding non-index storages would be much easier now.
Also POP3 server can now be easily implemented with lib-storage.
Not too well tested, and at least one major problem: partial fetching is
_slow_.
--HG--
branch : HEAD |