]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agoreplication plugin: Use low priority for mail copying operations.
Timo Sirainen [Wed, 22 Oct 2014 21:15:23 +0000 (14:15 -0700)] 
replication plugin: Use low priority for mail copying operations.

11 years agolib: Added unit tests for guid_128_*()
Timo Sirainen [Wed, 22 Oct 2014 02:40:44 +0000 (05:40 +0300)] 
lib: Added unit tests for guid_128_*()

11 years agolib: Added guid_128_copy()
Timo Sirainen [Tue, 21 Oct 2014 23:59:22 +0000 (02:59 +0300)] 
lib: Added guid_128_copy()

11 years agolib-http: client: If peer is unlinked from queue and no other links remain, close...
Stephan Bosch [Tue, 21 Oct 2014 20:34:50 +0000 (23:34 +0300)] 
lib-http: client: If peer is unlinked from queue and no other links remain, close any pending connections.
Those pending connections would no longer serve any purpose.

11 years agolib-storage: LAYOUT=index no longer keeps list index locked while creating mailbox.
Timo Sirainen [Tue, 21 Oct 2014 02:46:22 +0000 (05:46 +0300)] 
lib-storage: LAYOUT=index no longer keeps list index locked while creating mailbox.
Mailbox opening can be slow and complicated and could even try to lock the
list index again. So it's a bit more racy now, but all mailbox formats can
already handle races with mailbox creation.

11 years agolib-storage: Partially reverted previous change. Added mailbox_list_index_sync_delete...
Timo Sirainen [Tue, 21 Oct 2014 02:44:09 +0000 (05:44 +0300)] 
lib-storage: Partially reverted previous change. Added mailbox_list_index_sync_delete() instead.

11 years agolib-storage: Added mailbox_list_index_delete_entry()
Timo Sirainen [Tue, 21 Oct 2014 00:58:56 +0000 (03:58 +0300)] 
lib-storage: Added mailbox_list_index_delete_entry()

11 years agolib: test-buffer was randomly crashing with SIGFPE
Timo Sirainen [Mon, 20 Oct 2014 23:48:20 +0000 (02:48 +0300)] 
lib: test-buffer was randomly crashing with SIGFPE

11 years agolib-http: client: Created list of all submitted requests.
Stephan Bosch [Mon, 20 Oct 2014 15:54:27 +0000 (08:54 -0700)] 
lib-http: client: Created list of all submitted requests.
Currently only needed to improve debugging of hanging requests.

11 years agolib-http: client: Fixed behavior of connection backoff timer when multiple IPs are...
Stephan Bosch [Mon, 20 Oct 2014 15:54:27 +0000 (08:54 -0700)] 
lib-http: client: Fixed behavior of connection backoff timer when multiple IPs are returned for hostname.
Peer backoff data was lost because peer was destroyed quickly. Now the peer
object is retained during the backoff period, so that new connection
attempts adhere to the backoff period.

11 years agolib-http: client: Connection erroneously indicated that it was ready while SSL handsh...
Stephan Bosch [Mon, 20 Oct 2014 15:54:27 +0000 (08:54 -0700)] 
lib-http: client: Connection erroneously indicated that it was ready while SSL handshake was not yet completed.

11 years agolib-http: client: Fixed behavior for max_connect_attempts with fewer IPs than attempts.
Stephan Bosch [Mon, 20 Oct 2014 15:54:27 +0000 (08:54 -0700)] 
lib-http: client: Fixed behavior for max_connect_attempts with fewer IPs than attempts.
This was broken by earlier 'fix'.

11 years agolib-http: client: Fixed handling of connection timeouts.
Stephan Bosch [Mon, 20 Oct 2014 15:54:26 +0000 (08:54 -0700)] 
lib-http: client: Fixed handling of connection timeouts.
A timeout caused an assert failure, because the connection status was
altered before the peer_connection_failure handler was called.

11 years agoman: Reworked some formatting requests.
Pascal Volk [Sun, 19 Oct 2014 19:29:34 +0000 (19:29 +0000)] 
man: Reworked some formatting requests.

On some systems, for example SunOS 5.10, the example commands were cut off.

