]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agolib-mail: Fix to previous message_header_encode() commit
Timo Sirainen [Sun, 11 May 2014 19:31:54 +0000 (22:31 +0300)] 
lib-mail: Fix to previous message_header_encode() commit

11 years agodoveadm penalty: Fixed using -a parameter
Timo Sirainen [Sun, 11 May 2014 19:19:15 +0000 (22:19 +0300)] 
doveadm penalty: Fixed using -a parameter

11 years agolib-mail: message_header_encode() now preserves folding whitespace
Timo Sirainen [Sun, 11 May 2014 19:15:08 +0000 (22:15 +0300)] 
lib-mail: message_header_encode() now preserves folding whitespace
This function could still use some cleaning up, but good enough for now..

Also it should try to minimize the encoded words, not necessarily encoding
everything between the first and the last words that have to be encoded.

11 years agolib-mail: message_header_encode_[bq]() now explicitly takes the first line length...
Timo Sirainen [Sun, 11 May 2014 18:08:51 +0000 (21:08 +0300)] 
lib-mail: message_header_encode_[bq]() now explicitly takes the first line length parameter.
So this change partially reverts the previous change, because
message_header_encode() was actually internally relying on this behavior.
The explicit parameter makes it clearer.

11 years agolib-mail: message_header_encode() no longer tries to lookup the first line's length...
Timo Sirainen [Sun, 11 May 2014 15:28:03 +0000 (18:28 +0300)] 
lib-mail: message_header_encode() no longer tries to lookup the first line's length from output string.
This function is used only by Pigeonhole, which only uses it for empty
output strings, so it's not useful there. Also that behavior is somewhat
unexpected and confusing.

11 years agoAdded signature for changeset 791ec610422c
Timo Sirainen [Thu, 8 May 2014 15:07:30 +0000 (18:07 +0300)] 
Added signature for changeset 791ec610422c

11 years agoAdded tag 2.2.13.rc1 for changeset 791ec610422c
Timo Sirainen [Thu, 8 May 2014 15:07:23 +0000 (18:07 +0300)] 
Added tag 2.2.13.rc1 for changeset 791ec610422c

11 years agoReleased v2.2.13.rc1. 2.2.13.rc1
Timo Sirainen [Thu, 8 May 2014 15:07:23 +0000 (18:07 +0300)] 
Released v2.2.13.rc1.

11 years agotreewide - use of explicit NULL in pointer comparisons rather than 0-alikes
Phil Carmody [Thu, 8 May 2014 12:53:27 +0000 (15:53 +0300)] 
treewide - use of explicit NULL in pointer comparisons rather than 0-alikes

Found by sparse.

11 years agolib-storage: maildir - don't use a bool to store a char
Phil Carmody [Thu, 8 May 2014 14:01:26 +0000 (17:01 +0300)] 
lib-storage: maildir - don't use a bool to store a char

11 years agolib-storage: pop3c - fix invalid blank password check
Phil Carmody [Thu, 8 May 2014 12:56:25 +0000 (15:56 +0300)] 
lib-storage: pop3c - fix invalid blank password check

The pointer will never be NULL, as it's initialised pointing to an empty
string, and can only be overridden by setting it to another string. So
the test always failed. Instead, check the 1st character of the password.

11 years agolib-storage: Removed unnecessary code.
Timo Sirainen [Thu, 8 May 2014 14:02:19 +0000 (17:02 +0300)] 
lib-storage: Removed unnecessary code.
mailbox_dir_name is never NULL, and when it's empty it can be handled
exactly the same as when it's non-empty.

11 years agoRemoved unnecessary #includes.
Teemu Huovila [Thu, 8 May 2014 12:11:26 +0000 (15:11 +0300)] 
Removed unnecessary #includes.

11 years agorun-tests.sh: Add support for reading valgrind suppressions if they exist.
Teemu Huovila [Thu, 8 May 2014 11:57:56 +0000 (14:57 +0300)] 
run-tests.sh: Add support for reading valgrind suppressions if they exist.

11 years agolib: fd_read() didn't check the msg.msg_controllen size correctly
Timo Sirainen [Thu, 8 May 2014 11:34:39 +0000 (14:34 +0300)] 
lib: fd_read() didn't check the msg.msg_controllen size correctly

11 years agolib: cosmetic - rename parameters so that .h and .c files match
Phil Carmody [Tue, 6 May 2014 09:44:38 +0000 (12:44 +0300)] 
lib: cosmetic - rename parameters so that .h and .c files match

