]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
10 years agolib-http: client: Removed connection code that is already in src/lib/connection.c.
Stephan Bosch [Sat, 15 Nov 2014 00:37:03 +0000 (02:37 +0200)] 
lib-http: client: Removed connection code that is already in src/lib/connection.c.

10 years agolib: connection: Now uses io_add_istream() instead of io_add().
Stephan Bosch [Sat, 15 Nov 2014 00:36:22 +0000 (02:36 +0200)] 
lib: connection: Now uses io_add_istream() instead of io_add().

10 years agolib-imap-storage: Created new METADATA API.
Stephan Bosch [Sat, 15 Nov 2014 00:27:27 +0000 (02:27 +0200)] 
lib-imap-storage: Created new METADATA API.

10 years agolib-fs: Added fs_lookup_metadata() wrapper to fs_get_metadata()
Timo Sirainen [Sat, 15 Nov 2014 00:22:56 +0000 (02:22 +0200)] 
lib-fs: Added fs_lookup_metadata() wrapper to fs_get_metadata()

10 years agolib-master: Don't even attempt to initialize SSL context if ssl=no
Timo Sirainen [Fri, 14 Nov 2014 22:30:06 +0000 (00:30 +0200)] 
lib-master: Don't even attempt to initialize SSL context if ssl=no

10 years agolib-ssl-iostream: Close the plain iostreams when ssl-iostream is destroyed.
Timo Sirainen [Fri, 14 Nov 2014 22:27:27 +0000 (00:27 +0200)] 
lib-ssl-iostream: Close the plain iostreams when ssl-iostream is destroyed.

10 years agolib: array/hash - enable typof checks for more compilers
Phil Carmody [Fri, 14 Nov 2014 22:14:20 +0000 (00:14 +0200)] 
lib: array/hash - enable typof checks for more compilers
We have a HAVE_TYPEOF macro from autoconf, we may as well make use of it.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
10 years agolib: array/hash - protect macro parameters
Phil Carmody [Fri, 14 Nov 2014 22:06:09 +0000 (00:06 +0200)] 
lib: array/hash - protect macro parameters
If a pointer parameter p is ``ptr + offset'', then sizeof(*p) becomes
sizeof(*ptr + offset), which isn't what was wanted. sizeof(*(p)) is the
safe expression to use instead. Ditto for just ``*data'' in array.h.

The macros in hash.h which have been changed have been reindented for
better readability and consistency.

The bracketting of elem in (elem)++ in both of the array_foreach* macros
isn't actually useful, as elem participates in token-pasting elsewhere.
However, the two macros have been made more similar to each other for
better parallelism.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
10 years agoimap: namespace { order } parameter now specifies the order returned in NAMESPACE...
Timo Sirainen [Fri, 14 Nov 2014 08:59:57 +0000 (00:59 -0800)] 
imap: namespace { order } parameter now specifies the order returned in NAMESPACE reply.
This is relevant only if there are multiple visible namespaces with the same
type. The default order depends primarily on the length of the prefix because
of internal sorting (the order of equal length prefixes can't really be
relied on).

10 years agoimap: Added client_disconnect_if_inconsistent() to remove code duplication.
Timo Sirainen [Fri, 14 Nov 2014 00:29:27 +0000 (02:29 +0200)] 
imap: Added client_disconnect_if_inconsistent() to remove code duplication.
Based on patch by Stephan Bosch

10 years agodoveadm: If passdb lookup returns port, use it to override the doveadm_port setting.
Timo Sirainen [Fri, 14 Nov 2014 06:55:59 +0000 (22:55 -0800)] 
doveadm: If passdb lookup returns port, use it to override the doveadm_port setting.

10 years agolib-fs: fs-metawrap now supports adding more metadata fields while file is being...
Timo Sirainen [Fri, 14 Nov 2014 00:00:12 +0000 (02:00 +0200)] 
lib-fs: fs-metawrap now supports adding more metadata fields while file is being saved.
This potentially adds yet another temporary file write though.

10 years agolib: Added iostream_temp_create_named()
Timo Sirainen [Thu, 13 Nov 2014 23:19:37 +0000 (01:19 +0200)] 
lib: Added iostream_temp_create_named()