11 years agoimap, pop3, lmtp: If client gets disconnected due to iostream error, log the full...
Timo Sirainen [Sun, 19 Oct 2014 18:24:12 +0000 (11:24 -0700)] 
imap, pop3, lmtp: If client gets disconnected due to iostream error, log the full error.

11 years agodoveadm fetch: If istream reading fails, log a better error message.
Timo Sirainen [Fri, 17 Oct 2014 23:13:30 +0000 (02:13 +0300)] 
doveadm fetch: If istream reading fails, log a better error message.

11 years agolib-storage: When logging about corrupted cached message size, log the filename also.
Timo Sirainen [Fri, 17 Oct 2014 23:12:47 +0000 (02:12 +0300)] 
lib-storage: When logging about corrupted cached message size, log the filename also.

11 years agolib-storage: If we detect a broken cached message size, log more information about it.
Timo Sirainen [Fri, 17 Oct 2014 22:55:02 +0000 (01:55 +0300)] 
lib-storage: If we detect a broken cached message size, log more information about it.
Also try to include one of the cached headers in the message, which could
allow detecting if the cached data pointed to a completely different
message.

11 years agolib-lda: And fixed the earlier commit.
Timo Sirainen [Fri, 17 Oct 2014 17:02:54 +0000 (10:02 -0700)] 
lib-lda: And fixed the earlier commit.

11 years agolib-lda: duplicate_flush() now unlocks the duplicate database even if nothing had...
Timo Sirainen [Fri, 17 Oct 2014 16:59:21 +0000 (09:59 -0700)] 
lib-lda: duplicate_flush() now unlocks the duplicate database even if nothing had changed.

11 years agolib-storage: LAYOUT=index doesn't reserve '~' as internal separator anymore.
Timo Sirainen [Thu, 16 Oct 2014 15:19:03 +0000 (08:19 -0700)] 
lib-storage: LAYOUT=index doesn't reserve '~' as internal separator anymore.
The index doesn't reserve any character as hierarchy separator, so the
internal separator can change at any time. Use the namespace's configured
hierarchy separator as the internal separator to avoid reserving any
characters. If namespace separator isn't configured, fallback to the
original '~' so this change shouldn't break anything.

11 years agodoveconf: Changed _doveconf_comment symbol suffix to _doveconf_banner
Timo Sirainen [Thu, 16 Oct 2014 14:25:17 +0000 (07:25 -0700)] 
doveconf: Changed _doveconf_comment symbol suffix to _doveconf_banner
That describes its behavior better.

11 years agodoveconf: Allow settings plugins to print comments to the output header.
Timo Sirainen [Wed, 15 Oct 2014 14:37:05 +0000 (07:37 -0700)] 
doveconf: Allow settings plugins to print comments to the output header.
If plugin contains <plugin name>_doveconf_comment string, it's written as
part of the doveconf output. The idea mainly being that the major plugins
(such as Pigeonhole) could print their version number there to avoid having
to ask for it separately.

11 years agoimap-zlib: Removed check for disallowing COMPRESS to be used with TLS compression.
Timo Sirainen [Tue, 14 Oct 2014 23:57:13 +0000 (16:57 -0700)] 
imap-zlib: Removed check for disallowing COMPRESS to be used with TLS compression.
Clients shouldn't be doing this in any case, and this check doesn't work
properly with proxies.

We could solve the check properly for Dovecot proxies by having them send
the TLS compression state to backends, but it would still leave non-Dovecot
proxies broken. Although we could just not advertise COMPRESS=DEFLATE
extension if TLS compression is enabled and non-Dovecot proxies at least
wouldn't cause failures. Still, overall seems like a lot of work for such a
small and probably unnecessary extra check.

11 years agolib-ssl-iostream: Allow commas also in ssl_protocols setting.
Timo Sirainen [Tue, 14 Oct 2014 19:17:36 +0000 (12:17 -0700)] 
lib-ssl-iostream: Allow commas also in ssl_protocols setting.

11 years agoCompiling fix for some systems.
Timo Sirainen [Tue, 14 Oct 2014 19:14:14 +0000 (12:14 -0700)] 
Compiling fix for some systems.

