]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agomkdir_parents(): Handle mkdir() EEXIST errors that may happen during race conditions.
Timo Sirainen [Mon, 5 May 2014 15:37:16 +0000 (18:37 +0300)] 
mkdir_parents(): Handle mkdir() EEXIST errors that may happen during race conditions.
We don't care about EEXIST errors that happen when trying to mkdir() parent
directories, only if it happens when mkdir()ing the last directory.

11 years agoauth: If authentication fails, never send back "nologin" field.
Timo Sirainen [Mon, 5 May 2014 13:24:53 +0000 (16:24 +0300)] 
auth: If authentication fails, never send back "nologin" field.
This only causes confusion.

11 years agomessage_header_decode_utf8() wasn't used correctly with NULL instead of FALSE parameter.
Timo Sirainen [Mon, 5 May 2014 13:02:48 +0000 (16:02 +0300)] 
message_header_decode_utf8() wasn't used correctly with NULL instead of FALSE parameter.

11 years agolib-storage: mail_get_headers_utf8() now replaces NULs with spaces.
Timo Sirainen [Mon, 5 May 2014 13:01:58 +0000 (16:01 +0300)] 
lib-storage: mail_get_headers_utf8() now replaces NULs with spaces.
Perhaps there should also be another API function which actually allows
returning strings with NULs in them.

11 years agodoveadm mail fetch: Use mail_get_headers_utf8() when fetching hdr.*.utf8
Timo Sirainen [Mon, 5 May 2014 13:00:52 +0000 (16:00 +0300)] 
doveadm mail fetch: Use mail_get_headers_utf8() when fetching hdr.*.utf8
This doesn't really matter but may allow minor optimizations later.

11 years agolib-mail: Added message_header_encode_data() to support encoding also NUL characters.
Timo Sirainen [Mon, 5 May 2014 12:39:58 +0000 (15:39 +0300)] 
lib-mail: Added message_header_encode_data() to support encoding also NUL characters.

11 years agoliblib: Added str_append_data(), which is simply a wrapper to buffer_append()
Timo Sirainen [Mon, 5 May 2014 12:05:20 +0000 (15:05 +0300)] 
liblib: Added str_append_data(), which is simply a wrapper to buffer_append()
This is intended for appending data that may contain NUL characters that are
wanted to be added to the string.

11 years agolib: quell sparse "warning: Using plain integer as NULL pointer"
Phil Carmody [Mon, 5 May 2014 12:09:27 +0000 (15:09 +0300)] 
lib: quell sparse "warning: Using plain integer as NULL pointer"

The first element of the structure is a pointer, make that explicit.

11 years agolib-mail: message_header_encode() needs to encode control characters as well.
Timo Sirainen [Mon, 5 May 2014 11:57:13 +0000 (14:57 +0300)] 
lib-mail: message_header_encode() needs to encode control characters as well.

11 years agoauth: Added %{orig_user}, %{orig_username} and %{orig_domain} variables
Timo Sirainen [Mon, 5 May 2014 11:28:33 +0000 (14:28 +0300)] 
auth: Added %{orig_user}, %{orig_username} and %{orig_domain} variables

11 years agoimap: Brought back the original SEARCH PARTIAL code with the minor fix that it actual...
Timo Sirainen [Mon, 5 May 2014 11:18:31 +0000 (14:18 +0300)] 
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.

11 years agoimap: Fixed SEARCH PARTIAL to work correctly with UIDs and with SORT results.
Timo Sirainen [Mon, 5 May 2014 11:02:58 +0000 (14:02 +0300)] 
imap: Fixed SEARCH PARTIAL to work correctly with UIDs and with SORT results.

11 years agoAdded seq_range_array_remove_nth()
Timo Sirainen [Mon, 5 May 2014 11:02:16 +0000 (14:02 +0300)] 
Added seq_range_array_remove_nth()

11 years agodsync: If we notice that incremental sync won't work, don't continue doing it.
Timo Sirainen [Fri, 2 May 2014 16:31:49 +0000 (19:31 +0300)] 
dsync: If we notice that incremental sync won't work, don't continue doing it.

11 years agoimap: Allow longer ID command parameters without disconnecting the client.
Timo Sirainen [Fri, 2 May 2014 12:43:30 +0000 (15:43 +0300)] 
imap: Allow longer ID command parameters without disconnecting the client.

