]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
11 years agolib-sasl: Added reference counting to lib-sasl initialization.
Stephan Bosch [Tue, 30 Sep 2014 20:49:35 +0000 (23:49 +0300)] 
lib-sasl: Added reference counting to lib-sasl initialization.

11 years agolib: Improved istream-file's failing read()/pread() error message.
Timo Sirainen [Mon, 29 Sep 2014 19:44:03 +0000 (22:44 +0300)] 
lib: Improved istream-file's failing read()/pread() error message.

11 years agolib: If i_stream_default_seek_nonseekable() can't seek, set a more readable error...
Timo Sirainen [Mon, 29 Sep 2014 19:43:44 +0000 (22:43 +0300)] 
lib: If i_stream_default_seek_nonseekable() can't seek, set a more readable error message.

11 years agolib-lda: smtp_client_deinit() may have returned NULL error strings.
Timo Sirainen [Mon, 29 Sep 2014 12:56:02 +0000 (15:56 +0300)] 
lib-lda: smtp_client_deinit() may have returned NULL error strings.

11 years agolib-http: Fixed assert-crash when http_client_connection_disconnect() is called multi...
Timo Sirainen [Mon, 29 Sep 2014 11:57:42 +0000 (14:57 +0300)] 
lib-http: Fixed assert-crash when http_client_connection_disconnect() is called multiple times.

11 years agodsync: Added DSYNC_BRAIN_FLAG_NO_MAIL_PREFETCH to avoid opening mails unnecessarily.
Timo Sirainen [Mon, 29 Sep 2014 11:16:06 +0000 (14:16 +0300)] 
dsync: Added DSYNC_BRAIN_FLAG_NO_MAIL_PREFETCH to avoid opening mails unnecessarily.

11 years agolib-storage: Don't assume that we must read the whole message to get its virtual...
Timo Sirainen [Thu, 25 Sep 2014 21:32:03 +0000 (00:32 +0300)] 
lib-storage: Don't assume that we must read the whole message to get its virtual size.
This is true only with mbox format. All the other formats have various
metadata available where it's stored.

11 years agoimap: die-callback didn't set log prefixes correctly for client handlers
Timo Sirainen [Thu, 25 Sep 2014 16:43:28 +0000 (19:43 +0300)] 
imap: die-callback didn't set log prefixes correctly for client handlers
Calling mail_storage_service_io_activate_user() unfortunately doesn't set
the ioloop context itself, so timeouts weren't inheriting it. It seemed a
bit difficult to change this, so for now I just moved the call to the
timeout handler.

11 years agolib: If file_wait_lock*() fails, try to include the current pid holding the lock...
Timo Sirainen [Thu, 25 Sep 2014 12:50:03 +0000 (15:50 +0300)] 
lib: If file_wait_lock*() fails, try to include the current pid holding the lock in error message.
This is currently supported via fcntl(F_GETLK) and also via Linux
/proc/locks.

11 years agoimap, pop3: Show user's proper log prefix when deinitializing users at exit.
Timo Sirainen [Thu, 25 Sep 2014 12:37:48 +0000 (15:37 +0300)] 
imap, pop3: Show user's proper log prefix when deinitializing users at exit.

11 years agolib-storage: Allow calling storage service's ioloop activate/deactivate functions...
Timo Sirainen [Thu, 25 Sep 2014 12:37:01 +0000 (15:37 +0300)] 
lib-storage: Allow calling storage service's ioloop activate/deactivate functions manually.

11 years agolib: Code cleanup - check io_loop_context_add/remove_callbacks() callback parameters.
Timo Sirainen [Thu, 25 Sep 2014 12:15:20 +0000 (15:15 +0300)] 
lib: Code cleanup - check io_loop_context_add/remove_callbacks() callback parameters.

11 years agoMark more memory pools as growing
Timo Sirainen [Thu, 25 Sep 2014 10:40:54 +0000 (13:40 +0300)] 
Mark more memory pools as growing