11 years agoauth: Minor fix to previous commit.
Timo Sirainen [Tue, 14 Oct 2014 17:17:26 +0000 (10:17 -0700)] 
auth: Minor fix to previous commit.

11 years agoauth: Check for empty username after doing all the username changes.
Timo Sirainen [Tue, 14 Oct 2014 17:16:03 +0000 (10:16 -0700)] 
auth: Check for empty username after doing all the username changes.

11 years agoAdded signature for changeset 6dad1f6e8930
Timo Sirainen [Tue, 14 Oct 2014 16:49:58 +0000 (19:49 +0300)] 
Added signature for changeset 6dad1f6e8930

11 years agoAdded tag 2.2.14 for changeset 6dad1f6e8930
Timo Sirainen [Tue, 14 Oct 2014 16:49:55 +0000 (19:49 +0300)] 
Added tag 2.2.14 for changeset 6dad1f6e8930

11 years agoReleased v2.2.14. 2.2.14
Timo Sirainen [Tue, 14 Oct 2014 16:49:55 +0000 (19:49 +0300)] 
Released v2.2.14.

11 years agolib-storage: Added X-REAL-UID search parameter.
Timo Sirainen [Tue, 14 Oct 2014 16:39:50 +0000 (09:39 -0700)] 
lib-storage: Added X-REAL-UID search parameter.

11 years agoCompiler warning fix
Timo Sirainen [Tue, 14 Oct 2014 16:36:15 +0000 (09:36 -0700)] 
Compiler warning fix

11 years agolib: i_stream_read_next_line() now sets a better error message if line is too long.
Timo Sirainen [Tue, 14 Oct 2014 16:22:40 +0000 (09:22 -0700)] 
lib: i_stream_read_next_line() now sets a better error message if line is too long.

11 years agoauth: Fix to earlier commit: Don't try to resume already finished user iteration.
Timo Sirainen [Mon, 13 Oct 2014 16:13:53 +0000 (09:13 -0700)] 
auth: Fix to earlier commit: Don't try to resume already finished user iteration.

11 years agolib-index: Automatically grow header size on header updates.
Timo Sirainen [Mon, 13 Oct 2014 15:50:44 +0000 (08:50 -0700)] 
lib-index: Automatically grow header size on header updates.
This fixes assert-crashes when it didn't happen.

For example an old Maildir index could have had a header size 24. Dovecot
crashed then when trying to update it, because the new header size is 36 and
there wasn't an explicit mail_index_ext_resize_hdr() call.

11 years agoCompile fix for systems without dlopen()
Timo Sirainen [Mon, 13 Oct 2014 13:55:15 +0000 (06:55 -0700)] 
Compile fix for systems without dlopen()

11 years agolib-http: client: Moved delayed failed requests from host to client object.
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: Moved delayed failed requests from host to client object.

11 years agolib-http: client: With the recent addition of a connection attempt limit, connection...
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: With the recent addition of a connection attempt limit, connection failures weren't always handled correctly.

11 years agolib-http: client: Fixed segfault caused by earlier change.
Stephan Bosch [Sun, 12 Oct 2014 15:58:40 +0000 (08:58 -0700)] 
lib-http: client: Fixed segfault caused by earlier change.

11 years agoauth: Make sure userdb iteration is destroyed if worker connection disconnects.
Timo Sirainen [Fri, 10 Oct 2014 21:02:00 +0000 (00:02 +0300)] 
auth: Make sure userdb iteration is destroyed if worker connection disconnects.

11 years agoauth: Userdb iteration optimization.
Timo Sirainen [Fri, 10 Oct 2014 21:01:09 +0000 (00:01 +0300)] 
auth: Userdb iteration optimization.
Don't keep re-creating the timeout after iterating each user.

11 years agolib-dns: The dns_lookup() call caused a crash upon a connect error, because dns_clien...
Stephan Bosch [Fri, 10 Oct 2014 21:43:38 +0000 (00:43 +0300)] 
lib-dns: The dns_lookup() call caused a crash upon a connect error, because dns_client_disconnect() can indirectly call itself recursively.
Solved by dropping the list of lookups from the client object before the
lookups are destroyed.