10 years agolib-index: Make sure dovecot.index.cache parsing doesn't go to infinite loop.
Timo Sirainen [Thu, 13 Nov 2014 09:29:41 +0000 (11:29 +0200)] 
lib-index: Make sure dovecot.index.cache parsing doesn't go to infinite loop.
Although we guarantee this only for files generated with Dovecot v2.2+
because it's too much trouble to check for older versions.

10 years agolib-storage: If storage creation fails, destroy all the already created namespaces...
Timo Sirainen [Thu, 13 Nov 2014 09:14:08 +0000 (11:14 +0200)] 
lib-storage: If storage creation fails, destroy all the already created namespaces/storages.

10 years agolib-storage: Fixed crash if mail_namespaces_init_add() failed due to invalid settings.
Timo Sirainen [Thu, 13 Nov 2014 08:57:07 +0000 (10:57 +0200)] 
lib-storage: Fixed crash if mail_namespaces_init_add() failed due to invalid settings.
Normally the invalid settings were caught by config process already.

10 years agolib: ostream.stream_errno is now exactly the same as last_failed_errno.
Timo Sirainen [Thu, 13 Nov 2014 08:09:28 +0000 (10:09 +0200)] 
lib: ostream.stream_errno is now exactly the same as last_failed_errno.
There's a lot of code that checks only for stream_errno instead of
last_failed_errno at the flush time where the stream_errno might have
already been cleared.

I'm not sure why these were separated in the first place. I don't think
there are any stream errors which just correctly go away by retrying the
operation. Perhaps some code could have attempted seeking and try to handle
the ESPIPE error, but that kind of code paths are rare and they could clear
the errors themselves if needed.

10 years agolib: ostream-file checks "sendfile() not supported" a bit better.
Timo Sirainen [Thu, 13 Nov 2014 08:01:37 +0000 (10:01 +0200)] 
lib: ostream-file checks "sendfile() not supported" a bit better.
There are other reasons why stream_errno=EINVAL could have been set, at
least in theory.

10 years agolib-storage: Added "creator" for mail_user.
Timo Sirainen [Thu, 13 Nov 2014 07:53:35 +0000 (09:53 +0200)] 
lib-storage: Added "creator" for mail_user.
This allows fixing stats plugin to update stats also for shared mailboxes.
That's a bit complicated change though, so I'm not sure how soon it'll
happen. But at least this change makes it possible more easily later on.
Might have other uses too.

10 years agolib: Never implicitly clear istream's stream_errno.
Timo Sirainen [Thu, 13 Nov 2014 07:39:24 +0000 (09:39 +0200)] 
lib: Never implicitly clear istream's stream_errno.
I'm not really sure why these were added in the first place. At some point
the stream_errno was cleared in more places, such as just before reading,
but those were also removed already. I don't see any benefit for these, just
potential problems.

10 years agolib-mail: message_search_msg() shouldn't clear istream's stream_errno.
Timo Sirainen [Thu, 13 Nov 2014 07:35:59 +0000 (09:35 +0200)] 
lib-mail: message_search_msg() shouldn't clear istream's stream_errno.
If the input stream failed, retrying the operation without cached
message_parts is unlikely to help. This also loses the original error
message.

10 years agodsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
Timo Sirainen [Thu, 13 Nov 2014 07:12:38 +0000 (09:12 +0200)] 
dsync: Set MAILBOX_TRANSACTION_FLAG_SYNC also for exporter.
This doesn't really do much because exporter shouldn't be writing anything,
but it allows plugins to find out if transactions is coming from dsync.

10 years agolmtp: Added support for DSN ORCPT parameter.
Timo Sirainen [Thu, 13 Nov 2014 01:58:51 +0000 (03:58 +0200)] 
lmtp: Added support for DSN ORCPT parameter.
If the parameter is specified, it's used as the original recipient address
in Sieve. The ORCPT parameter is also proxied to destination LMTP server if
used (without checking if it supports it). We don't currently advertise DSN
extension, so this feature won't be enabled automatically.

10 years agoimap-stats: Fixed truncation of command args.
Timo Sirainen [Thu, 13 Nov 2014 00:48:22 +0000 (02:48 +0200)] 
imap-stats: Fixed truncation of command args.

10 years agostats: Use the same session ID string for stats tracking as everywhere else.
Timo Sirainen [Thu, 13 Nov 2014 00:39:51 +0000 (02:39 +0200)] 
stats: Use the same session ID string for stats tracking as everywhere else.
Generate a new ID only if there is no session ID assigned.