11 years agoauth: Mark memory pools as growing and use the same sizes for all mechanisms.
Timo Sirainen [Thu, 25 Sep 2014 10:38:09 +0000 (13:38 +0300)] 
auth: Mark memory pools as growing and use the same sizes for all mechanisms.
Mainly to have DEBUG log fewer warnings.

11 years agoAvoid logging warnings about increasing memory pool/data stack with DEBUG on.
Timo Sirainen [Thu, 25 Sep 2014 10:28:39 +0000 (13:28 +0300)] 
Avoid logging warnings about increasing memory pool/data stack with DEBUG on.
These could have a minor effect on memory usage, but shouldn't be much.

11 years agolib: Added file_wait_lock_error() and file_try_lock_error()
Timo Sirainen [Thu, 25 Sep 2014 10:26:20 +0000 (13:26 +0300)] 
lib: Added file_wait_lock_error() and file_try_lock_error()

11 years agofs-posix: fs_read_stream() now returns an istream that can live even after the fs_fil...
Timo Sirainen [Wed, 24 Sep 2014 23:55:34 +0000 (02:55 +0300)] 
fs-posix: fs_read_stream() now returns an istream that can live even after the fs_file is closed.

11 years agolib-storage: Added mailbox_get_index_path() and caching of the index path.
Timo Sirainen [Wed, 24 Sep 2014 22:13:12 +0000 (01:13 +0300)] 
lib-storage: Added mailbox_get_index_path() and caching of the index path.
This solves some potential assert-crashes on race conditions when opening a
mailbox while it's being deleted.

11 years agolib-storage: Headers were sometimes added to dovecot.index.cache with wrong line...
Timo Sirainen [Wed, 24 Sep 2014 21:42:56 +0000 (00:42 +0300)] 
lib-storage: Headers were sometimes added to dovecot.index.cache with wrong line number value.
This happened if the header parsing was done multiple times for the same
mail. The end result being that when fetching multiple headers as a stream,
the headers could have been returned in the wrong order. This messed up at
least dsync's header hash comparisons.

11 years agoimapc: Fixed potential crash when trying to send NOOP before mailbox was fully opened.
Timo Sirainen [Wed, 24 Sep 2014 21:41:15 +0000 (00:41 +0300)] 
imapc: Fixed potential crash when trying to send NOOP before mailbox was fully opened.

11 years agoimapc: If connection isn't in selected state when deleting mailbox, don't try to...
Timo Sirainen [Wed, 24 Sep 2014 21:40:48 +0000 (00:40 +0300)] 
imapc: If connection isn't in selected state when deleting mailbox, don't try to UNSELECT it.

11 years agoman: Added doveadm-fts.1.
Pascal Volk [Wed, 24 Sep 2014 20:01:46 +0000 (20:01 +0000)] 
man: Added doveadm-fts.1.

11 years agoman: Added doveadm-acl.1.
Pascal Volk [Wed, 24 Sep 2014 19:50:37 +0000 (19:50 +0000)] 
man: Added doveadm-acl.1.

11 years agoimap: Don't send MODSEQ in untagged FETCH reply if IMAP client didn't enable CONDSTOR...
Timo Sirainen [Tue, 23 Sep 2014 13:58:59 +0000 (16:58 +0300)] 
imap: Don't send MODSEQ in untagged FETCH reply if IMAP client didn't enable CONDSTORE/QRESYNC.
We should have been checking client->enabled_features, not
mailbox_get_enabled_features(). The former contains the features enabled by
the IMAP client, while the latter contains also some automatically added
features.

11 years agolib-master: Increased instances file's dotlock timeout to 2 seconds.
Timo Sirainen [Mon, 22 Sep 2014 13:08:25 +0000 (16:08 +0300)] 
lib-master: Increased instances file's dotlock timeout to 2 seconds.
The 1 second would have been enough, except the current dotlocking code
uses second-level precision in checking timeouts, so it could end up trying
the lock only once.

A better fix would be to fix the dotlocking code to use millisecond-level
precision (internally), but since this is the only user so far where it
would have mattered, it's not really worth the effort (yet).