11 years agomaildir: Maildir S=size fixing now works also with zlib etc. plugins that modify...
Timo Sirainen [Fri, 2 May 2014 10:48:36 +0000 (13:48 +0300)] 
maildir: Maildir S=size fixing now works also with zlib etc. plugins that modify the files.

11 years agomaildir: Returning mail's received/saved date or refcount was sometimes broken with...
Timo Sirainen [Fri, 2 May 2014 10:36:00 +0000 (13:36 +0300)] 
maildir: Returning mail's received/saved date or refcount was sometimes broken with zlib plugin.
If the value wasn't already cached and the same transaction also accessed
the message body, i_stream_stat() was used, which ended up to
i_stream_seekable_stat() due to caching the file, which didn't again fstat()
the actual maildir file but just used some internal values.

11 years agokqueue: Changed all i_fatal() calls to i_panic()s to make debugging them possible.
Timo Sirainen [Fri, 2 May 2014 10:21:18 +0000 (13:21 +0300)] 
kqueue: Changed all i_fatal() calls to i_panic()s to make debugging them possible.

11 years agolib-index: Fixed crash when header fields count was too high in cache file.
Timo Sirainen [Fri, 2 May 2014 09:11:54 +0000 (12:11 +0300)] 
lib-index: Fixed crash when header fields count was too high in cache file.

11 years agolib-storage: mailbox_settings_find() now takes namespace parameter instead of user.
Timo Sirainen [Fri, 2 May 2014 08:58:52 +0000 (11:58 +0300)] 
lib-storage: mailbox_settings_find() now takes namespace parameter instead of user.
This fixes an infinite (until stack gets full) loop with shared mailboxes:
mail_namespace_find() -> mailbox_list_get_storage() ->
mailbox_settings_find() -> mail_namespace_find() -> ...

11 years agoauth: Fixed userdb extra fields handling in passdb failure.
Timo Sirainen [Fri, 2 May 2014 08:40:05 +0000 (11:40 +0300)] 
auth: Fixed userdb extra fields handling in passdb failure.
userdb prefetch -flag wasn't correctly set, causing the prefetch userdb in
some situations incorrectly either to be called or not be called.

This also fixes a crash when using userdb static and multiple passdbs. The
userdb_reply was set to NULL, which caused a crash later.

11 years agoimap: Make sure we don't return empty "* n FETCH ()" reply, which violates RFC 3501...
Timo Sirainen [Fri, 2 May 2014 08:12:58 +0000 (11:12 +0300)] 
imap: Make sure we don't return empty "* n FETCH ()" reply, which violates RFC 3501 ABNF.
It happened only during error conditions, and it would be a bit too much
trouble to try to remove the reply entirely, so just append the message UID
there.

11 years agoimap: If FETCH BINARY fails because of invalid MIME part data, return [UNKNOWN-CTE...
Timo Sirainen [Fri, 2 May 2014 08:06:27 +0000 (11:06 +0300)] 
imap: If FETCH BINARY fails because of invalid MIME part data, return [UNKNOWN-CTE] error.

11 years agoexample-config: Removed mail_nfs_* settings, since they shouldn't be used anyway.
Timo Sirainen [Fri, 2 May 2014 07:40:12 +0000 (10:40 +0300)] 
example-config: Removed mail_nfs_* settings, since they shouldn't be used anyway.

11 years agolib-storage: Mailbox list indexes didn't use mail_fsync setting.
Timo Sirainen [Fri, 2 May 2014 07:35:05 +0000 (10:35 +0300)] 
lib-storage: Mailbox list indexes didn't use mail_fsync setting.

11 years agovirtual: Fixed assert-crash when doing changes to backend mailbox via the virtual...
Timo Sirainen [Fri, 2 May 2014 06:29:05 +0000 (09:29 +0300)] 
virtual: Fixed assert-crash when doing changes to backend mailbox via the virtual mailbox.
Caused by the recent lazy mailbox opening changes.

11 years agolib-storage: mail_never_cache_fields=* means now to disable all caching.
Timo Sirainen [Wed, 30 Apr 2014 15:46:55 +0000 (18:46 +0300)] 
lib-storage: mail_never_cache_fields=* means now to disable all caching.

11 years agolib-storage: Partially reverted the mail.get_real_mail() API change for backwards...
Timo Sirainen [Wed, 30 Apr 2014 14:37:43 +0000 (17:37 +0300)] 
lib-storage: Partially reverted the mail.get_real_mail() API change for backwards compatibility.
I hadn't realized Pigeonhole was also using it. (I thought it was using only
the mail_get_real_mail() public API.) This fixes Pigeonhole v0.4.2 to work
again.