10 years agossl-params: Removed duplicate lib-ssl-iostream.la linking
Timo Sirainen [Thu, 13 Nov 2014 00:37:39 +0000 (02:37 +0200)] 
ssl-params: Removed duplicate lib-ssl-iostream.la linking

10 years agostats: Use the new str-table API to reduce memory usage for service strings.
Timo Sirainen [Thu, 13 Nov 2014 00:28:46 +0000 (02:28 +0200)] 
stats: Use the new str-table API to reduce memory usage for service strings.
There are only a couple of services, while there can be a lot of sessions.

10 years agolib: Added str-table API for keeping reference counted strings in a hash table.
Timo Sirainen [Thu, 13 Nov 2014 00:24:46 +0000 (02:24 +0200)] 
lib: Added str-table API for keeping reference counted strings in a hash table.

10 years agostats: Added support for "global" stats type.
Timo Sirainen [Wed, 12 Nov 2014 23:41:07 +0000 (01:41 +0200)] 
stats: Added support for "global" stats type.

10 years agodirector: Added support for backend cluster "tags".
Timo Sirainen [Wed, 12 Nov 2014 04:58:37 +0000 (06:58 +0200)] 
director: Added support for backend cluster "tags".
This allows using a single director ring for multiple backend clusters. By
default everything has an empty tag. A passdb lookup can return
"director_tag" field containing the wanted tag name. If there aren't any
backend servers with the wanted tag, it's treated the same as if there
aren't any backend servers available (= wait for 30 secs for a backend and
then return temporary failure).

Tags can be added to configuration by adding @tag suffix to IPs/hosts. For
example:

director_mail_servers = 10.0.0.100-10.0.0.110@name1 10.0.0.120@name2

"doveadm director add" can also add tags either with @tag suffix or with -t
parameter. "doveadm director status user@domain" requires giving the user's
correct tag with -t parameter or the results won't be correct (empty tag's
results are shown). Tags can't currently be changed for an existing host
without removing it first.

10 years agodirector: Don't restart request timeout when director state changes.
Timo Sirainen [Wed, 12 Nov 2014 04:46:45 +0000 (06:46 +0200)] 
director: Don't restart request timeout when director state changes.
If the state keeps changing all the time we'll never return timeouts for the
requests.

10 years agodirector: Added director_consistent_hashing setting.
Timo Sirainen [Wed, 12 Nov 2014 01:29:04 +0000 (03:29 +0200)] 
director: Added director_consistent_hashing setting.
This should have been the default since the beginning. I didn't thik it was
worth the trouble originally because in theory it shouldn't matter much if
users jump between multiple backends. But this makes caching behavior worse,
especially for systems which are using local cache files.

10 years agodirector: When logging a warning about ring being synced again, log how many seconds...
Timo Sirainen [Wed, 12 Nov 2014 00:04:14 +0000 (02:04 +0200)] 
director: When logging a warning about ring being synced again, log how many seconds it took

10 years agodirector: Always log a message when director handshake finishes.
Timo Sirainen [Tue, 11 Nov 2014 23:59:48 +0000 (01:59 +0200)] 
director: Always log a message when director handshake finishes.

10 years agodoveadm director ring status shows now more information
Timo Sirainen [Tue, 11 Nov 2014 23:51:29 +0000 (01:51 +0200)] 
doveadm director ring status shows now more information

10 years agolmtp: Show more information in process title.
Timo Sirainen [Tue, 11 Nov 2014 23:26:04 +0000 (01:26 +0200)] 
lmtp: Show more information in process title.
Most importantly show the username while messages are being delivered.

10 years agodoveadm: Support running non-mail commands via doveadm server.
Timo Sirainen [Tue, 11 Nov 2014 23:06:02 +0000 (01:06 +0200)] 
doveadm: Support running non-mail commands via doveadm server.
There are still some commands that print their output via printf though, so
they need to be fixed separately.

10 years agodoveadm: Moved commands related code to doveadm-cmd.[ch]
Timo Sirainen [Tue, 11 Nov 2014 23:04:27 +0000 (01:04 +0200)] 
doveadm: Moved commands related code to doveadm-cmd.[ch]
Commands are already split for command line-only commands and commands that
can be run via doveadm-server also.