11 years agolib: bsearch - make BINARY_NUMBER_SEARCH more widely usable
Phil Carmody [Mon, 22 Sep 2014 12:56:31 +0000 (15:56 +0300)] 
lib: bsearch - make BINARY_NUMBER_SEARCH more widely usable
This template is more widely usable if we do not hard-code into it the
method of accessing the value being compared. For the default case
we already use, this accessor is just a simple array dereferencing
macro.

As rewriting with the array access happens in the preprocessor, the
code generated is completely unchanged.

Expected future use:

:  #define MY_GETTER(array, index) ((array)[(index)].index_field)
:  #define MY_BINARY_SEARCH(data, count, value, idx_r)                  \
:          BINARY_NUMERIC_SEARCH(MY_GETTER, data, count, value, idx_r);

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib-dict: dict-fs implements now minimal iteration support.
Timo Sirainen [Thu, 18 Sep 2014 15:46:18 +0000 (17:46 +0200)] 
lib-dict: dict-fs implements now minimal iteration support.

11 years agodoveadm dict iter: Use recursion flag only if -R parameter is specified.
Timo Sirainen [Thu, 18 Sep 2014 15:39:49 +0000 (17:39 +0200)] 
doveadm dict iter: Use recursion flag only if -R parameter is specified.

11 years agofs-posix: When deleting a directory, automatically fallback to rmdir()ing it
Timo Sirainen [Thu, 18 Sep 2014 00:19:32 +0000 (02:19 +0200)] 
fs-posix: When deleting a directory, automatically fallback to rmdir()ing it

11 years agovirtual: Using modseq-based syncing while mailbox was open didn't handle expunges...
Timo Sirainen [Tue, 16 Sep 2014 20:22:59 +0000 (23:22 +0300)] 
virtual: Using modseq-based syncing while mailbox was open didn't handle expunges correctly.
The expunges were handled only after EXPUNGE command was given, which should
have been done only for mails that no longer matched the search query but
still existed.

11 years agoquota: Quota recalculation didn't include INBOX in some configurations.
Timo Sirainen [Tue, 16 Sep 2014 17:59:48 +0000 (20:59 +0300)] 
quota: Quota recalculation didn't include INBOX in some configurations.
If one inbox=yes and another inbox=no namespace shared the same mail
location, and the inbox=no namespace was first, only it was used to list all
mailboxes.

11 years agolib: test-var-expand - disambiguate tests
Phil Carmody [Tue, 16 Sep 2014 17:29:04 +0000 (20:29 +0300)] 
lib: test-var-expand - disambiguate tests
Two test cases had the same name.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: hash-format - fix leak on _init() failure path
Phil Carmody [Tue, 16 Sep 2014 17:29:04 +0000 (20:29 +0300)] 
lib: hash-format - fix leak on _init() failure path
If any of the analysis/parse helpers return failure, then the whole pool
will leak.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib-storage: SEARCH_MAILBOX* value is now also compared to to the (virtual) mailbox...
Timo Sirainen [Tue, 16 Sep 2014 12:43:42 +0000 (15:43 +0300)] 
lib-storage: SEARCH_MAILBOX* value is now also compared to to the (virtual) mailbox name.
This fixes for example "doveadm fetch uid mailbox virtual/all"

11 years agodoveadm fts rescan: For virtual namespaces just mark the last indexed UID to 0.
Timo Sirainen [Tue, 16 Sep 2014 12:23:51 +0000 (15:23 +0300)] 
doveadm fts rescan: For virtual namespaces just mark the last indexed UID to 0.

11 years agofts: dovecot-expunges.log wasn't closed at deinit
Timo Sirainen [Tue, 16 Sep 2014 11:32:20 +0000 (14:32 +0300)] 
fts: dovecot-expunges.log wasn't closed at deinit