11 years agodsync: saved-date doesn't need to be looked up until mail body is being read.
Timo Sirainen [Wed, 30 Apr 2014 03:08:46 +0000 (06:08 +0300)] 
dsync: saved-date doesn't need to be looked up until mail body is being read.
This should improve the performance when the saved-date isn't already cached
or otherwise quickly accessible.

This change also makes dsync slightly incompatible with earlier versions.
When using dsync with an earlier version the saved-dates aren't synced. It
would be too much trouble to try to preserve full backwards compatibility,
especially because saved-date doesn't matter so much and isn't even visible
to IMAP clients.

11 years agomaildir: Make sure the filename contains S=size and W=size even if GUID doesn't.
Timo Sirainen [Wed, 30 Apr 2014 03:03:56 +0000 (06:03 +0300)] 
maildir: Make sure the filename contains S=size and W=size even if GUID doesn't.

11 years agomaildir: Make sure we don't replace correct mail sizes with broken ones when preservi...
Timo Sirainen [Tue, 29 Apr 2014 13:44:58 +0000 (16:44 +0300)] 
maildir: Make sure we don't replace correct mail sizes with broken ones when preserving GUID.

11 years agolib-mail: test-istream-attachment updated
Timo Sirainen [Tue, 29 Apr 2014 13:14:14 +0000 (16:14 +0300)] 
lib-mail: test-istream-attachment updated

11 years agolib-mail: istream-attachment-extractor didn't correctly handle increasing base64...
Timo Sirainen [Tue, 29 Apr 2014 13:15:09 +0000 (16:15 +0300)] 
lib-mail: istream-attachment-extractor didn't correctly handle increasing base64 line length.
Based on patch by Pavel Stano

11 years agolib-mail: istream-attachment-extractor handled mixed LFs vs CRLFs correctly.
Timo Sirainen [Tue, 29 Apr 2014 13:03:17 +0000 (16:03 +0300)] 
lib-mail: istream-attachment-extractor handled mixed LFs vs CRLFs correctly.
Unless all the lines have the same newlines, the attachment can't be
recreated back exactly the same.

11 years agolib-mail: Added more tests to test-istream-dot.
Timo Sirainen [Tue, 29 Apr 2014 10:57:44 +0000 (13:57 +0300)] 
lib-mail: Added more tests to test-istream-dot.

11 years agolib-storage: Fixed crash if mailbox_save_cancel() was called in save_finish()/copy...
Timo Sirainen [Tue, 29 Apr 2014 10:35:06 +0000 (13:35 +0300)] 
lib-storage: Fixed crash if mailbox_save_cancel() was called in save_finish()/copy() method.

11 years agolib-index: Small code cleanup
Timo Sirainen [Tue, 29 Apr 2014 10:10:28 +0000 (13:10 +0300)] 
lib-index: Small code cleanup

11 years agoistream-lf: Cleanup & performance improvement.
Timo Sirainen [Tue, 29 Apr 2014 09:35:05 +0000 (12:35 +0300)] 
istream-lf: Cleanup & performance improvement.
memchr() is faster than lopping through the data ourself.

11 years agodsync: Yet another fix to working with old versions.
Timo Sirainen [Mon, 28 Apr 2014 21:53:01 +0000 (00:53 +0300)] 
dsync: Yet another fix to working with old versions.

11 years agolib-lda: More smtp-client.h API changes to support multiple destination addresses.
Timo Sirainen [Mon, 28 Apr 2014 21:50:08 +0000 (00:50 +0300)] 
lib-lda: More smtp-client.h API changes to support multiple destination addresses.

11 years agodsync: Fixed new dsync versions to work again with older versions.
Timo Sirainen [Mon, 28 Apr 2014 21:48:54 +0000 (00:48 +0300)] 
dsync: Fixed new dsync versions to work again with older versions.