These functions were flagging sparse warnings, but those warnings are
trivially (robotically) dismissable if the parameters are identically
named in the two contexts. Opted for whichever name seemed to be more
meaningful or sensible. e.g. char** became p rather than s, as it's
a pointer more than a string.

11 years agolib: wildcard-match - use NULL not 0 for pointers
Phil Carmody [Thu, 8 May 2014 08:20:36 +0000 (11:20 +0300)] 
lib: wildcard-match - use NULL not 0 for pointers

Flagged by sparse.

11 years agolib: a couple of trivial sparse cleanups
Phil Carmody [Wed, 7 May 2014 13:52:22 +0000 (16:52 +0300)] 
lib: a couple of trivial sparse cleanups

The #include isn't needed on modern linux, as the macros are already defined
The compiler seems to silently ignore redefinitions in system header files,
so didn't throw a warning, but probably should have, as redefinitions can lead
to insanity.

The cast just makes it explicit that we're changing the prototype.

11 years agolib-storage: Make struct fail_storage/mailbox/mail_vfuncs properly extern.
Timo Sirainen [Thu, 8 May 2014 11:11:46 +0000 (14:11 +0300)] 
lib-storage: Make struct fail_storage/mailbox/mail_vfuncs properly extern.
These could be useful when implementing some new dummy storage backends.

11 years agotreewide sparse cleanup - make single-unit-only data static
Phil Carmody [Tue, 6 May 2014 15:10:55 +0000 (18:10 +0300)] 
treewide sparse cleanup - make single-unit-only data static

Helps keep the global namespace clean. Not all the things suggested by
sparse have been moved. All DOVECOT_ABI_VERSION strings, and anything
replicated in all-settings.c by src/config/settings-get.pl has been
left untouched. Some of the latter could be moved, but the script would
need to be modified to replicate the 'static' (it outputs 'extern').

11 years agolib-storage: Code cleanups and potential crashfix.
Timo Sirainen [Thu, 8 May 2014 10:45:37 +0000 (13:45 +0300)] 
lib-storage: Code cleanups and potential crashfix.
Usually in blocks_count_lines() the full_input stream reading doesn't return
eof=true in the last read but only on the next. If this had changed for some
reason the code would have crashed in the assert checks.

11 years agofts-tika: Removed lib-http kludgy workaround, which is no longer needed.
Timo Sirainen [Thu, 8 May 2014 10:27:43 +0000 (13:27 +0300)] 
fts-tika: Removed lib-http kludgy workaround, which is no longer needed.

11 years agoMake static analyzer happier
Timo Sirainen [Thu, 8 May 2014 09:39:10 +0000 (12:39 +0300)] 
Make static analyzer happier

11 years agoFixed compiling when building without SSL support.
Timo Sirainen [Thu, 8 May 2014 08:29:34 +0000 (11:29 +0300)] 
Fixed compiling when building without SSL support.

11 years agorun-test.sh: Valgrind version check was broken for v3.10+, removed it entirely.
Timo Sirainen [Thu, 8 May 2014 07:21:56 +0000 (10:21 +0300)] 
run-test.sh: Valgrind version check was broken for v3.10+, removed it entirely.
RHEL 5.9 has valgrind v3.5 already, so there shouldn't really be any
important OSes using old valgrind that we need to support.

11 years agodsync: Make static analyzer happier (hopefully)
Timo Sirainen [Wed, 7 May 2014 20:32:28 +0000 (23:32 +0300)] 
dsync: Make static analyzer happier (hopefully)

11 years agolib-mail: Added asserts to make static analyzer happier
Timo Sirainen [Wed, 7 May 2014 20:26:57 +0000 (23:26 +0300)] 
lib-mail: Added asserts to make static analyzer happier

11 years agoFixed compiling on systems without MAP_ANONYMOUS
Timo Sirainen [Wed, 7 May 2014 20:25:50 +0000 (23:25 +0300)] 
Fixed compiling on systems without MAP_ANONYMOUS
For example OSX.

11 years agoauth: Minor code cleanup
Timo Sirainen [Wed, 7 May 2014 20:22:13 +0000 (23:22 +0300)] 
auth: Minor code cleanup

11 years agoauth: LDAP errors may have crashed the auth process.
Timo Sirainen [Wed, 7 May 2014 17:24:05 +0000 (20:24 +0300)] 
auth: LDAP errors may have crashed the auth process.

11 years agolib-index: Fixed detecting broken strmap index file (thread index).
Teemu Huovila [Wed, 7 May 2014 17:21:02 +0000 (20:21 +0300)] 
lib-index: Fixed detecting broken strmap index file (thread index).