11 years agolib: test-strnum - fix format size mismatch
Phil Carmody [Tue, 16 Sep 2014 11:03:52 +0000 (14:03 +0300)] 
lib: test-strnum - fix format size mismatch
Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-strnum - add size-oblivious str_to/parse_uintmax tests
Phil Carmody [Tue, 16 Sep 2014 10:38:30 +0000 (13:38 +0300)] 
lib: test-strnum - add size-oblivious str_to/parse_uintmax tests
Test a value of every bit-length. Also test the 10/9*MAX corner case.
And due to crappy helper functions, test lots of leading zeroes too!

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: remove uintmax tests from uint64 tests
Phil Carmody [Tue, 16 Sep 2014 10:38:30 +0000 (13:38 +0300)] 
lib: remove uintmax tests from uint64 tests
These log a warning on OSX with clang.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: strnum - ensure str_to_uintmax doesn't return a value on error
Phil Carmody [Tue, 16 Sep 2014 10:38:30 +0000 (13:38 +0300)] 
lib: strnum - ensure str_to_uintmax doesn't return a value on error
It was clobbering the _r parameter even though the spec says it shouldn't.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agodsync: Moved doveadm-specific code to doveadm directory.
Timo Sirainen [Tue, 16 Sep 2014 09:32:09 +0000 (12:32 +0300)] 
dsync: Moved doveadm-specific code to doveadm directory.

11 years agofs-metawrap: Fixed iteration wrapping, broken by earlier changes.
Timo Sirainen [Tue, 16 Sep 2014 09:04:07 +0000 (12:04 +0300)] 
fs-metawrap: Fixed iteration wrapping, broken by earlier changes.

11 years agoMakefile: Fixed linking libdovecot-dsync
Timo Sirainen [Mon, 15 Sep 2014 22:12:21 +0000 (01:12 +0300)] 
Makefile: Fixed linking libdovecot-dsync

11 years agoCompiler warning fix
Timo Sirainen [Mon, 15 Sep 2014 22:09:53 +0000 (01:09 +0300)] 
Compiler warning fix

11 years agolib-fs: fs-metawrap now fully wraps fs_iter_* to fix tracking struct fs.iters
Timo Sirainen [Mon, 15 Sep 2014 21:43:36 +0000 (00:43 +0300)] 
lib-fs: fs-metawrap now fully wraps fs_iter_* to fix tracking struct fs.iters

11 years agolib-storage: Added mail_namespaces_init_add/finish() to manually initializing namespaces.
Timo Sirainen [Mon, 15 Sep 2014 21:21:52 +0000 (00:21 +0300)] 
lib-storage: Added mail_namespaces_init_add/finish() to manually initializing namespaces.

11 years agolib-storage: Added mail_user_dup()
Timo Sirainen [Mon, 15 Sep 2014 21:21:13 +0000 (00:21 +0300)] 
lib-storage: Added mail_user_dup()

11 years agolib-fs: Keep track of all fs_iters in fs.
Timo Sirainen [Mon, 15 Sep 2014 21:01:33 +0000 (00:01 +0300)] 
lib-fs: Keep track of all fs_iters in fs.

11 years agolib-fs: Added wait_ioloop/prev_ioloop helpers to struct fs.
Timo Sirainen [Mon, 15 Sep 2014 20:57:45 +0000 (23:57 +0300)] 
lib-fs: Added wait_ioloop/prev_ioloop helpers to struct fs.

11 years agoInstall libdovecot-dsync.so library, which can be used separately.
Timo Sirainen [Mon, 15 Sep 2014 15:04:20 +0000 (18:04 +0300)] 
Install libdovecot-dsync.so library, which can be used separately.

11 years agodsync: Moved all doveadm-specific code to doveadm-dsync.c
Timo Sirainen [Mon, 15 Sep 2014 15:02:02 +0000 (18:02 +0300)] 
dsync: Moved all doveadm-specific code to doveadm-dsync.c

11 years agolib-http: server: Fixed connection reference counting.
Stephan Bosch [Mon, 15 Sep 2014 08:19:50 +0000 (11:19 +0300)] 
lib-http: server: Fixed connection reference counting.
Connection often still got destroyed too early. Particularly submitting
responses would potentially destroy the connection, which is often
unexpected. Sending responses is now postponed until handled by the stream
output handler, which is explicitly triggered when necessary.

11 years agofs-posix: Fixed fs_iter_deinit() when opendir() had failed.
Timo Sirainen [Sun, 14 Sep 2014 08:29:35 +0000 (11:29 +0300)] 
fs-posix: Fixed fs_iter_deinit() when opendir() had failed.

