bcb4e51a409d94ae670de96afb8483a4f7855294 |
|
01-Jan-2018 |
Stephan Bosch <stephan.bosch@dovecot.fi> |
Updated copyright notices to include the year 2018. |
bf7dc750b95039981c0e9d728f313d50cf38a156 |
|
23-Mar-2017 |
Martti Rannanjärvi <martti.rannanjarvi@dovecot.fi> |
global: Log internal storage error on failure |
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 |
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74c |
|
16-Dec-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
global: Change string position/length from unsigned int to size_t
Mainly to avoid truncating >4GB strings, which might potentially cause
some security holes. Normally there are other limits, which prevent such
excessive strings from being created in the first place.
I'm sure this didn't find everything. Maybe everything could be found with
compiler warnings. -Wconversion kind of does it, but it gives way too many
unnecessary warnings.
These were mainly found with:
grep " = strlen"
egrep "unsigned int.*(size|len)" |
b8673ed3de3d1931ea5319c7557b72235cfe31fe |
|
02-Nov-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
fts: Fix error message when syncing FTS root mailbox fails. |
2fcde0841df86e1260770a356ad74c5c128e8fc1 |
|
18-Sep-2016 |
Aki Tuomi <aki.tuomi@dovecot.fi> |
fts-plugin: Remove NULL assert
fts_backend_update_deinit will set box to NULL and call
update_set_mailbox then. NULL check needs to be done
in backends. |
abb404575a238f27ea03b6049880f30f1656ddc4 |
|
13-Sep-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
Added asserts to make static analyzer happier. |
cbc8f9d71483a2cf71610f7e7e1f2dc9884bd556 |
|
03-Jun-2016 |
Baofeng Wang <baofeng.wang@dovecot.fi> |
lib-storage: add no_fts in struct mail_search_arg
When flag is set, FTS will not be performed.
fts plugin: handle no_fts flag
No fts will be performed once flag is set.
Original patch from Timo Sirainen <timo.sirainen@dovecot.fi> |
aa41b2e17912d6cad3151babea6a85dd88539d28 |
|
03-Jun-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
virtual: Moved virtual_mailbox_vfuncs to lib-storage.
This allows implementing other virtual storage backends. |
4ac43ad128cb9b22f1c936659a1ff62e5b6c8bc3 |
|
16-Feb-2016 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
fts: Code cleanup - moved fts_header_has_language() to a global function |
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> |
263d455e9198e8aa45c7a99601ad6a5a9dcdd915 |
|
16-Sep-2014 |
Timo Sirainen <tss@iki.fi> |
doveadm fts rescan: For virtual namespaces just mark the last indexed UID to 0. |
117fb8c00336dc54bab9cfa547249df7a4970611 |
|
08-Aug-2014 |
Timo Sirainen <tss@iki.fi> |
fts: Added fts_no_autofuzzy setting to require exact matches for found results.
This is done by using the FTS search results as only filters on which the
regular non-FTS search is done. |
a8c5a86d183db25a57bf193c06b41e092ec2e151 |
|
04-Feb-2014 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2014. |
db0fb9eb7da6059fa1af1e5429c898c81bdc2aa9 |
|
20-Mar-2013 |
Timo Sirainen <tss@iki.fi> |
fts: Fixed crash when searching virtual mailboxes and fts backend without lookup_multi().
Patch by Mike Abbott / Apple |
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. |
d9076f5939edf5d20a261494b1a861dcbb0d32e2 |
|
15-Sep-2012 |
Timo Sirainen <tss@iki.fi> |
Replaced "decomposed titlecase" conversions with more generic normalizer function.
Plugins can now change mail_user.default_normalizer. Specific searches can
also use different normalizers by changing mail_search_context.normalizer. |
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] |
f3bed8816ef2842845b8bf1714a9458dd47460d0 |
|
01-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
fts: Fixed a crash if virtual mailbox search couldn't be optimized by backend. |
2022c259052c6cbb595cc90d36c0d4bdbf5254b6 |
|
01-Aug-2012 |
Timo Sirainen <tss@iki.fi> |
fts: Fixed crash in fts_lookup_multi() for backends that can't handle it (fts-squat) |
b66d803de86bfb411165b3465b0d9ef64ecfe2a1 |
|
25-Jun-2012 |
Timo Sirainen <tss@iki.fi> |
Avoid using (void)s by adding ATTR_NOWARN_UNUSED_RESULT attributes and other ways. |
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. |
96da164ade36c54e94083de1a545216ebc2afa31 |
|
31-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Fixed checking settings compatibility with non-INBOX namespaces. |
b7fdf4fe23801de680e0be5aca0596a3c9ea3f8f |
|
30-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Added lookup_done() API call. Lucene uses it to close the index.
This way it Lucene doesn't keep the index files unnecessarily open forever. |
4145cbac82bfc0c8bfeceeca0ef841700117930c |
|
28-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
lib-storage: Replaced MAILBOX_FLAG_KEEP_RECENT flag with reverse MAILBOX_FLAG_DROP_RECENT.
Very few places actually want to drop recent flags, so this way is easier. |
54d437dea655b338e45a8917880f3d3a2a7b698d |
|
28-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Changed private fts_index_header accessing APIs |
de62ce819d59a529530da4b57be1b8d6dad13d6b |
|
25-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
Moved GUID code to liblib. Use guid_128_t type consistently everywhere. |
a569c6df4ffe05acc242e269d926449e50702d59 |
|
12-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Added fts_backend_rescan() |
cea6742c34fcf3f62c30aab4d2120a689d5b1844 |
|
04-Aug-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Clear updating flag on update deinit. |
403762eeaebbedce130b1cec435441b22ee8f349 |
|
22-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Make sure fts_index_get_last_uid() gets the latest value from index. |
8d587838c414c48a331f0b54cd7ffd97e5024abd |
|
22-Jul-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Redesigned/enhanced FTS API and how virtual plugin works with it.
The changes include:
- Only indexer process and "doveadm index" do FTS indexing now. Other
processes connect to the indexer process via UNIX socket and request
indexing a specific mailbox.
- FTS backends can now index/search any search key. Current backends
implement indexing for some specific header fields (Subject, From, To, Cc,
Bcc), but it would also be possible to add indexing for e.g. message size
or date.
- CLucene support is fixed and fully functional.
- Solr is split to "solr" and "solr_old" backends. The new "solr" backend
supports the new header fields. It also uses mailbox GUIDs as mailbox
identifiers, so that renaming a mailbox doesn't require reindexing.
The "solr_old" uses the old Solr schema and doesn't support any new features. |
de11cf486e0d0448537b1b5d546496ab85e7cda8 |
|
27-Jun-2011 |
Timo Sirainen <tss@iki.fi> |
fts: Replaced unnecessary lock()/unlock() from API with refresh() |
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. |
12055678401e913f4be130fa41b22fbeb626cc7e |
|
17-May-2010 |
Timo Sirainen <tss@iki.fi> |
fts: Backends can now index non-text body parts if they support it.
--HG--
branch : HEAD |
e59faf65ce864fe95dc00f5d52b8323cdbd0608a |
|
25-Jan-2010 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2010.
--HG--
branch : HEAD |
45312f52ff3a3d4c137447be4c7556500c2f8bf2 |
|
06-Jan-2009 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2009.
--HG--
branch : HEAD |
3852872e6954b7132e637294132005e86b8ebd4a |
|
29-Nov-2008 |
Timo Sirainen <tss@iki.fi> |
Finished making full text search indexes work fast with virtual mailboxes.
--HG--
branch : HEAD |
a0c453a8edaec90fb0d945c874de0b1845bc7d7e |
|
13-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
Added support for sorting by X-SCORE. Currently it's only set by fts-solr.
--HG--
branch : HEAD |
809923ba26218971792182ae8894936f9ac99364 |
|
13-Jul-2008 |
Timo Sirainen <tss@iki.fi> |
fts: Added a new lookup API where the backend can look up all the fields
using a single query. Implemented it to fts-solr.
--HG--
branch : HEAD |
290e45b36a085eac8722751f8baad0f8342fed48 |
|
18-Jun-2008 |
Timo Sirainen <tss@iki.fi> |
Renamed seq_range_array_remove_invert_range() to seq_range_array_intersect().
--HG--
branch : HEAD |
7498c2042724f0ced01bed6cae60ffb4455e0253 |
|
16-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't crash if FTS backend initialization fails.
--HG--
branch : HEAD |
8ee400fb159469b541a85c0aae662e5a140627d2 |
|
16-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Don't crash if FTS backend initialization fails.
--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 |
1eb887d0fb04c184f56d122dc478b9c7d4a95cc4 |
|
03-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
If fts_backend.build_init() fails, don't mark backend as being built.
--HG--
branch : HEAD |
459c61c9a0beaa6986958d55b059b2d246032c4c |
|
03-Feb-2008 |
Timo Sirainen <tss@iki.fi> |
Keep struct mailbox pointer in struct fts_backend.
--HG--
branch : HEAD |
76b43e4417bab52e913da39b5f5bc2a130d3f149 |
|
01-Jan-2008 |
Timo Sirainen <tss@iki.fi> |
Updated copyright notices to include year 2008.
--HG--
branch : HEAD |
eddd9bf1a1369aea4a2715f6be1137da6d17d293 |
|
05-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Replaced t_push/t_pop calls with T_FRAME*() macros.
--HG--
branch : HEAD |
a1f517528af314cb6f5f39187a71dbed8a6e1152 |
|
03-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
Fixes to FTS handling.
--HG--
branch : HEAD |
1b0cfbf3cc77a670b92fff5c30f7b1eb17a63ab1 |
|
02-Dec-2007 |
Timo Sirainen <tss@iki.fi> |
FTS API changes and Squat rewrite. Squat is still missing expunge handling.
--HG--
branch : HEAD |
916221f976af0ed8b397f06f4f381c0ac0be3b86 |
|
10-Nov-2007 |
Timo Sirainen <tss@iki.fi> |
Handle NOT in search without returning wrong results.
--HG--
branch : HEAD |
e80307fd7345f60540c7d83c38952603d2df9e9b |
|
30-Sep-2007 |
Timo Sirainen <tss@iki.fi> |
Compile fix
--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 |
bc93929cdd9000ca560a5f42a27f50ab307f1efb |
|
25-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Don't crash if another search is started while we're still building the
index for the first search.
--HG--
branch : HEAD |
20b136f04257b0ba338e49f31a999c0d4b243647 |
|
15-Mar-2007 |
Timo Sirainen <tss@iki.fi> |
Separate headers and body in building and searching. Added support for
Lucene to index/search them separately.
--HG--
branch : HEAD |
7bc564062f3bef44c61f4e83ccdd9c5eaa433253 |
|
20-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed filtering to work with Lucene. Generic FTS code now implements the
filtering if the backend doesn't.
--HG--
branch : HEAD |
3d4450c252790b03bb5ce054987ac91110f1ff62 |
|
06-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added lock/unlock backend operations.
--HG--
branch : HEAD |
85a4ae7e8df7ea45a7665828e5edf48a5fc85730 |
|
01-Dec-2006 |
Timo Sirainen <tss@iki.fi> |
Added fts_backend_expunge_finish() virtual backend function.
--HG--
branch : HEAD |
fda168427e1950518acd6d600f1a10a29a5baef0 |
|
25-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
ADd support for expunges
--HG--
branch : HEAD |
c06cd6539a3dbd68eb546464076187be6bc4290f |
|
25-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Added fts_backend_get_last_uid() which is first used to check if
build_init() needs to be called.
--HG--
branch : HEAD |
c63544d7d2580c680b07f9569e87e9cebee383d5 |
|
25-Oct-2006 |
Timo Sirainen <tss@iki.fi> |
Let FTS backend init function take a struct mailbox instead of path.
--HG--
branch : HEAD |
94f90df2cfb7587bb5af432b2ba065d1c364e1f7 |
|
18-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
API updates and some fixes
--HG--
branch : HEAD |
3fb1c1f0375ec0a2b00be90b5d61fbc8374e9b90 |
|
17-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Fixed to use new array API.
--HG--
branch : HEAD |
2793e3bd31d212d6506686aa70773e13d9d98195 |
|
17-Sep-2006 |
Timo Sirainen <tss@iki.fi> |
Added full text search plugin framework. Still missing support for handling
expunges. Also it could use better logic with more complex SEARCH queries to
figure out when the FTS index should be used.
--HG--
branch : HEAD |