11 years agodsync: If incremental dsync finds that its state is stale, retry (later) with full...
Timo Sirainen [Mon, 28 Apr 2014 17:14:03 +0000 (20:14 +0300)] 
dsync: If incremental dsync finds that its state is stale, retry (later) with full sync.
This works only when the master itself notices such changes locally. Remote
changes aren't noticed, because the master doesn't send the state to remote
dsync and the master is also the one that decides which mailboxes are
synced. The fix to this probably means sending the state string to remote
dsync and have it check if the state is still valid (= protocol change).

11 years agodsync: Include messages_count in the mailbox states.
Timo Sirainen [Mon, 28 Apr 2014 17:10:56 +0000 (20:10 +0300)] 
dsync: Include messages_count in the mailbox states.
This allows detecting that stateful dsync can't be done when message count
is suddenly wrong.

11 years agodsync: Finished previous change to actually compile
Timo Sirainen [Mon, 28 Apr 2014 16:12:01 +0000 (19:12 +0300)] 
dsync: Finished previous change to actually compile

11 years agodoveadm replicator add <user mask> command added.
Timo Sirainen [Mon, 28 Apr 2014 15:34:27 +0000 (18:34 +0300)] 
doveadm replicator add <user mask> command added.
This allows quickly adding users from userdb that don't exist in replicator.
For example "doveadm replicator add '*'" adds all the new users from userdb.

This isn't really necessary though. Users will be automatically added as
soon as their mailboxes change in some way and replicator gets notified
about them.

11 years agodsync: If dsync was started via doveadm-server, show the remote client's IP address...
Timo Sirainen [Mon, 28 Apr 2014 15:24:04 +0000 (18:24 +0300)] 
dsync: If dsync was started via doveadm-server, show the remote client's IP address in ps output.

11 years agolib-http: http-client: Prevented http_client_request_continue_payload() from segfault...
Stephan Bosch [Sun, 27 Apr 2014 16:05:38 +0000 (19:05 +0300)] 
lib-http: http-client: Prevented http_client_request_continue_payload() from segfaulting when the callback sets the request pointer to NULL.

11 years agolib-http: http-client: Forgot to switch dns-client io_loop in http_client_request_con...
Stephan Bosch [Sun, 27 Apr 2014 16:05:35 +0000 (19:05 +0300)] 
lib-http: http-client: Forgot to switch dns-client io_loop in http_client_request_continue_payload() in ealier change (6c3bd941e153).

11 years agolib-http: Fixed problem with connections idling indefinitely.
Stephan Bosch [Sat, 26 Apr 2014 19:40:14 +0000 (22:40 +0300)] 
lib-http: Fixed problem with connections idling indefinitely.
Forgot to check for idle connections when request finished after waiting
for payload to be read by application.

11 years agolib-http: Better error handling fix for payload read/write failures
Timo Sirainen [Fri, 25 Apr 2014 16:01:09 +0000 (19:01 +0300)] 
lib-http: Better error handling fix for payload read/write failures

11 years agolib-http: Failed payload read/write error was handled wrongly as "stream input size...
Timo Sirainen [Fri, 25 Apr 2014 15:55:31 +0000 (18:55 +0300)] 
lib-http: Failed payload read/write error was handled wrongly as "stream input size changed".

11 years agoiostream-temp: Improved stream naming.
Timo Sirainen [Fri, 25 Apr 2014 15:03:36 +0000 (18:03 +0300)] 
iostream-temp: Improved stream naming.

11 years agoCompiler warning fixes
Timo Sirainen [Fri, 25 Apr 2014 14:29:18 +0000 (17:29 +0300)] 
Compiler warning fixes

11 years agodsync: Added more debug output
Timo Sirainen [Fri, 25 Apr 2014 14:28:39 +0000 (17:28 +0300)] 
dsync: Added more debug output

11 years agodoveadm dump: Added support for mobox extensions in dovecot.index.
Timo Sirainen [Fri, 25 Apr 2014 13:35:51 +0000 (16:35 +0300)] 
doveadm dump: Added support for mobox extensions in dovecot.index.

11 years agolib-lda: Use the new smtp_client_init(), not _open()
Timo Sirainen [Fri, 25 Apr 2014 13:18:09 +0000 (16:18 +0300)] 
lib-lda: Use the new smtp_client_init(), not _open()

11 years agolib-lda: When non-RCPT/DATA command fails permanently, translate it internally to...
Timo Sirainen [Fri, 25 Apr 2014 13:15:20 +0000 (16:15 +0300)] 
lib-lda: When non-RCPT/DATA command fails permanently, translate it internally to temporary failure.
We shouldn't be answering permanent failures to RCPT/DATA command when the
failure really had nothing to do with the recipient/content itself. Most
likely it's just some server misconfiguration, which should be treated as
temporary error.