11 years agolib-http server: Keep output stream referenced to avoid accessing it after destroy.
Timo Sirainen [Sat, 13 Sep 2014 20:42:17 +0000 (23:42 +0300)] 
lib-http server: Keep output stream referenced to avoid accessing it after destroy.

11 years agofs-metawrap: Add FS_PROPERTY_COPY_METADATA property for wrapped fs backends.
Timo Sirainen [Sat, 13 Sep 2014 19:15:35 +0000 (22:15 +0300)] 
fs-metawrap: Add FS_PROPERTY_COPY_METADATA property for wrapped fs backends.
This is because if we simply use the parent copy the metadata gets copied
as well.

11 years agofs-posix: Fixed memory leak in fs_iter_deinit()
Timo Sirainen [Sat, 13 Sep 2014 19:14:09 +0000 (22:14 +0300)] 
fs-posix: Fixed memory leak in fs_iter_deinit()

11 years agolib-master: Earlier config file path fix broke reusing existing config socket lookups.
Timo Sirainen [Fri, 12 Sep 2014 09:55:12 +0000 (12:55 +0300)] 
lib-master: Earlier config file path fix broke reusing existing config socket lookups.

11 years agovirtual: Recent optimizations had broken fast mailbox syncing.
Timo Sirainen [Thu, 11 Sep 2014 15:15:04 +0000 (18:15 +0300)] 
virtual: Recent optimizations had broken fast mailbox syncing.
We wrongly assumed that all_mails array could have been accessed using vseqs.
Broken by 8abf7eea2966

11 years agolib-mail: Message decoder now runs normalizer also for unknown charsets.
Timo Sirainen [Thu, 11 Sep 2014 13:40:00 +0000 (16:40 +0300)] 
lib-mail: Message decoder now runs normalizer also for unknown charsets.

11 years agofts-lucene: No .. the rebuilding warning was still in the wrong place.
Timo Sirainen [Thu, 11 Sep 2014 13:14:24 +0000 (16:14 +0300)] 
fts-lucene: No .. the rebuilding warning was still in the wrong place.

11 years agofts-lucene: Include the mailbox name also in the rebuilding warning.
Timo Sirainen [Thu, 11 Sep 2014 13:12:38 +0000 (16:12 +0300)] 
fts-lucene: Include the mailbox name also in the rebuilding warning.

11 years agofts-lucene: Log a warning when rebuilding index because of settings changes
Timo Sirainen [Thu, 11 Sep 2014 13:11:37 +0000 (16:11 +0300)] 
fts-lucene: Log a warning when rebuilding index because of settings changes

11 years agoman: Forgot to remove XXX prefixes from doveadm-director.1.in
Timo Sirainen [Wed, 10 Sep 2014 15:41:39 +0000 (18:41 +0300)] 
man: Forgot to remove XXX prefixes from doveadm-director.1.in

11 years agoreplication plugin: Actually, use empty mail_replica as "replication is disabled".
Timo Sirainen [Wed, 10 Sep 2014 13:05:32 +0000 (16:05 +0300)] 
replication plugin: Actually, use empty mail_replica as "replication is disabled".

11 years agoreplication plugin: Added replication_disabled setting.
Timo Sirainen [Wed, 10 Sep 2014 12:54:58 +0000 (15:54 +0300)] 
replication plugin: Added replication_disabled setting.

11 years agoman: doveadm-director man page updated
Pascal Volk [Wed, 10 Sep 2014 11:48:58 +0000 (14:48 +0300)] 
man: doveadm-director man page updated

11 years agoman: doveadm-auth man page updated
Pascal Volk [Wed, 10 Sep 2014 11:42:34 +0000 (14:42 +0300)] 
man: doveadm-auth man page updated

11 years agoman: doveadm-dump man page updated
Pascal Volk [Wed, 10 Sep 2014 11:37:50 +0000 (14:37 +0300)] 
man: doveadm-dump man page updated