10 years agodoveadm who: If parameters are invalid, print help text for who command instead of...
Timo Sirainen [Tue, 11 Nov 2014 22:52:44 +0000 (00:52 +0200)] 
doveadm who: If parameters are invalid, print help text for who command instead of the whole doveadm usage.

10 years agodoveadm: Code cleanups to prepare server code for non-mail commands.
Timo Sirainen [Tue, 11 Nov 2014 22:20:40 +0000 (00:20 +0200)] 
doveadm: Code cleanups to prepare server code for non-mail commands.

10 years agolib: Compiler warning fix in 32bit systems to previous change
Timo Sirainen [Tue, 11 Nov 2014 03:06:09 +0000 (05:06 +0200)] 
lib: Compiler warning fix in 32bit systems to previous change

10 years agolib: file_wait/try_lock() treats EINTR differently now for timeouts and for actual...
Timo Sirainen [Tue, 11 Nov 2014 01:13:16 +0000 (03:13 +0200)] 
lib: file_wait/try_lock() treats EINTR differently now for timeouts and for actual signals.

10 years agolib-storage: Mailbox list index now detects duplicate mailbox names.
Timo Sirainen [Fri, 31 Oct 2014 02:27:27 +0000 (04:27 +0200)] 
lib-storage: Mailbox list index now detects duplicate mailbox names.
With LAYOUT=index the duplicates are renamed.

10 years agodoveadm: Removed duplicate subcommands from list of commands.
Timo Sirainen [Wed, 5 Nov 2014 11:00:14 +0000 (13:00 +0200)] 
doveadm: Removed duplicate subcommands from list of commands.
For example don't show "mailbox ..|metadata|metadata|metadata|.."

10 years agoimap: If GETMETADATA with wildcards can't open some mailbox, don't assert-crash.
Timo Sirainen [Tue, 4 Nov 2014 12:49:44 +0000 (14:49 +0200)] 
imap: If GETMETADATA with wildcards can't open some mailbox, don't assert-crash.
Just send an untagged NO for the mailbox.

10 years agossl-params: Use lib-ssl-iostream's ssl_iostream_generate_params() instead of OpenSSL...
Timo Sirainen [Sat, 1 Nov 2014 00:05:31 +0000 (17:05 -0700)] 
ssl-params: Use lib-ssl-iostream's ssl_iostream_generate_params() instead of OpenSSL directly

10 years agolib-ssl-iostream: Added dh_length parameter to ssl_iostream_generate_params()
Timo Sirainen [Sat, 1 Nov 2014 00:04:58 +0000 (17:04 -0700)] 
lib-ssl-iostream: Added dh_length parameter to ssl_iostream_generate_params()
This is an API change, but nobody was actually using this function.

10 years agolib-ssl-iostream: Support non-1024bit DH parameters in ssl-parameters.dat.
Timo Sirainen [Fri, 31 Oct 2014 23:54:07 +0000 (16:54 -0700)] 
lib-ssl-iostream: Support non-1024bit DH parameters in ssl-parameters.dat.

10 years agolib-ssl-iostream: Destroy SSL module later in the atexit-callbacks.
Timo Sirainen [Thu, 30 Oct 2014 20:02:52 +0000 (22:02 +0200)] 
lib-ssl-iostream: Destroy SSL module later in the atexit-callbacks.

10 years agolib: Added lib_atexit_priority()
Timo Sirainen [Thu, 30 Oct 2014 20:00:14 +0000 (22:00 +0200)] 
lib: Added lib_atexit_priority()

10 years ago*-login: Also increase MASTER_AUTH_MAX_DATA_SIZE and add a check to make sure it...
Timo Sirainen [Thu, 30 Oct 2014 02:41:11 +0000 (04:41 +0200)] 
*-login: Also increase MASTER_AUTH_MAX_DATA_SIZE and add a check to make sure it's large enough.

10 years ago*-login: And actually make the previous changes work.
Timo Sirainen [Thu, 30 Oct 2014 02:36:50 +0000 (04:36 +0200)] 
*-login: And actually make the previous changes work.

10 years agoimap-login: Added "x-session-ext-id" parameter for ID command.
Timo Sirainen [Thu, 30 Oct 2014 01:33:46 +0000 (18:33 -0700)] 
imap-login: Added "x-session-ext-id" parameter for ID command.
It's exactly the same as "x-session-id", but this one can be safely used by
external software without having to worry about causing error messages in
older versions about too long session-id.