11 years agoauth: If userdb iteration client disconnects early, make sure we don't get stuck.
Timo Sirainen [Fri, 10 Oct 2014 20:59:52 +0000 (23:59 +0300)] 
auth: If userdb iteration client disconnects early, make sure we don't get stuck.

11 years agomaildir: Don't limit uidlist line lengths to 4096 bytes.
Timo Sirainen [Fri, 10 Oct 2014 15:11:58 +0000 (18:11 +0300)] 
maildir: Don't limit uidlist line lengths to 4096 bytes.
Although this always indicates corruption, the current code doesn't handle
that very nicely. One fix would be to just ignore such long lines, but this
is easier to implement..

11 years agolib-http: client: Fixed assert crash occurring when DNS lookup fails immediately...
Stephan Bosch [Thu, 9 Oct 2014 21:46:15 +0000 (00:46 +0300)] 
lib-http: client: Fixed assert crash occurring when DNS lookup fails immediately during request submission.
In that situation, the request was not dropped from the queue immediately, triggering the assert crash.

11 years agolib-lda: Compiler warning fix
Timo Sirainen [Thu, 9 Oct 2014 18:23:08 +0000 (21:23 +0300)] 
lib-lda: Compiler warning fix

11 years agombox: Removed obsolete code that also wasn't compiling because of previous commit.
Timo Sirainen [Thu, 9 Oct 2014 18:22:45 +0000 (21:22 +0300)] 
mbox: Removed obsolete code that also wasn't compiling because of previous commit.

11 years agoman: doveadm-acl.1: Corrected description of default output formatter.
Pascal Volk [Thu, 9 Oct 2014 18:19:03 +0000 (18:19 +0000)] 
man: doveadm-acl.1: Corrected description of default output formatter.

11 years agolib-index: Removed dovecot.index locking related code, which is no longer used.
Timo Sirainen [Thu, 9 Oct 2014 17:46:31 +0000 (20:46 +0300)] 
lib-index: Removed dovecot.index locking related code, which is no longer used.

11 years agolib: Updated comment to o_stream_send_istream()
Timo Sirainen [Thu, 9 Oct 2014 15:41:06 +0000 (18:41 +0300)] 
lib: Updated comment to o_stream_send_istream()

11 years agolib: Fixed assert-crash in o_stream_send_istream() if input stream was the one that...
Timo Sirainen [Thu, 9 Oct 2014 15:40:54 +0000 (18:40 +0300)] 
lib: Fixed assert-crash in o_stream_send_istream() if input stream was the one that failed.

11 years agolib-index: Added mail_index_sync_no_warning() to prevent "long transaction lock"...
Timo Sirainen [Thu, 9 Oct 2014 15:27:14 +0000 (18:27 +0300)] 
lib-index: Added mail_index_sync_no_warning() to prevent "long transaction lock" warnings.
Use it with Maildir to prevent double-warning.

11 years agolib-index: Include reason string in warnings about keeping transaction log locked...
Timo Sirainen [Thu, 9 Oct 2014 15:26:05 +0000 (18:26 +0300)] 
lib-index: Include reason string in warnings about keeping transaction log locked for too long.

11 years agolib-index: Replaced some automatic transaction log unlocks with asserts.
Timo Sirainen [Thu, 9 Oct 2014 15:23:41 +0000 (18:23 +0300)] 
lib-index: Replaced some automatic transaction log unlocks with asserts.
Some earlier Dovecot versions were read-locking transaction logs and this
was useful there. But now we only do exclusive locking for the log head, so
it's an error not to explicitly unlock the files.

11 years agolib-index: If locking transaction log times out, show the PID which has it locked.
Timo Sirainen [Thu, 9 Oct 2014 15:20:56 +0000 (18:20 +0300)] 
lib-index: If locking transaction log times out, show the PID which has it locked.

11 years agomaildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long...
Timo Sirainen [Thu, 9 Oct 2014 15:19:11 +0000 (18:19 +0300)] 
maildir: Use MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as threshold for logging a "long sync" warning.
This is because the index syncing keeps the log locked, and other processes
trying to lock the log will start logging warnings as well.