11 years agolib-test: don't use 0 for old size in realloc call
Phil Carmody [Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)] 
lib-test: don't use 0 for old size in realloc call
We have the real size, use it.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib-index: test suite memory leak cleanup
Phil Carmody [Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)] 
lib-index: test suite memory leak cleanup
So that memory leak checkers can be active while running the test
suites, ensure that the suite itself doesn't leak.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-seq-range-array - clean up array after use
Phil Carmody [Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)] 
lib: test-seq-range-array - clean up array after use
Removes noise when memory-leak debugging during unit tests.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-aqueue - clean up the test queue each time round the loop
Phil Carmody [Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)] 
lib: test-aqueue - clean up the test queue each time round the loop
Helps keep noise out of memory leak debugging during unit tests.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agolib: test-istream-concat - clean up our test-istreams
Phil Carmody [Wed, 10 Sep 2014 11:08:58 +0000 (14:08 +0300)] 
lib: test-istream-concat - clean up our test-istreams
This reduces noise when memory leak debugging the unit tests.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
11 years agodsync: Reset I/O timeout every time when receiving input.
Timo Sirainen [Wed, 10 Sep 2014 10:59:31 +0000 (13:59 +0300)] 
dsync: Reset I/O timeout every time when receiving input.
This could have caused unwanted I/O timeouts when receiving large mails.

11 years agopop3: Optimize POP3 UIDL processing when duplicate renaming is not active.
Michael M Slusarz [Tue, 9 Sep 2014 23:26:52 +0000 (17:26 -0600)] 
pop3: Optimize POP3 UIDL processing when duplicate renaming is not active.

11 years agolib-http: client: Implemented support for connection failure backoff.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: client: Implemented support for connection failure backoff.

11 years agolib-http: client: Added support for attempting a single IP several times.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: client: Added support for attempting a single IP several times.
Also limits the number of attempts when there are many IPs.

11 years agolib-http: client: Tunnel connection failure would cause segfault.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: client: Tunnel connection failure would cause segfault.
That happened because it tried to retry waiting requests, which makes no sense for a CONNECT tunnel.

11 years agolib-http: server: Added support for authentication.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: server: Added support for authentication.

11 years agolib-http: Implemented HTTP auth (RFC 7235).
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: Implemented HTTP auth (RFC 7235).

11 years agolib-http: server: Added assert to connect callback which makes sure request is either...
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: server: Added assert to connect callback which makes sure request is either responded to or referenced.
Earlier change added this only to callback for normal requests, but CONNECT should be handled the same in this respect.

11 years agolib-http: server: Fixed delayed request destruction.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: server: Fixed delayed request destruction.
Destruction was actually delayed indefinitely, because the delay flag was not reset.
Obviously, this caused a memory leak.

11 years agolib-http: server: Made sure destroy callback is called only once.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: server: Made sure destroy callback is called only once.

11 years agolib-http: server: Fixed segfault occurring in connection input handler.
Stephan Bosch [Wed, 10 Sep 2014 10:39:37 +0000 (13:39 +0300)] 
lib-http: server: Fixed segfault occurring in connection input handler.
Request handlers could close and destroy the connection early.
Fixed by holding a reference in the input handler.

11 years agolib-http: server: Fixed handling of disconnection while request is being handled.
Stephan Bosch [Wed, 10 Sep 2014 10:39:36 +0000 (13:39 +0300)] 
lib-http: server: Fixed handling of disconnection while request is being handled.
This would cause an assert failure.

11 years agolib-master: Fixed -c & -i command line parameters when config socket was readable.
Timo Sirainen [Tue, 9 Sep 2014 14:09:30 +0000 (17:09 +0300)] 
lib-master: Fixed -c & -i command line parameters when config socket was readable.
The config socket was always being read, even if another config file was
attempted to be used.

11 years agopop3c: Added missing support for pop3c_ssl=starttls
Timo Sirainen [Mon, 8 Sep 2014 15:11:31 +0000 (18:11 +0300)] 
pop3c: Added missing support for pop3c_ssl=starttls