11 years agolib-lda: mail_send_rejection() logs permanent rejections now with info level.
Timo Sirainen [Fri, 25 Apr 2014 12:57:03 +0000 (15:57 +0300)] 
lib-lda: mail_send_rejection() logs permanent rejections now with info level.
There's no need to log an error when return-path is invalid.

11 years agolib-lda: Added new smtp_client_init/deinit() APIs
Timo Sirainen [Fri, 25 Apr 2014 12:54:49 +0000 (15:54 +0300)] 
lib-lda: Added new smtp_client_init/deinit() APIs
The new API allows better error handling.

11 years agosafe_memset(size=0) triggered read access to data[0], possibly crashing.
Timo Sirainen [Fri, 25 Apr 2014 12:52:37 +0000 (15:52 +0300)] 
safe_memset(size=0) triggered read access to data[0], possibly crashing.

11 years agolib-http: Added more information to "stream input size changed" error
Timo Sirainen [Fri, 25 Apr 2014 12:46:20 +0000 (15:46 +0300)] 
lib-http: Added more information to "stream input size changed" error

11 years agolib-lda: Removed unused mail_send_forward()
Timo Sirainen [Fri, 25 Apr 2014 12:31:08 +0000 (15:31 +0300)] 
lib-lda: Removed unused mail_send_forward()

11 years agodsync: If a parent \Noselect gets autocreated, don't fail later when trying to re...
Timo Sirainen [Fri, 25 Apr 2014 07:49:45 +0000 (10:49 +0300)] 
dsync: If a parent \Noselect gets autocreated, don't fail later when trying to re-create it.

11 years agodsync: Fixed high data stack memory usage
Timo Sirainen [Thu, 24 Apr 2014 15:18:42 +0000 (18:18 +0300)] 
dsync: Fixed high data stack memory usage

11 years agoi_stream_read_next_line(): Set also errno=ENOBUFS on too large line.
Timo Sirainen [Thu, 24 Apr 2014 10:49:25 +0000 (13:49 +0300)] 
i_stream_read_next_line(): Set also errno=ENOBUFS on too large line.
Some callers assume that errno is set to same as istream->stream_errno

11 years agodirector: Fixed handling weak users when there were exactly 2 director servers in...
Timo Sirainen [Wed, 23 Apr 2014 20:26:49 +0000 (23:26 +0300)] 
director: Fixed handling weak users when there were exactly 2 director servers in the ring.

11 years agodoveadm director map -u: Don't connect to director socket, it's not needed.
Timo Sirainen [Wed, 23 Apr 2014 19:33:48 +0000 (22:33 +0300)] 
doveadm director map -u: Don't connect to director socket, it's not needed.

11 years agodoveadm director map: Added -h and -u parameters to quickly map between username...
Timo Sirainen [Wed, 23 Apr 2014 19:30:28 +0000 (22:30 +0300)] 
doveadm director map: Added -h and -u parameters to quickly map between username and hash.

11 years agodoveadm director map: Show also the username hash.
Timo Sirainen [Wed, 23 Apr 2014 19:15:28 +0000 (22:15 +0300)] 
doveadm director map: Show also the username hash.

11 years agodirector: When logging about request timeout, log also the username hash.
Timo Sirainen [Wed, 23 Apr 2014 19:13:08 +0000 (22:13 +0300)] 
director: When logging about request timeout, log also the username hash.

11 years agodoveadm replicator replicate: Added -f parameter to force a full sync for user.
Timo Sirainen [Wed, 23 Apr 2014 17:55:04 +0000 (20:55 +0300)] 
doveadm replicator replicate: Added -f parameter to force a full sync for user.

11 years agodoveadm replicator replicate: -p parameter wasn't working correctly.
Timo Sirainen [Wed, 23 Apr 2014 17:53:55 +0000 (20:53 +0300)] 
doveadm replicator replicate: -p parameter wasn't working correctly.
We were just replicating the "-p" as the username.

11 years agodsync: Added assert
Timo Sirainen [Wed, 23 Apr 2014 16:21:40 +0000 (19:21 +0300)] 
dsync: Added assert