10 years agolib-master: Removed fixed length limit for session-id.
Timo Sirainen [Thu, 30 Oct 2014 01:32:36 +0000 (18:32 -0700)] 
lib-master: Removed fixed length limit for session-id.

10 years agolib: connection_switch_ioloop() should switch also input stream's ioloop.
Timo Sirainen [Wed, 29 Oct 2014 18:46:50 +0000 (11:46 -0700)] 
lib: connection_switch_ioloop() should switch also input stream's ioloop.

10 years agolmtp: Added support for STARTTLS command.
Timo Sirainen [Wed, 29 Oct 2014 16:58:01 +0000 (09:58 -0700)] 
lmtp: Added support for STARTTLS command.

10 years agolib-http: Make sure we don't access already freed client connection in payload-destro...
Timo Sirainen [Wed, 29 Oct 2014 00:15:31 +0000 (17:15 -0700)] 
lib-http: Make sure we don't access already freed client connection in payload-destroyed callback.

10 years agolib: io_remove() should finish closing the io before unreferencing its istream.
Timo Sirainen [Wed, 29 Oct 2014 00:07:21 +0000 (17:07 -0700)] 
lib: io_remove() should finish closing the io before unreferencing its istream.
This is because the istream unreferencing may close the fd.

10 years agolib-http: client: Fixed assertion failure in http_client_queue_fail().
Stephan Bosch [Tue, 28 Oct 2014 23:12:09 +0000 (16:12 -0700)] 
lib-http: client: Fixed assertion failure in http_client_queue_fail().
Don't explicitly clear the request array after looping through all
requests, since new requests may be added during the loop, not only
removed.

11 years agolib: istream-timeout logs how long the stream was open if parent read fails with...
Timo Sirainen [Tue, 28 Oct 2014 04:48:29 +0000 (21:48 -0700)] 
lib: istream-timeout logs how long the stream was open if parent read fails with ECONNRESET/EPIPE.

11 years agolib-http: If there's an error reading chunked http stream, set the error to the istream.
Timo Sirainen [Tue, 28 Oct 2014 04:43:10 +0000 (21:43 -0700)] 
lib-http: If there's an error reading chunked http stream, set the error to the istream.
Previously the error string was set, but it was never read by anything.

11 years agodsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.
Timo Sirainen [Tue, 28 Oct 2014 03:45:59 +0000 (05:45 +0200)] 
dsync: Fixed notifying replicator (-U parameter) if it didn't answer instantly.

11 years agolib: Make sure ostream.last_failed_errno is always set when stream_errno is set.
Timo Sirainen [Mon, 27 Oct 2014 21:29:39 +0000 (23:29 +0200)] 
lib: Make sure ostream.last_failed_errno is always set when stream_errno is set.

11 years agolib: o_stream_uncork() could also cause write errors. Make sure last_failed_errno...
Timo Sirainen [Mon, 27 Oct 2014 21:26:10 +0000 (23:26 +0200)] 
lib: o_stream_uncork() could also cause write errors. Make sure last_failed_errno is updated.
This caused some write errors not to be detected, such as in code like:

o_stream_cork()
o_stream_nsend(..)
o_stream_uncork()
if (o_stream_nfinish() < 0) {
  // error not detected because last_failed_errno was 0
}

11 years agolib-index: Remove assert that can never happen.
Teemu Huovila [Mon, 27 Oct 2014 20:05:27 +0000 (22:05 +0200)] 
lib-index: Remove assert that can never happen.

11 years agomaster: Don't send broken BYE notifications to log process.
Timo Sirainen [Mon, 27 Oct 2014 18:24:34 +0000 (20:24 +0200)] 
master: Don't send broken BYE notifications to log process.

11 years agolog: Don't crash if master sends a negative service_fd number.
Timo Sirainen [Mon, 27 Oct 2014 18:14:47 +0000 (20:14 +0200)] 
log: Don't crash if master sends a negative service_fd number.

11 years agomaster: Added an assert to catch duplicate fork() PIDs.
Timo Sirainen [Mon, 27 Oct 2014 18:10:19 +0000 (20:10 +0200)] 
master: Added an assert to catch duplicate fork() PIDs.
This really shouldn't be happening, but apparently it does sometimes. This
should make it easier to debug.