11 years agolib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API.
Timo Sirainen [Thu, 9 Oct 2014 15:17:26 +0000 (18:17 +0300)] 
lib-index: Moved MAIL_TRANSACTION_LOG_LOCK_WARN_SECS as part of public API.

11 years agolib: o_stream_send_istream() shouldn't ignore EINTRs for file ostreams.
Timo Sirainen [Thu, 9 Oct 2014 15:14:43 +0000 (18:14 +0300)] 
lib: o_stream_send_istream() shouldn't ignore EINTRs for file ostreams.
Also added extra asserts to make sure that either we return an error or we
write everything from input stream to output stream. This should make it
safe to write to files using just:

if (o_stream_send_istream(ostream, istream) < 0) {
  // failed
} else {
  // everything in istream was written to ostream
}

11 years agolib: o_stream_send_istream() should return -1 if there was an error reading input...
Timo Sirainen [Thu, 9 Oct 2014 15:12:46 +0000 (18:12 +0300)] 
lib: o_stream_send_istream() should return -1 if there was an error reading input stream.

11 years agolib: Added file_lock_find() to find which process has a file locked.
Timo Sirainen [Thu, 9 Oct 2014 15:12:14 +0000 (18:12 +0300)] 
lib: Added file_lock_find() to find which process has a file locked.

11 years agolib-storage: Small comment update
Timo Sirainen [Thu, 9 Oct 2014 13:51:22 +0000 (16:51 +0300)] 
lib-storage: Small comment update

11 years agolib-storage: If uncached header unfolding fails, panic instead of returning error.
Timo Sirainen [Thu, 9 Oct 2014 13:42:01 +0000 (16:42 +0300)] 
lib-storage: If uncached header unfolding fails, panic instead of returning error.
This really shouldn't be happening. This also makes it clear that return
value -1 means some kind of I/O error instead of corruption.

11 years agolib-storage: Fixed header parsing when there were multiple same header names.
Timo Sirainen [Thu, 9 Oct 2014 13:41:23 +0000 (16:41 +0300)] 
lib-storage: Fixed header parsing when there were multiple same header names.
For example if a mail had:

Name1: a
Name1: b
Name2: c

If the Name1: was initially added to cache and Name2: not, but later on both
were attempted to be added to cache, the Name2: lookup would have been added
with "b" instead of "c" value.

11 years agolib-lda: Added smtp_client_abort()
Timo Sirainen [Thu, 9 Oct 2014 09:02:21 +0000 (12:02 +0300)] 
lib-lda: Added smtp_client_abort()