11 years agoCOPYING.LGPL: Updated FSF mailing address.
Timo Sirainen [Mon, 8 Sep 2014 10:39:25 +0000 (13:39 +0300)] 
COPYING.LGPL: Updated FSF mailing address.
Also some whitespace and line wrapping changes. Used the same file as
http://www.gnu.org/licenses/lgpl-2.1.txt

11 years agopop3c: If base_dir isn't set, lookup pop3c_host with regular blocking DNS lookup.
Timo Sirainen [Mon, 8 Sep 2014 07:14:42 +0000 (10:14 +0300)] 
pop3c: If base_dir isn't set, lookup pop3c_host with regular blocking DNS lookup.

11 years agolib-storage: Compile fix to previous change
Timo Sirainen [Wed, 3 Sep 2014 14:29:25 +0000 (07:29 -0700)] 
lib-storage: Compile fix to previous change
The original patch was correct, my copy&pasting by hand just sucked. :)

11 years agolib-storage: Fixed off-by-one memory allocation in dynamic settings allocation code.
Timo Sirainen [Wed, 3 Sep 2014 13:29:52 +0000 (06:29 -0700)] 
lib-storage: Fixed off-by-one memory allocation in dynamic settings allocation code.
This didn't actually affect normal Dovecot builds, because there were always
some storages with get_setting_parser_info=NULL that added the necessary
padding.

Patch by Michael M Slusarz

11 years agofs layout: Absolute paths as mailbox names shouldn't return index with INDEX=MEMORY
Timo Sirainen [Fri, 29 Aug 2014 04:22:11 +0000 (13:22 +0900)] 
fs layout: Absolute paths as mailbox names shouldn't return index with INDEX=MEMORY

11 years agolib-index, lib-storage: Fixed race conditions with deleting mailbox.
Timo Sirainen [Thu, 28 Aug 2014 17:14:43 +0000 (02:14 +0900)] 
lib-index, lib-storage: Fixed race conditions with deleting mailbox.
Now only one process can successfully finish mailbox_mark_index_deleted().

11 years agolib-fs: Keep a linked list of all files within fs to help debugging.
Timo Sirainen [Thu, 28 Aug 2014 15:41:07 +0000 (00:41 +0900)] 
lib-fs: Keep a linked list of all files within fs to help debugging.

11 years agoAdded UNLINK_EISDIR() helper macro.
Timo Sirainen [Thu, 28 Aug 2014 14:52:46 +0000 (23:52 +0900)] 
Added UNLINK_EISDIR() helper macro.

11 years agomaildir: Handle unlink()=EPERM failure the same as EISDIR.
Timo Sirainen [Thu, 28 Aug 2014 14:50:25 +0000 (23:50 +0900)] 
maildir: Handle unlink()=EPERM failure the same as EISDIR.
EPERM is POSIX, while EISDIR is Linux-specific.

11 years agolib-fs: Fixed metawrap_fs.copy() to work with FS_PROPERTY_COPY_METADATA backends.
Timo Sirainen [Thu, 28 Aug 2014 13:44:18 +0000 (22:44 +0900)] 
lib-fs: Fixed metawrap_fs.copy() to work with FS_PROPERTY_COPY_METADATA backends.
This is done by simply copying the entire file with the metadata included
instead of rewriting it.

11 years agoReplaced dict_init() with dict_init_full() in various places.
Timo Sirainen [Thu, 28 Aug 2014 13:10:25 +0000 (22:10 +0900)] 
Replaced dict_init() with dict_init_full() in various places.

11 years agolib-dict: file backend now expands ~/ paths if home_dir setting is set.
Timo Sirainen [Thu, 28 Aug 2014 12:57:34 +0000 (21:57 +0900)] 
lib-dict: file backend now expands ~/ paths if home_dir setting is set.

11 years agolib-dict: Changed dict.init() API to take struct dict_settings and added dict_init_fu...
Timo Sirainen [Thu, 28 Aug 2014 12:56:41 +0000 (21:56 +0900)] 
lib-dict: Changed dict.init() API to take struct dict_settings and added dict_init_full().
This allows giving more settings to dict in future as needed. Unfortunately
it also breaks the internal dict API, but there aren't really any plugins
widely using it, so it's not a big problem.