11 years agolib-storage: Recent change broke deleting mailboxes with LAYOUT=index
Timo Sirainen [Mon, 27 Oct 2014 15:05:52 +0000 (17:05 +0200)] 
lib-storage: Recent change broke deleting mailboxes with LAYOUT=index

11 years agolib-http: server: Fixed a hang occurring sometimes when response is sent for a reques...
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: server: Fixed a hang occurring sometimes when response is sent for a request that had payload.
Forgot to always trigger sending response when processing request payload
finishes.

11 years agolib-http: client: Removed asssert in http_client_connection_is_ready().
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: client: Removed asssert in http_client_connection_is_ready().
There is no reason why the input stream couldn't be full.

11 years agolib-http: client: The asserts recently added to http_connection_check_idle() are...
Stephan Bosch [Sun, 26 Oct 2014 16:43:57 +0000 (18:43 +0200)] 
lib-http: client: The asserts recently added to http_connection_check_idle() are bogus.

11 years agofs-posix: fs_copy() no longer fails if destination exists and FS_OPEN_MODE_REPLACE...
Timo Sirainen [Sat, 25 Oct 2014 23:03:22 +0000 (02:03 +0300)] 
fs-posix: fs_copy() no longer fails if destination exists and FS_OPEN_MODE_REPLACE is used

11 years agolib-http server: If i/ostream fails, don't return wrong "stream input size changed...
Timo Sirainen [Sat, 25 Oct 2014 22:59:05 +0000 (01:59 +0300)] 
lib-http server: If i/ostream fails, don't return wrong "stream input size changed" error.
Also handle the real case in a bit nicer way.

11 years agoman: Global options includes: Added back the newline at end of files.
Pascal Volk [Sat, 25 Oct 2014 22:18:07 +0000 (22:18 +0000)] 
man: Global options includes: Added back the newline at end of files.

They were accidentally removed in the previous commit.

11 years agoman: Global options includes: Added description of `-o setting=value'.
Pascal Volk [Sat, 25 Oct 2014 21:24:06 +0000 (21:24 +0000)] 
man: Global options includes: Added description of `-o setting=value'.

11 years agolib: If i_stream_seek() works by reading forward and read() fails, don't override...
Timo Sirainen [Sat, 25 Oct 2014 22:00:36 +0000 (01:00 +0300)] 
lib: If i_stream_seek() works by reading forward and read() fails, don't override the error message.

11 years agomaster: Don't start new processes while shutting down.
Timo Sirainen [Sat, 25 Oct 2014 21:08:05 +0000 (00:08 +0300)] 
master: Don't start new processes while shutting down.

11 years agodsync: Added debug logging for attribute importing
Timo Sirainen [Sat, 25 Oct 2014 19:53:35 +0000 (22:53 +0300)] 
dsync: Added debug logging for attribute importing

11 years agoAdded signature for changeset e8b793f2c409
Timo Sirainen [Sat, 25 Oct 2014 03:57:25 +0000 (06:57 +0300)] 
Added signature for changeset e8b793f2c409

11 years agoAdded tag 2.2.15 for changeset e8b793f2c409
Timo Sirainen [Sat, 25 Oct 2014 03:57:11 +0000 (06:57 +0300)] 
Added tag 2.2.15 for changeset e8b793f2c409

11 years agoReleased v2.2.15. 2.2.15
Timo Sirainen [Sat, 25 Oct 2014 03:57:11 +0000 (06:57 +0300)] 
Released v2.2.15.

11 years agolmtp: Use mail_log_prefix while mails are being delivered.
Timo Sirainen [Sat, 25 Oct 2014 03:40:03 +0000 (06:40 +0300)] 
lmtp: Use mail_log_prefix while mails are being delivered.

11 years agolmtp: Added missing session_id to mail_user
Timo Sirainen [Sat, 25 Oct 2014 03:37:35 +0000 (06:37 +0300)] 
lmtp: Added missing session_id to mail_user

11 years agolib-storage: LAYOUT=index now first creates the backend mailbox and only then adds...
Timo Sirainen [Sat, 25 Oct 2014 03:19:41 +0000 (06:19 +0300)] 
lib-storage: LAYOUT=index now first creates the backend mailbox and only then adds it to list index.
This avoids any race conditions with mailbox creation and opening it.