11 years agolda, lmtp: Use mail_deliver_context.tempfail_error first if it exists (instead of...
Timo Sirainen [Wed, 8 Oct 2014 19:10:34 +0000 (22:10 +0300)] 
lda, lmtp: Use mail_deliver_context.tempfail_error first if it exists (instead of storage error).

11 years agolib: Compiling fix for FreeBSD
Timo Sirainen [Wed, 8 Oct 2014 13:28:40 +0000 (16:28 +0300)] 
lib: Compiling fix for FreeBSD
Patch by Eero Hänninen

11 years agolib-storage: LAYOUT=index small code cleanup
Timo Sirainen [Wed, 8 Oct 2014 08:34:05 +0000 (11:34 +0300)] 
lib-storage: LAYOUT=index small code cleanup

11 years agolib-storage: Fixed earlier LAYOUT=index change to refresh index before opening a...
Timo Sirainen [Wed, 8 Oct 2014 08:33:50 +0000 (11:33 +0300)] 
lib-storage: Fixed earlier LAYOUT=index change to refresh index before opening a view to it.
Fixes an assert-crash.

11 years agoman: Added doveadm-proxy.1.
Pascal Volk [Tue, 7 Oct 2014 22:24:21 +0000 (22:24 +0000)] 
man: Added doveadm-proxy.1.

11 years agolib-storage: Fixed some race condition crashes with LAYOUT=index
Timo Sirainen [Tue, 7 Oct 2014 18:35:44 +0000 (21:35 +0300)] 
lib-storage: Fixed some race condition crashes with LAYOUT=index

11 years agolib-storage: Fixed assert-crash when BODYSTRUCTURE parsing fails due to broken mail...
Timo Sirainen [Tue, 7 Oct 2014 17:29:16 +0000 (20:29 +0300)] 
lib-storage: Fixed assert-crash when BODYSTRUCTURE parsing fails due to broken mail size.

11 years agolib-mail: Added asserts
Timo Sirainen [Tue, 7 Oct 2014 17:28:06 +0000 (20:28 +0300)] 
lib-mail: Added asserts

11 years agolib-index: Fixed assert-crash in some cache locking race conditions.
Timo Sirainen [Tue, 7 Oct 2014 17:13:36 +0000 (20:13 +0300)] 
lib-index: Fixed assert-crash in some cache locking race conditions.
If mail_index_map() is being called, we can't refresh the index or it'll
crash. It wouldn't help anyway, since the index was just refreshed.

11 years agolib-fs: struct fs_file's write_pending is a flag
Phil Carmody [Tue, 7 Oct 2014 16:48:34 +0000 (19:48 +0300)] 
lib-fs: struct fs_file's write_pending is a flag
Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib-index: Delay unlocking cache compression until changes to transaction log are...
Timo Sirainen [Tue, 7 Oct 2014 16:07:16 +0000 (19:07 +0300)] 
lib-index: Delay unlocking cache compression until changes to transaction log are committed.
This should fix race condition with two processes compressing the file at
the same time with same file_seq and becoming confused.

11 years agolib-index: Added path parameter to mail_index_create_tmp_file()
Timo Sirainen [Tue, 7 Oct 2014 16:04:36 +0000 (19:04 +0300)] 
lib-index: Added path parameter to mail_index_create_tmp_file()
This allows using it for creating any kind of a new index file with proper
file permissions.

Some of the old code should probably be changed to use this. Maybe even move
this function to public mail-index.h

11 years agolib-index: Try to minimize race conditions while compressing cache.
Timo Sirainen [Tue, 7 Oct 2014 15:58:01 +0000 (18:58 +0300)] 
lib-index: Try to minimize race conditions while compressing cache.
There are some unavoidable race conditions, but try to keep their time
window as small as possible.

11 years agolib-index: mail_cache_lock() partial rewrite.
Timo Sirainen [Tue, 7 Oct 2014 15:47:09 +0000 (18:47 +0300)] 
lib-index: mail_cache_lock() partial rewrite.
require_same_reset_id is no longer needed, if it ever was. If we're locking
the cache file, we always want the latest one. The logic of locking in
general was somewhat confusing and it probably didn't always successfully
lock when it should have, because the reset_id happened to match an old
file.

11 years agolib-index: Code cleanup - avoid code duplication.
Timo Sirainen [Mon, 6 Oct 2014 23:54:35 +0000 (02:54 +0300)] 
lib-index: Code cleanup - avoid code duplication.

11 years agolib-index: Fixed cache file creation race condition.
Timo Sirainen [Mon, 6 Oct 2014 23:35:41 +0000 (02:35 +0300)] 
lib-index: Fixed cache file creation race condition.
If two processes are creating the index files at the same time, don't have
one of them delete the dovecot.index.cache that the other one just created.
This means we never should be calling mail_cache_create(), so it was removed
entirely.

11 years agolib-index: Don't keep cache file locked for as long while syncing index.
Timo Sirainen [Mon, 6 Oct 2014 23:33:03 +0000 (02:33 +0300)] 
lib-index: Don't keep cache file locked for as long while syncing index.
The earlier code was required for updating the cache offsets, but this code
no longer exists. Now we just need to update the record counts in the
header, which can be done quickly at the end of the sync.

11 years agoman: Fixed broken syntax in doveadm-sync.1.
Pascal Volk [Mon, 6 Oct 2014 20:50:34 +0000 (20:50 +0000)] 
man: Fixed broken syntax in doveadm-sync.1.

11 years agolib-dict: Fixed race condition in mkdir()ing dict file's parent directory.
Timo Sirainen [Mon, 6 Oct 2014 19:12:01 +0000 (22:12 +0300)] 
lib-dict: Fixed race condition in mkdir()ing dict file's parent directory.

11 years agosdbox: Fixed race condition when two processes mkdir() the same directory
Timo Sirainen [Mon, 6 Oct 2014 18:15:31 +0000 (21:15 +0300)] 
sdbox: Fixed race condition when two processes mkdir() the same directory

11 years agoMinor code cleanup to previous change.
Timo Sirainen [Mon, 6 Oct 2014 17:17:19 +0000 (20:17 +0300)] 
Minor code cleanup to previous change.
No need to have a data stack frame here.

11 years agolog_timestamp setting supports now %{usecs}
Timo Sirainen [Mon, 6 Oct 2014 17:16:07 +0000 (20:16 +0300)] 
log_timestamp setting supports now %{usecs}
This is mainly useful for debugging.

11 years agoman: Added doveadm-replicator.1.
Pascal Volk [Sun, 5 Oct 2014 23:36:10 +0000 (23:36 +0000)] 
man: Added doveadm-replicator.1.

11 years agoman: Forgot to update doveadm.1 in previous commit (fec91a386bb0).
Pascal Volk [Sun, 5 Oct 2014 23:25:48 +0000 (23:25 +0000)] 
man: Forgot to update doveadm.1 in previous commit (fec91a386bb0).

11 years agoman: Reworked dsync.1 and renamed it to doveadm-sync.1.
Pascal Volk [Sun, 5 Oct 2014 20:18:20 +0000 (20:18 +0000)] 
man: Reworked dsync.1 and renamed it to doveadm-sync.1.

11 years agodsync: Debug logging improvements and comment clarifications.
Timo Sirainen [Mon, 6 Oct 2014 10:17:00 +0000 (13:17 +0300)] 
dsync: Debug logging improvements and comment clarifications.

11 years agodsync: Fixed potential crash when deleting mailbox.
Timo Sirainen [Mon, 6 Oct 2014 10:13:04 +0000 (13:13 +0300)] 
dsync: Fixed potential crash when deleting mailbox.

11 years agodoveadm backup: Don't unnecessarily delete mailbox when handling expunges
Timo Sirainen [Mon, 6 Oct 2014 10:15:10 +0000 (13:15 +0300)] 
doveadm backup: Don't unnecessarily delete mailbox when handling expunges

11 years agodoveadm backup: Local mailbox was deleted also when there were just new messages.
Timo Sirainen [Mon, 6 Oct 2014 09:21:52 +0000 (12:21 +0300)] 
doveadm backup: Local mailbox was deleted also when there were just new messages.

11 years agodoveadm backup: When deleting a mailbox, log a warning, not just a debug message.
Timo Sirainen [Mon, 6 Oct 2014 09:21:24 +0000 (12:21 +0300)] 
doveadm backup: When deleting a mailbox, log a warning, not just a debug message.
Because we're also returning temporary failure in any case, so there needs
to be some kind of a warning/error logged.

11 years agodsync: Fixed linking with some systems.
Timo Sirainen [Sun, 5 Oct 2014 17:56:39 +0000 (20:56 +0300)] 
dsync: Fixed linking with some systems.

11 years agodoveadm sync/backup: Updated usage string
Timo Sirainen [Sun, 5 Oct 2014 10:24:02 +0000 (13:24 +0300)] 
doveadm sync/backup: Updated usage string

11 years agolib: Added support for connecting UDP sockets.
Stephan Bosch [Sat, 4 Oct 2014 14:48:03 +0000 (17:48 +0300)] 
lib: Added support for connecting UDP sockets.

11 years agolib-http: Fixed detecting disconnection when ioloop is running only intermittently.
Stephan Bosch [Sat, 4 Oct 2014 14:32:48 +0000 (17:32 +0300)] 
lib-http: Fixed detecting disconnection when ioloop is running only intermittently.
This fix only applies to ioloops created and run by lib-http itself.

11 years agolib-http: client: Added support for absolute request timeout.
Stephan Bosch [Sat, 4 Oct 2014 14:32:48 +0000 (17:32 +0300)] 
lib-http: client: Added support for absolute request timeout.
Requests cannot survive beyond this deadline.