11 years agodsync: When initializing via doveadm-server, change the iostream buffer sizes to...
Timo Sirainen [Wed, 23 Apr 2014 16:20:23 +0000 (19:20 +0300)] 
dsync: When initializing via doveadm-server, change the iostream buffer sizes to unlimited.

11 years agoAdded o_stream_get_max_buffer_size()
Timo Sirainen [Wed, 23 Apr 2014 16:19:24 +0000 (19:19 +0300)] 
Added o_stream_get_max_buffer_size()

11 years agovirtual: Fixed assert-crash in IDLE caused by earlier changes.
Timo Sirainen [Wed, 23 Apr 2014 13:45:10 +0000 (16:45 +0300)] 
virtual: Fixed assert-crash in IDLE caused by earlier changes.
This change negates all the improvements of the earlier changes when IDLE is
used. This could be fixed by using mailbox-list-notify.h API.

11 years agovirtual: Delay initializing search args until the mailbox is actually opened.
Timo Sirainen [Wed, 23 Apr 2014 13:31:36 +0000 (16:31 +0300)] 
virtual: Delay initializing search args until the mailbox is actually opened.
Fixes assert-crash caused by recent changes when virtual mailbox search args
contained e.g. keywords.

11 years agosafe_memset() wasn't safe with modern compilers anymore.
Timo Sirainen [Tue, 22 Apr 2014 10:15:21 +0000 (13:15 +0300)] 
safe_memset() wasn't safe with modern compilers anymore.
Another try based on David Jacobson's code in
https://www.mail-archive.com/openssl-dev@openssl.org/msg34134.html :

"""
Since vs points to a volatile, the load in the while clause actually has to
be done. That forces the compiler to actually store c into at least the byte
that is tested, in practice byte zero. But the fact that the index is
volatile zero, and since it is volatile it could spontaneously change to
anything, the compiler has to store c into all bytes.

The key observation is that while you can't pass a volatile to memset (you
get a warning and the volatile gets stripped away), you can use a volatile
in a test that could go the wrong way if the memset were elided.
"""

11 years agoconnection: Added support for creating a stream from input/output stream pair.
Stephan Bosch [Sat, 19 Apr 2014 09:23:18 +0000 (11:23 +0200)] 
connection: Added support for creating a stream from input/output stream pair.

11 years agolib-http: Fixed resource leaks in http_client_wait() occurring a dns_client is used.
Timo Sirainen [Sat, 19 Apr 2014 09:21:47 +0000 (11:21 +0200)] 
lib-http: Fixed resource leaks in http_client_wait() occurring a dns_client is used.
If all DNS lookups finished before the end of the wait cycle, the dns_client would not be switched back to the original ioloop.

11 years agolib-dns: Added dns_client_switch_ioloop().
Timo Sirainen [Sat, 19 Apr 2014 09:21:19 +0000 (11:21 +0200)] 
lib-dns: Added dns_client_switch_ioloop().

11 years agoioloop: Fixed segfault crash in io_loop_call_pending().
Timo Sirainen [Sat, 19 Apr 2014 09:07:45 +0000 (11:07 +0200)] 
ioloop: Fixed segfault crash in io_loop_call_pending().
When a callback called io_set_pending(), the io_loop_call_pending() loop
crossed the end of the ioloop->io_files list.

Based on patch by Stephan Bosch

11 years agofts-lucene: Added mime_parts parameter to index MIME parts as separate documents.
Timo Sirainen [Thu, 17 Apr 2014 14:42:02 +0000 (16:42 +0200)] 
fts-lucene: Added mime_parts parameter to index MIME parts as separate documents.
This is in preparation for being able to actually read such information and
show it to clients via some new IMAP extension.

Also it might be better to index some MIME parts together to avoid wasting
disk space, but for now this is all or nothing. For example anything that is
"message body" could probably be indexed without the part number at all.

11 years agofts-lucene: Fixed "doveadm dump" crash when built with stemmer
Timo Sirainen [Thu, 17 Apr 2014 14:35:05 +0000 (16:35 +0200)] 
fts-lucene: Fixed "doveadm dump" crash when built with stemmer

11 years agolib-mail: Compile fix for last change..
Timo Sirainen [Thu, 17 Apr 2014 14:18:02 +0000 (16:18 +0200)] 
lib-mail: Compile fix for last change..