11 years agopop3: Remove dead assignment detected by scan-build.
Teemu Huovila [Wed, 7 May 2014 17:18:39 +0000 (20:18 +0300)] 
pop3: Remove dead assignment detected by scan-build.

11 years agodoveadm: table formatter printed header unaligned if it had hidden titles.
Timo Sirainen [Wed, 7 May 2014 17:14:32 +0000 (20:14 +0300)] 
doveadm: table formatter printed header unaligned if it had hidden titles.
This was broken by the previous table formatter change.

11 years agolib-imap: IMAP parser didn't parse atoms correctly that started with '~' character.
Timo Sirainen [Wed, 7 May 2014 16:47:12 +0000 (19:47 +0300)] 
lib-imap: IMAP parser didn't parse atoms correctly that started with '~' character.
literal8 begins only after "~{", not immediately after "~" which is a valid
ATOM-CHAR.

11 years agolib: fix md4/md5 buffer read overrun
Phil Carmody [Wed, 7 May 2014 15:39:23 +0000 (18:39 +0300)] 
lib: fix md4/md5 buffer read overrun

uint_fast32_t may be 64 bits and read too many bytes at the end of the buffer.
This didn't actually break anything as long as there was 32 bits of readable
memory past the buffer.

11 years agofts-lucene: Don't mix definite + maybe queries for now, since it returns broken results.
Timo Sirainen [Wed, 7 May 2014 16:34:42 +0000 (19:34 +0300)] 
fts-lucene: Don't mix definite + maybe queries for now, since it returns broken results.

11 years ago*-login: SSL connections didn't get closed when the client got destroyed.
Timo Sirainen [Wed, 7 May 2014 14:26:21 +0000 (17:26 +0300)] 
*-login: SSL connections didn't get closed when the client got destroyed.

11 years agoacl: Global ACL file used only the first matching rights line, not merging all the...
Timo Sirainen [Wed, 7 May 2014 14:12:19 +0000 (17:12 +0300)] 
acl: Global ACL file used only the first matching rights line, not merging all the matches.

11 years agolib-storage: Fixed assert-crash when looking up private flags for a mail being saved.
Timo Sirainen [Wed, 7 May 2014 13:41:34 +0000 (16:41 +0300)] 
lib-storage: Fixed assert-crash when looking up private flags for a mail being saved.

11 years agomdbox: Fixed race condition when creating a new mailbox and another process getting...
Timo Sirainen [Wed, 7 May 2014 13:36:54 +0000 (16:36 +0300)] 
mdbox: Fixed race condition when creating a new mailbox and another process getting its GUID.

11 years agoliblib: Added unit test for hash methods to make sure they don't do read access beyon...
Timo Sirainen [Wed, 7 May 2014 10:02:29 +0000 (13:02 +0300)] 
liblib: Added unit test for hash methods to make sure they don't do read access beyond buffer.
This currently fails for MD4 and MD5, so they need to be fixed/replaced..

11 years agolib-compression: Added some unit testing for lib-compression.
Timo Sirainen [Wed, 7 May 2014 10:01:17 +0000 (13:01 +0300)] 
lib-compression: Added some unit testing for lib-compression.
Not perfect in any way, but at least tests if things are completely broken.

11 years agolib-compression: gz compression didn't handle multiple flushes correctly.
Timo Sirainen [Wed, 7 May 2014 09:27:36 +0000 (12:27 +0300)] 
lib-compression: gz compression didn't handle multiple flushes correctly.

11 years agolib-compression: istream-lz4 shouldn't crash when closing the stream multiple times.
Timo Sirainen [Wed, 7 May 2014 09:26:58 +0000 (12:26 +0300)] 
lib-compression: istream-lz4 shouldn't crash when closing the stream multiple times.

11 years agolib-compression: Fixed LZMA compression.
Timo Sirainen [Wed, 7 May 2014 09:26:38 +0000 (12:26 +0300)] 
lib-compression: Fixed LZMA compression.
The code now looks more like the doc/examples/01_compress_easy.c distributed
with xz-utils. Most importantly this changes LZMA_OK to be allowed as a
result for lzma_code(zs, LZMA_FINISH).

11 years agopop3: Fixed assert-crash with some settings when there are 0 mails.
Timo Sirainen [Tue, 6 May 2014 12:34:00 +0000 (15:34 +0300)] 
pop3: Fixed assert-crash with some settings when there are 0 mails.

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