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' |
12c57531519d66e237e865c6ee3f7eadfe148550 |
|
05-Oct-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Remove dead code
Found with clang static analyzer. |
f784d5bb8edbec88829524135cfa100129f5384d |
|
17-Aug-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Add/change switch case "fall through" comments
These fix warnings with gcc 7's -Wimplicit-fallthrough |
1db237d245d90dfa71d1968a7eb13e344eacb22e |
|
08-Jun-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Add mail_search_arg_one_deinit() |
74bc7e646663255703e10e0c0b7242ad7ad52f94 |
|
20-Feb-2017 |
Stephan Bosch <stephan@dovecot.fi> |
Partially implemented IMAP SEARCH=X-MIMEPART capability.
This capability is currently Dovecot-specific. |
2454dfa32c93c20a8522c6ed42fe057baaac9f9a |
|
01-Jan-2017 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2017. |
9881c3ec449875d423e102e851d5a8afb752fdb1 |
|
29-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fixed search arg initialization tracking for INTHREAD |
23bdbb7b1831785c6ba6df190f6369da882d2b9d |
|
06-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Require comparisons to be strict boolean expressions
* No implicit integer -> boolean or pointer -> boolean conversions
* !expr can be used only if expr is boolean type
These were checked with a patched clang. It found various actual bugs,
which were fixed by the previous commits. |
4ee1a8353818eaca77bb9c9eda1aac47f004ed41 |
|
05-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Search args equalness checks didn't compare keywords correctly.
This may have broken the search in some situations. |
b88c43d09a288e99d439c78de4cc613212ea924c |
|
03-May-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Avoid using buffer_get_data()
Especially buffer_get_data(buf, NULL) generates worse code than just
using buf->data directly. |
f7cc532e59ae1b7eda9a2d838fe54a6e59289f53 |
|
12-Apr-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Fixed crash when using SEARCH INTHREAD
mail_search_args_init() -> mail_search_args_simplify() -> .. ->
mail_search_arg_one_equals(), which assumed SEARCH_INTHREAD was already
initialized. |
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/' |
78f8407de32c9a51f2db00f4edb466f4279fa456 |
|
06-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Made mail_search_arg_[one_]equals() public. |
914e08a6f3131dd4b304d1e3b8e399bfc3b96e21 |
|
06-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_search_args_equal() ignored some differences.
- fuzzy flag
- MAIL_SEARCH_ARG_FLAG_USE_TZ
- INTHREAD thread type |
86da76e8fed67bd3f6ad30550cc9a2ee5a23f1e2 |
|
06-Dec-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_search_arg*_dup() didn't preserve fuzzy-flag. |
e614fad7013a21d9111f0f185781f929ecb96bbf |
|
18-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_search_init/deinit_arg()
For forcibly initializing/deinitializing search args. |
8d5eb4f8089c319d555edaa42d1c09da951f66ff |
|
18-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Cleanup - separate search arg values that are set by mail_search_init() |
1cc4d4d1a2ca48a82434da470872392c1bdcb651 |
|
09-May-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_search_arg_dup() is now a public function. |
f8740ac53310cd28ba4ec6dc9e9ce6e9a3688f39 |
|
23-Apr-2015 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Moved mail_search_args_simplify() to its own file and added unit tests.
No functional changes. |
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> |
bacd4f6e62996e95d7aafd94716025b22a39d470 |
|
14-Oct-2014 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added X-REAL-UID search parameter. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
e1cf5b2efd5b1f171fa5613fc7decc785b08989f |
|
10-Oct-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: If search finds a match to a cached header, don't open the body stream. |
d549ec5d174279916518b5490cd21baeda38dedf |
|
04-Apr-2013 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixed searching with multiple parameters and prefetching. |
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. |
5ae75c7e30ca80e41b3d18abb94b460f8f7d701e |
|
04-Oct-2012 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Don't crash when searching multiple keywords.
Fixed by simply removing the keyword merging code.
mail_search_args_simplify() is called before mail_search_args_init(), so the
keywords are still NULL and merging can't be done. Alternative fix would
have been to add string array to mail_search_arg.value containing the
keywords, but all of this is a pretty unnecessary optimization. |
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. |
013a0e03309a4a77552f6e8dd46d06c3d3f60f53 |
|
02-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Renamed mail_search_arg.not to match_not.
C++ compilers don't like the "not". |
991c17647fa7dbd38c6c3987a5be4ef080c6d948 |
|
27-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Removed the separation of "substring" and "fast" fts backends and search keys.
No one wants to use two separate backends and it just makes the code more
difficult. |
1af0a59380337d4d9adc634da47888c150869f65 |
|
04-Apr-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail prefetching support for searching. |
d798962a54c5cda054d57a0cfc7e5f47dfa20f6e |
|
31-Mar-2011 |
Timo Sirainen <tss@iki.fi> |
Changed header/body searching to do search key charset translation earlier.
This cleans up and simplifies error handling. |
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. |
c0a87e5f3316a57e6f915882fa1951d0fbb74a61 |
|
20-Jan-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mailbox_alloc() now takes a virtual mailbox name and other related API changes.
All storage_name <-> vname conversions now go through the same two
mailbox_list methods. This has many benefits, such as:
* listescape plugin is now much simpler and bugfree
* allows changing lib-storage API to use UTF-8 mailbox names in future
* allows creation of "mailbox aliases" plugin |
4182d8cd818e76856a5a1e25b343fe5ddf69fd8e |
|
06-Dec-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Simplified mailbox_keyword*() APIs.
They are no longer struct mailbox methods, because they're always implemented
as being wrappers to lib-index APIs anyway.
Also mailbox_keywords_ref/unref() no longer take mailbox parameter. |
d8256deeb5a94a6e27f4762bdb77ce284b7dc517 |
|
30-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Fixes/optimizations to SEARCH_MAILBOX*.
--HG--
branch : HEAD |
00120655cf38b7981ea65abb73330e338bc78f5b |
|
30-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for searching with mailbox GUID.
--HG--
branch : HEAD |
e2f6850678a97f0048c962d8f1ce0edd809b7ac6 |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added mail_search_args_match_mailbox()
--HG--
branch : HEAD |
59e50e3e6c514cd95c85bfa0a07b24e93de1bda6 |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added MAILBOX_GLOB search arg. Query builders now use it instead of MAILBOX.
--HG--
branch : HEAD |
f21bf3601201398ccc463ba102e8abe73139c491 |
|
28-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: mail_search_args_equal() wasn't comparing string arguments correctly.
--HG--
branch : HEAD |
71acee685176766c9fb54937af18d3907dabec05 |
|
13-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Added support for searching save date.
--HG--
branch : HEAD |
e376e08040b5f21ff79a15ae728d2532a34207f6 |
|
05-Apr-2010 |
Timo Sirainen <tss@iki.fi> |
Small code changes to make static analyzer happier.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
d895dc66e265499115a6c0cff4d3e074dbeb5323 |
|
29-Sep-2009 |
Timo Sirainen <tss@iki.fi> |
mail_search_args_init(): Added an assert.
--HG--
branch : HEAD |
84ed9f8f3d0e5ed47607ef417618e49e4f865557 |
|
22-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
Added reference counting to struct mail_keywords and related APIs.
--HG--
branch : HEAD |
6fffd3cc29cfc9911ee34e3ff87c2aef6addf3bd |
|
05-Jun-2009 |
Timo Sirainen <tss@iki.fi> |
mail_search_args_simplify() no longer uses lib-index functions directly.
--HG--
branch : HEAD |
ebea577fb2a08b57ee8fc0140eaa9dac5f6ca109 |
|
28-May-2009 |
Timo Sirainen <tss@iki.fi> |
mail_search_args_dup(): Don't return broken results if there are no search args.
--HG--
branch : HEAD |
83880509177c58cb54a51e0f6f07fefb5056de4d |
|
19-May-2009 |
Timo Sirainen <tss@iki.fi> |
SEARCH INTREAD: Crashfix when deinitializing.
--HG--
branch : HEAD |
e68c528470154af1029233c04dd0d7944805f70f |
|
18-May-2009 |
Timo Sirainen <tss@iki.fi> |
Added mail_search_args_dup().
--HG--
branch : HEAD |
38537f71055adbbf214ba2a682f13d5947957298 |
|
16-Apr-2009 |
Timo Sirainen <tss@iki.fi> |
mail_search_args_[de]init() calls stack now. Last unref is still allowed without deiniting.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
cb8d97555cc3e686aa1f446bc32d0213486d38fb |
|
01-Sep-2008 |
Timo Sirainen <tss@iki.fi> |
Added mail_search_args_equal().
--HG--
branch : HEAD |
a9aa2f70dd3f16ca139546a12f04089af937052c |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Added non-optimized support for SEARCH INTHREAD.
--HG--
branch : HEAD |
908bffbaff7230e31a887aab75572cc2549cb6fe |
|
20-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Search code cleanups and minor optimizations.
--HG--
branch : HEAD |
4139bd30500732466acf4ff1134950788248ec55 |
|
07-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
SEARCH UPDATE: Convert seqsets in saved results to uidsets so that they can
be matched correctly later if messages are expunged.
--HG--
branch : HEAD |
5afa8e2edf4f313cd56e5909f92f39c3b5b7b4d3 |
|
07-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed mailbox_get_uids() to mailbox_get_seq_range().
--HG--
branch : HEAD |
3dd0679b6f24be0287cc42d7a60bbf59cdf8b637 |
|
05-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Implemented CONTEXT=SEARCH extension.
--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 |
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 |
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 |
28603e0134d653e76b7007f94336aeaef3b50b18 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
SEARCH_KEYWORDS now uses struct mail_keywords instead of a string array.
--HG--
branch : HEAD |
4f10d616ee7cbd211a8e8c6e43fb7327fc4f2923 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
We can't always merge SEARCH_FLAGS.
--HG--
branch : HEAD |
c9c35f9fa45b22f4b74eab759462d375e285b4c8 |
|
08-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Merge SEARCH_FLAGS arguments when possible.
--HG--
branch : HEAD |
6f338d07c32978a8118bd7e30a07dff067d0f8ee |
|
02-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Simplify search arguments immediately when calling mailbox_search_init().
--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 |
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 |
59151b71059df1190acd75d8717ed04a7920c862 |
|
15-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added context parameter type safety checks for most callback APIs.
--HG--
branch : HEAD |
f885076be11415bee48a33534d555e0afc69228a |
|
20-Jun-2006 |
Timo Sirainen <timo.sirainen@movial.fi> |
NOT condition wasn't handled correctly in SEARCH.
--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 |
9af053dfe914f743ce7bb51739bc0d9bf25ff940 |
|
17-Apr-2005 |
Timo Sirainen <tss@iki.fi> |
Some possible fix for HEADER searches and cleanup
--HG--
branch : HEAD |
4b058f90f9e8a2c6b2eed275de4eb8cc5195a71d |
|
08-Oct-2004 |
Timo Sirainen <tss@iki.fi> |
Buffer API change: we no longer support limited sized buffers where
writes past limit wouldn't kill the process. They weren't used hardly
anywhere, they could have hidden bugs and the code for handling them was too
complex.
This also changed base64 and hex-binary APIs.
--HG--
branch : HEAD |
ab714d70191f92517ec12bc78bb946f2b68ada1d |
|
06-Aug-2004 |
Timo Sirainen <tss@iki.fi> |
SEARCH TEXT was broken
--HG--
branch : HEAD |
60fd9409f02a54597d178900f2f9971db5c87bca |
|
26-Oct-2003 |
Timo Sirainen <tss@iki.fi> |
Some optimizations to messageset handling in search.
--HG--
branch : HEAD |
cd466fe7b84b0223735a6469c7f7bc225f65996d |
|
21-Sep-2003 |
Timo Sirainen <tss@iki.fi> |
data_stack_pool split into two: unsafe_data_stack_pool which works like
before, and a new one which verifies that stack frame stays the same
whenever the pool is accessed.
--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 |
71f67d52101b34d0126a4f4484bae7202df77887 |
|
22-Apr-2003 |
Timo Sirainen <tss@iki.fi> |
SEARCH OR fixes.
--HG--
branch : HEAD |
980b2bcaed5e6badb500028c2edb64bc4a53b3c4 |
|
01-Feb-2003 |
Timo Sirainen <tss@iki.fi> |
Several search fixes, mostly related to matching multiple conditions.
--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 |
f923659c0e5298263d80622c99f4dc4132b4675b |
|
11-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Naming change for function typedefs.
--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 |
4525c4a8f8d1a6365e4469c0c8f46575400a9a67 |
|
02-Jan-2003 |
Timo Sirainen <tss@iki.fi> |
Don't access ImapArg's union members directly - too easy to mess up. Fixes a
crash with feeding non-string parameters to SEARCH/SORT commands.
--HG--
branch : HEAD |
91dff5e44902c234524ef19e1d1b72a4d0513f56 |
|
09-Dec-2002 |
Timo Sirainen <tss@iki.fi> |
Don't crash with missing search argument parameters.
--HG--
branch : HEAD |
d8e43743157d05e416eb5d3b45cddb3b3122dc07 |
|
03-Nov-2002 |
Timo Sirainen <tss@iki.fi> |
SEARCH CHARSET support. Currently we do it through iconv() and only ASCII
characters are compared case-insensitively.
--HG--
branch : HEAD |
11a1cf93e400cd7d4de4e67193e8d0f9c4bc249c |
|
17-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
ImapArgList changed from linked list to array. easier to handle that way.
--HG--
branch : HEAD |
458de2c8c9f10038de964d789012e80a970b9c5c |
|
12-Oct-2002 |
Timo Sirainen <tss@iki.fi> |
Dropped sent_time and alignment from MailIndexRecord. SEARCH can now use
cached ENVELOPE data to search FROM, TO, CC, BCC, SUBJECT, HEADER MESSAGE-ID
and HEADER IN-REPLY-TO. They're never cached anymore now. Also SEARCH SENT*
had to be changed to use ENVELOPE (or fallback to Date-header parsing)
because sent_time was removed.
--HG--
branch : HEAD |
1215bc4d7e747846f282cf710e61f3768e69238d |
|
22-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
s/user_data/context/ and some s/Data/Context/
--HG--
branch : HEAD |
66251e6ab31e5cc153fe5cae608e416dacafe9cd |
|
08-Aug-2002 |
Timo Sirainen <tss@iki.fi> |
Initial revision
--HG--
branch : HEAD |