11 years agofts: Added message_part to fts_backend_build_key.
Timo Sirainen [Thu, 17 Apr 2014 14:12:00 +0000 (16:12 +0200)] 
fts: Added message_part to fts_backend_build_key.
This allows FTS backends to index MIME parts separately from each others.

11 years agolib-mail: Added support for struct message_part <-> index number translations.
Timo Sirainen [Thu, 17 Apr 2014 14:09:52 +0000 (16:09 +0200)] 
lib-mail: Added support for struct message_part <-> index number translations.

11 years agolib-mail: Moved struct message_part to a separate message-part.h
Timo Sirainen [Thu, 17 Apr 2014 14:04:13 +0000 (16:04 +0200)] 
lib-mail: Moved struct message_part to a separate message-part.h

11 years agoauth: If passdb/userdb has a name, use it for the log prefix instead of the driver...
Timo Sirainen [Thu, 17 Apr 2014 12:24:18 +0000 (14:24 +0200)] 
auth: If passdb/userdb has a name, use it for the log prefix instead of the driver name.

11 years agoauth: Use special AUTH_SUBSYS_DB/MECH parameters as auth_request_log*() subsystem.
Timo Sirainen [Thu, 17 Apr 2014 12:21:55 +0000 (14:21 +0200)] 
auth: Use special AUTH_SUBSYS_DB/MECH parameters as auth_request_log*() subsystem.
This avoids hardcoded strings all over the place and also allows assigning
the correct passdb/userdb name for log messages generated by generic
passdb/userdb code, which doesn't know exactly where it was called from.

11 years agoimapc: Fixed fetching specific headers without imapc_features=fetch-headers
Timo Sirainen [Thu, 17 Apr 2014 10:26:46 +0000 (12:26 +0200)] 
imapc: Fixed fetching specific headers without imapc_features=fetch-headers

11 years agofts: Added fts-parser support for Tika
Timo Sirainen [Thu, 17 Apr 2014 08:29:10 +0000 (10:29 +0200)] 
fts: Added fts-parser support for Tika
It can be enabled by setting:

plugin {
  fts_tika = http://localhost:9998/tika/
}

11 years agofts: Never put text/plain contents through fts-parsers.
Timo Sirainen [Thu, 17 Apr 2014 08:27:43 +0000 (10:27 +0200)] 
fts: Never put text/plain contents through fts-parsers.

11 years agofts: Added unload() method to fts-parsers to allow them to cleanup before plugin...
Timo Sirainen [Thu, 17 Apr 2014 08:26:11 +0000 (10:26 +0200)] 
fts: Added unload() method to fts-parsers to allow them to cleanup before plugin unload.

11 years agolib-http: http_client_request_finish_payload() no longer waits for the entire result...
Timo Sirainen [Thu, 17 Apr 2014 08:17:09 +0000 (10:17 +0200)] 
lib-http: http_client_request_finish_payload() no longer waits for the entire result payload.
The caller can now read it instead, or just discard it by not reading it.

11 years agofts: Free fts-parser on failures.
Timo Sirainen [Thu, 17 Apr 2014 07:45:55 +0000 (09:45 +0200)] 
fts: Free fts-parser on failures.

11 years agodoveadm replicator dsync-status: Show replication type as "-" for non-working dsyncs.
Timo Sirainen [Wed, 16 Apr 2014 16:19:57 +0000 (18:19 +0200)] 
doveadm replicator dsync-status: Show replication type as "-" for non-working dsyncs.

11 years agomaildir: Added maildir_empty_new setting to avoid keeping mails in new/ directory.
Timo Sirainen [Wed, 16 Apr 2014 14:05:12 +0000 (16:05 +0200)] 
maildir: Added maildir_empty_new setting to avoid keeping mails in new/ directory.
This is useful for example when using an external MDA that calls "doveadm
index" and the user hasn't opened the mailbox for a long time.

Also this removes the delay that user may see when opening a rarely accessed
mailbox, which renames a ton of files to cur/ while the user is waiting.

11 years agofts-solr: Removed unnecessary code
Timo Sirainen [Wed, 16 Apr 2014 13:44:46 +0000 (15:44 +0200)] 
fts-solr: Removed unnecessary code

11 years agoreplicator: Improve logging import/export errors.
Timo Sirainen [Wed, 16 Apr 2014 08:40:28 +0000 (10:40 +0200)] 
replicator: Improve logging import/export errors.