11 years agolib-storage: Don't update mailbox list index status fields when deleting a mailbox.
Timo Sirainen [Sat, 25 Oct 2014 03:18:45 +0000 (06:18 +0300)] 
lib-storage: Don't update mailbox list index status fields when deleting a mailbox.

11 years agolib-storage: When mailbox is deleted, reset its cached paths.
Timo Sirainen [Sat, 25 Oct 2014 03:18:06 +0000 (06:18 +0300)] 
lib-storage: When mailbox is deleted, reset its cached paths.
If mailbox is still later on recreated, the paths may have changed.

11 years agolib-storage: Fully unreference indexes when deleting mailboxes.
Timo Sirainen [Sat, 25 Oct 2014 03:16:47 +0000 (06:16 +0300)] 
lib-storage: Fully unreference indexes when deleting mailboxes.

11 years agolib-index: Don't assert-crash if expunge event handling finds that everything is...
Timo Sirainen [Fri, 24 Oct 2014 23:56:42 +0000 (02:56 +0300)] 
lib-index: Don't assert-crash if expunge event handling finds that everything is already expunged.

11 years agoquota: Fixed including the right system quota.h with NetBSD
Timo Sirainen [Fri, 24 Oct 2014 23:53:55 +0000 (02:53 +0300)] 
quota: Fixed including the right system quota.h with NetBSD
Patch by Manuel Bouyer.

I guess the quota.h could be renamed to something at some point..

11 years agoquota: Fixed NetBSD quota
Timo Sirainen [Fri, 24 Oct 2014 23:52:50 +0000 (02:52 +0300)] 
quota: Fixed NetBSD quota
I guess it's because quota is refreshed only at quota_open() time.
Based on patch by Manuel Bouyer

11 years agoauth: Some unsuccessful passdb lookups weren't returned as failures to passdb lookups.
Timo Sirainen [Fri, 24 Oct 2014 23:42:47 +0000 (02:42 +0300)] 
auth: Some unsuccessful passdb lookups weren't returned as failures to passdb lookups.
These lookups were only being done internally, so it usually didn't matter.
Also this only affected things like allow_nets checking and some non-common
passdb { result_* } settings.

11 years agoauth: allow_nets=local matches now connections without any IP address
Timo Sirainen [Fri, 24 Oct 2014 23:39:00 +0000 (02:39 +0300)] 
auth: allow_nets=local matches now connections without any IP address

11 years agovirtual plugin: Fixed assert-crash when backend mailbox was auto-closed while it...
Timo Sirainen [Fri, 24 Oct 2014 23:13:36 +0000 (02:13 +0300)] 
virtual plugin: Fixed assert-crash when backend mailbox was auto-closed while it had pending expunges.

11 years agolib-http: client: Handle situation in which server sends response before request...
Stephan Bosch [Fri, 24 Oct 2014 22:38:43 +0000 (01:38 +0300)] 
lib-http: client: Handle situation in which server sends response before request payload is fully sent.

11 years agolib-http: client: Fixed handling of requests aborted while still sending payload...
Stephan Bosch [Fri, 24 Oct 2014 22:38:42 +0000 (01:38 +0300)] 
lib-http: client: Fixed handling of requests aborted while still sending payload to server.

11 years agolib-http: client: Fixed conflict between request abort and request delayed error.
Stephan Bosch [Fri, 24 Oct 2014 22:38:42 +0000 (01:38 +0300)] 
lib-http: client: Fixed conflict between request abort and request delayed error.

11 years agolib-http: client: Fixed cleanup of remaining waiting requests at connection destroy.
Stephan Bosch [Fri, 24 Oct 2014 22:38:42 +0000 (01:38 +0300)] 
lib-http: client: Fixed cleanup of remaining waiting requests at connection destroy.
Forgot to dereference the requests for the reference that the connection
itself holds for each waiting request.

11 years agolib-http: client: Aborted requests were not counted as finished in the connection...
Stephan Bosch [Fri, 24 Oct 2014 22:38:42 +0000 (01:38 +0300)] 
lib-http: client: Aborted requests were not counted as finished in the connection's response receive loop.
This caused a hang.

11 years agolib-fs: Improved error logging
Timo Sirainen [Fri, 24 Oct 2014 20:00:56 +0000 (23:00 +0300)] 
lib-fs: Improved error logging