]> git.ipfire.org Git - thirdparty/dovecot/core.git/log
thirdparty/dovecot/core.git
6 years agolib-fts/fts-tokenizer-generic - rename state variables - cosmetic
Phil Carmody [Sat, 28 Apr 2018 12:38:06 +0000 (15:38 +0300)] 
lib-fts/fts-tokenizer-generic - rename state variables - cosmetic

These contain types, not letters, no functional changes.

Signed-off-by: Phil Carmody <phil@dovecot.fi>
6 years agolib-fts/fts-tokeniser-generic: move to container_of() for type-safety
Phil Carmody [Thu, 26 Apr 2018 13:57:11 +0000 (16:57 +0300)] 
lib-fts/fts-tokeniser-generic: move to container_of() for type-safety

Signed-off-by: Phil Carmody <phil@dovecot.fi>
6 years agosubmission: backends: Add trans_start() and trans_free() vfuncs.
Stephan Bosch [Sat, 15 Sep 2018 16:15:36 +0000 (18:15 +0200)] 
submission: backends: Add trans_start() and trans_free() vfuncs.

These are called when the SMTP transaction is started and freed respectively.

6 years agosubmission: Record backend used for each recipient.
Stephan Bosch [Sat, 15 Sep 2018 16:04:33 +0000 (18:04 +0200)] 
submission: Record backend used for each recipient.

This is a preparation for plugins overriding the default backend for a recipient.

6 years agosubmission: Record main backend for the transaction.
Stephan Bosch [Sat, 15 Sep 2018 15:33:03 +0000 (17:33 +0200)] 
submission: Record main backend for the transaction.

This is a preparation for plugins overriding the default backend for a transaction.

6 years agosubmission: DATA command: Pass the total size of the data stream to the backend.
Stephan Bosch [Thu, 4 Oct 2018 19:56:20 +0000 (21:56 +0200)] 
submission: DATA command: Pass the total size of the data stream to the backend.

6 years agosubmission: DATA command: Obtain the size of the buffered data from the stream positi...
Stephan Bosch [Thu, 4 Oct 2018 19:01:44 +0000 (21:01 +0200)] 
submission: DATA command: Obtain the size of the buffered data from the stream position rather than using i_stream_get_size().

6 years agosubmission: relay backend: Use backend-specific settings rather than the generic...
Stephan Bosch [Sat, 15 Sep 2018 14:01:59 +0000 (16:01 +0200)] 
submission: relay backend: Use backend-specific settings rather than the generic submission service settings.

This way, several relay backends can be operated together with different
settings.

6 years agosubmission: relay backend: Make struct submission_backend_relay private.
Stephan Bosch [Sat, 15 Sep 2018 13:46:34 +0000 (15:46 +0200)] 
submission: relay backend: Make struct submission_backend_relay private.

6 years agosubmission: relay backend: Turn client_proxy_create() into a proper backend constructor.
Stephan Bosch [Sat, 15 Sep 2018 13:29:40 +0000 (15:29 +0200)] 
submission: relay backend: Turn client_proxy_create() into a proper backend constructor.

6 years agosubmission: relay backend: Turn client_get_max_mail_size() into a relay backend vfunc.
Stephan Bosch [Sat, 15 Sep 2018 13:13:32 +0000 (15:13 +0200)] 
submission: relay backend: Turn client_get_max_mail_size() into a relay backend vfunc.

6 years agosubmission: relay backend: Turn client_proxy_input_pre/post() into relay backend...
Stephan Bosch [Sat, 15 Sep 2018 12:44:41 +0000 (14:44 +0200)] 
submission: relay backend: Turn client_proxy_input_pre/post() into relay backend vfuncs.

6 years agosubmission: relay backend: Turn client_proxy_start() into a relay backend vfunc.
Stephan Bosch [Sat, 15 Sep 2018 12:35:10 +0000 (14:35 +0200)] 
submission: relay backend: Turn client_proxy_start() into a relay backend vfunc.

6 years agosubmission: relay backend: Turn client_proxy_destroy() into a relay backend vfunc.
Stephan Bosch [Sat, 15 Sep 2018 12:25:38 +0000 (14:25 +0200)] 
submission: relay backend: Turn client_proxy_destroy() into a relay backend vfunc.

6 years agosubmission: relay backend: Turn SMTP command functions into relay backend vfuncs.
Stephan Bosch [Sat, 15 Sep 2018 11:53:07 +0000 (13:53 +0200)] 
submission: relay backend: Turn SMTP command functions into relay backend vfuncs.

6 years agosubmission: client: Create default backend in a separate function.
Stephan Bosch [Sat, 15 Sep 2018 12:08:57 +0000 (14:08 +0200)] 
submission: client: Create default backend in a separate function.

6 years agosubmission: Define generic backend API.
Stephan Bosch [Sat, 15 Sep 2018 11:02:50 +0000 (13:02 +0200)] 
submission: Define generic backend API.

6 years agosubmission: Add submission_backend_capabilities setting.
Stephan Bosch [Wed, 3 Oct 2018 23:37:24 +0000 (01:37 +0200)] 
submission: Add submission_backend_capabilities setting.

This can be used to specify which capabilities the (relay) backend supports,
avoiding the need to query the backend explicitly before the EHLO reply is sent
to the client.

6 years agosubmission: commands: Expect connection setup errors from relaying commands.
Stephan Bosch [Thu, 4 Oct 2018 19:39:58 +0000 (21:39 +0200)] 
submission: commands: Expect connection setup errors from relaying commands.

Subsequent changes remove the guarantee that the connection is setup successfuly
(to gain EHLO capabilities) before commands are submitted. This means that the
callbacks from commands can thereafter return connection setup errors as well.

6 years agolib-smtp: client: Use the new smtp_capability_find_by_name() function.
Stephan Bosch [Wed, 26 Sep 2018 19:44:35 +0000 (21:44 +0200)] 
lib-smtp: client: Use the new smtp_capability_find_by_name() function.

6 years agolib-smtp: client: Document the forced_capabilities setting.
Stephan Bosch [Wed, 26 Sep 2018 19:36:01 +0000 (21:36 +0200)] 
lib-smtp: client: Document the forced_capabilities setting.

6 years agolib-smtp: Add utility function for finding capabilities by name.
Stephan Bosch [Wed, 26 Sep 2018 19:32:45 +0000 (21:32 +0200)] 
lib-smtp: Add utility function for finding capabilities by name.

6 years agosubmission: client: Simplifly calculation of max mail size.
Stephan Bosch [Sat, 15 Sep 2018 13:02:20 +0000 (15:02 +0200)] 
submission: client: Simplifly calculation of max mail size.

6 years agosubmission: Record accepted recipients in the client object.
Stephan Bosch [Sat, 15 Sep 2018 11:17:11 +0000 (13:17 +0200)] 
submission: Record accepted recipients in the client object.

Allows associating context with recipients in future changes.

6 years agosubmission: Reformat submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 20:37:13 +0000 (22:37 +0200)] 
submission: Reformat submission-backend-relay.c.

6 years agosubmission: relay backend: Change almost all occurrences of 'proxy' to 'relay'.
Stephan Bosch [Sun, 15 Jul 2018 19:42:17 +0000 (21:42 +0200)] 
submission: relay backend: Change almost all occurrences of 'proxy' to 'relay'.

This makes the naming consistent with the name of the backend. Only the lib-smtp
proxy_data is not renamed.

6 years agosubmission: relay backend: Rename client_command_handle_proxy_reply() to backend_rela...
Stephan Bosch [Sun, 15 Jul 2018 19:27:48 +0000 (21:27 +0200)] 
submission: relay backend: Rename client_command_handle_proxy_reply() to backend_relay_handle_relay_reply().

Also make it accept the backend rather than the client struct.

6 years agosubmission: relay backend: Rename *_proxy_cb() to *_callback().
Stephan Bosch [Sun, 15 Jul 2018 18:56:47 +0000 (20:56 +0200)] 
submission: relay backend: Rename *_proxy_cb() to *_callback().

6 years agosubmission: relay backend: Add 'relay_' prefix to command functions and structs.
Stephan Bosch [Sun, 15 Jul 2018 19:10:39 +0000 (21:10 +0200)] 
submission: relay backend: Add 'relay_' prefix to command functions and structs.

6 years agosubmission: relay backend: Use pointer to backend rather than client in command contexts.
Stephan Bosch [Sun, 15 Jul 2018 18:35:45 +0000 (20:35 +0200)] 
submission: relay backend: Use pointer to backend rather than client in command contexts.

6 years agosubmission: Move relay-related client fields to separate backend struct.
Stephan Bosch [Sun, 15 Jul 2018 18:49:05 +0000 (20:49 +0200)] 
submission: Move relay-related client fields to separate backend struct.

6 years agosubmission: Move client_proxy_get_max_mail_size() to submission-backend-relay.c.
Stephan Bosch [Sun, 2 Sep 2018 15:10:19 +0000 (17:10 +0200)] 
submission: Move client_proxy_get_max_mail_size() to submission-backend-relay.c.

6 years agosubmission: Move client_proxy_input_pre/post() to submission-backend-relay.c.
Stephan Bosch [Sun, 2 Sep 2018 14:05:28 +0000 (16:05 +0200)] 
submission: Move client_proxy_input_pre/post() to submission-backend-relay.c.

6 years agosubmission: Move client_proxy_destroy() to submission-backend-relay.c.
Stephan Bosch [Sun, 2 Sep 2018 13:29:24 +0000 (15:29 +0200)] 
submission: Move client_proxy_destroy() to submission-backend-relay.c.

6 years agosubmission: Move client_proxy_create() to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 20:02:37 +0000 (22:02 +0200)] 
submission: Move client_proxy_create() to submission-backend-relay.c.

6 years agosubmission: Move client_proxy_start() to submission-backend-relay.c.
Stephan Bosch [Sat, 1 Sep 2018 14:40:10 +0000 (16:40 +0200)] 
submission: Move client_proxy_start() to submission-backend-relay.c.

6 years agosubmission: Split off obtaining the relay connection capabilities into a separate...
Stephan Bosch [Sun, 2 Sep 2018 15:04:14 +0000 (17:04 +0200)] 
submission: Split off obtaining the relay connection capabilities into a separate function.

6 years agosubmission: Split off corking and uncorking the relay connection in a separate function.
Stephan Bosch [Sun, 2 Sep 2018 13:44:33 +0000 (15:44 +0200)] 
submission: Split off corking and uncorking the relay connection in a separate function.

6 years agosubmission: Split off closing the relay connection in a separate function.
Stephan Bosch [Sun, 2 Sep 2018 13:10:08 +0000 (15:10 +0200)] 
submission: Split off closing the relay connection in a separate function.

6 years agosubmission: Split off starting the relay connection in a separate function.
Stephan Bosch [Sat, 1 Sep 2018 13:51:01 +0000 (15:51 +0200)] 
submission: Split off starting the relay connection in a separate function.

6 years agosubmission: Remove client_proxy_is_disconnected().
Stephan Bosch [Sun, 15 Jul 2018 17:54:06 +0000 (19:54 +0200)] 
submission: Remove client_proxy_is_disconnected().

It is not used anywhere.

6 years agosubmission: Remove client_proxy_is_ready().
Stephan Bosch [Sun, 15 Jul 2018 17:52:41 +0000 (19:52 +0200)] 
submission: Remove client_proxy_is_ready().

It is not used anywhere.

6 years agosubmission: Move relay part of QUIT command to submission-backend-relay.c.
Stephan Bosch [Wed, 29 Aug 2018 22:26:03 +0000 (00:26 +0200)] 
submission: Move relay part of QUIT command to submission-backend-relay.c.

6 years agosubmission: Move generic part of QUIT command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 22:21:59 +0000 (00:21 +0200)] 
submission: Move generic part of QUIT command to submission-commands.c.

6 years agosubmission: Move relay part of NOOP command to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 17:06:34 +0000 (19:06 +0200)] 
submission: Move relay part of NOOP command to submission-backend-relay.c.

6 years agosubmission: Move generic part of NOOP command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 21:51:09 +0000 (23:51 +0200)] 
submission: Move generic part of NOOP command to submission-commands.c.

6 years agosubmission: Move relay part of VRFY command to submission-backend-relay.c.
Stephan Bosch [Sun, 9 Sep 2018 23:07:58 +0000 (01:07 +0200)] 
submission: Move relay part of VRFY command to submission-backend-relay.c.

6 years agosubmission: Move generic part of VRFY command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 21:37:25 +0000 (23:37 +0200)] 
submission: Move generic part of VRFY command to submission-commands.c.

6 years agosubmission: Move BURL command implementation to submission-commands.c.
Stephan Bosch [Sun, 15 Jul 2018 17:38:11 +0000 (19:38 +0200)] 
submission: Move BURL command implementation to submission-commands.c.

6 years agosubmission: Move relay part of DATA command to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 17:03:09 +0000 (19:03 +0200)] 
submission: Move relay part of DATA command to submission-backend-relay.c.

6 years agosubmission: Move generic part of DATA command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 22:59:50 +0000 (00:59 +0200)] 
submission: Move generic part of DATA command to submission-commands.c.

6 years agosubmission: Move relay part of RSET command to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 17:00:11 +0000 (19:00 +0200)] 
submission: Move relay part of RSET command to submission-backend-relay.c.

6 years agosubmission: Move generic part of RSET command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 21:33:11 +0000 (23:33 +0200)] 
submission: Move generic part of RSET command to submission-commands.c.

6 years agosubmission: Move relay part of RCPT command to submission-backend-relay.c.
Stephan Bosch [Wed, 29 Aug 2018 20:45:00 +0000 (22:45 +0200)] 
submission: Move relay part of RCPT command to submission-backend-relay.c.

6 years agosubmission: Move generic part of RCPT command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 21:30:31 +0000 (23:30 +0200)] 
submission: Move generic part of RCPT command to submission-commands.c.

6 years agosubmission: Move relay part of MAIL command to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 16:57:26 +0000 (18:57 +0200)] 
submission: Move relay part of MAIL command to submission-backend-relay.c.

6 years agosubmission: Move generic part of MAIL command to submission-commands.c.
Stephan Bosch [Wed, 29 Aug 2018 21:25:32 +0000 (23:25 +0200)] 
submission: Move generic part of MAIL command to submission-commands.c.

6 years agosubmission: Move relay part of HELO/EHLO command to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 16:54:00 +0000 (18:54 +0200)] 
submission: Move relay part of HELO/EHLO command to submission-backend-relay.c.

6 years agosubmission: Move generic part of HELO/EHLO command to submission-commands.c.
Stephan Bosch [Sat, 1 Sep 2018 11:34:53 +0000 (13:34 +0200)] 
submission: Move generic part of HELO/EHLO command to submission-commands.c.

6 years agosubmission: Split the QUIT command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 22:18:40 +0000 (00:18 +0200)] 
submission: Split the QUIT command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the NOOP command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 21:43:43 +0000 (23:43 +0200)] 
submission: Split the NOOP command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the VRFY command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 20:37:27 +0000 (22:37 +0200)] 
submission: Split the VRFY command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the DATA command into a generic part and a part related to relaying...
Stephan Bosch [Mon, 27 Aug 2018 23:58:58 +0000 (01:58 +0200)] 
submission: Split the DATA command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the RSET command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 20:30:51 +0000 (22:30 +0200)] 
submission: Split the RSET command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the RCPT command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 20:27:12 +0000 (22:27 +0200)] 
submission: Split the RCPT command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the MAIL command into a generic part and a part related to relaying...
Stephan Bosch [Wed, 29 Aug 2018 20:25:18 +0000 (22:25 +0200)] 
submission: Split the MAIL command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Split the EHLO command into a generic part and a part related to relaying...
Stephan Bosch [Sat, 1 Sep 2018 11:30:34 +0000 (13:30 +0200)] 
submission: Split the EHLO command into a generic part and a part related to relaying to an MTA.

6 years agosubmission: Move submission_helo_reply_submit() from cmd-helo.c to submission-commands.c.
Stephan Bosch [Mon, 27 Aug 2018 18:15:40 +0000 (20:15 +0200)] 
submission: Move submission_helo_reply_submit() from cmd-helo.c to submission-commands.c.

6 years agosubmission: Make HELO/EHLO reply submission a separate public function.
Stephan Bosch [Mon, 27 Aug 2018 17:46:21 +0000 (19:46 +0200)] 
submission: Make HELO/EHLO reply submission a separate public function.

6 years agosubmission: Move client_command_handle_proxy_reply() to submission-backend-relay.c.
Stephan Bosch [Sun, 15 Jul 2018 17:10:36 +0000 (19:10 +0200)] 
submission: Move client_command_handle_proxy_reply() to submission-backend-relay.c.

6 years agosubmission: client: Remove spurious forward declaration of "struct client_command_con...
Stephan Bosch [Sat, 15 Sep 2018 16:33:30 +0000 (18:33 +0200)] 
submission: client: Remove spurious forward declaration of "struct client_command_context".

6 years agolib-smtp: client: Add forward declaration for struct smtp_client_settings in smtp...
Stephan Bosch [Sat, 15 Sep 2018 19:06:07 +0000 (21:06 +0200)] 
lib-smtp: client: Add forward declaration for struct smtp_client_settings in smtp-client-connection.h.

6 years agolib-smtp: server: Drop pending commands and transaction at disconnect rather than...
Stephan Bosch [Wed, 12 Sep 2018 19:21:09 +0000 (21:21 +0200)] 
lib-smtp: server: Drop pending commands and transaction at disconnect rather than destroy.

This makes sure the conn_trans_free() connection callback is called before
th conn_disconnect() callback. This makes more sense than the other way around,
which instead would be a likely cause for mishaps causing segfaults and the
like.

6 years agolib-smtp: server: Add callback for transaction start.
Stephan Bosch [Sun, 2 Sep 2018 21:26:21 +0000 (23:26 +0200)] 
lib-smtp: server: Add callback for transaction start.

6 years agolib-smtp: server: Change command hooks API to allow many parallel hooks with individu...
Stephan Bosch [Tue, 17 Jul 2018 22:51:56 +0000 (00:51 +0200)] 
lib-smtp: server: Change command hooks API to allow many parallel hooks with individual context.

This e.g. allows many server plugins to hook into command execution without
interfering with eachother.

6 years agoLAYOUT=index: Fix rebuilding mailbox list index on force-resync
Timo Sirainen [Tue, 15 Jan 2019 23:00:22 +0000 (01:00 +0200)] 
LAYOUT=index: Fix rebuilding mailbox list index on force-resync

The if-check was a bit confusing because have_backend==TRUE means that there
the mailbox list index is only an index, while have_backend==FALSE means
that the mailbox list index is the only source for the list of mailboxes
(= list index is the backend).

6 years agopush-notification-driver-lua: Request flags and keywords
Aki Tuomi [Mon, 7 Jan 2019 18:08:26 +0000 (20:08 +0200)] 
push-notification-driver-lua: Request flags and keywords

6 years agopush-notification-driver-lua: Fix comment typo
Aki Tuomi [Mon, 7 Jan 2019 17:54:56 +0000 (19:54 +0200)] 
push-notification-driver-lua: Fix comment typo

6 years agopush-notification-driver-lua: Add keywords and flags to MessageAppend event
Aki Tuomi [Mon, 7 Jan 2019 18:01:21 +0000 (20:01 +0200)] 
push-notification-driver-lua: Add keywords and flags to MessageAppend event

6 years agopush-notification-driver-lua: Add keywords and flags to MessageNew event
Aki Tuomi [Mon, 7 Jan 2019 17:49:20 +0000 (19:49 +0200)] 
push-notification-driver-lua: Add keywords and flags to MessageNew event

6 years agopush-notification-driver-lua: Rename keywords_set and keywors_clear to keywords
Aki Tuomi [Mon, 7 Jan 2019 17:48:11 +0000 (19:48 +0200)] 
push-notification-driver-lua: Rename keywords_set and keywors_clear to keywords

This is more concince since these are the keywords being operated on.

6 years agopush-notification-driver-lua: Push keywords in helper function
Aki Tuomi [Mon, 7 Jan 2019 17:47:14 +0000 (19:47 +0200)] 
push-notification-driver-lua: Push keywords in helper function

6 years agopush-notification-driver-lua: Push mail flags as array of flags
Aki Tuomi [Mon, 7 Jan 2019 17:42:39 +0000 (19:42 +0200)] 
push-notification-driver-lua: Push mail flags as array of flags

6 years agopush-notification: Add flags and keywords to MessageAppend event
Aki Tuomi [Mon, 7 Jan 2019 18:00:07 +0000 (20:00 +0200)] 
push-notification: Add flags and keywords to MessageAppend event

6 years agopush-notification: Add flags and keywords to MessageNew event
Aki Tuomi [Mon, 7 Jan 2019 17:33:28 +0000 (19:33 +0200)] 
push-notification: Add flags and keywords to MessageNew event

6 years agom4: Remove unneeded else case from want_lz4
Aki Tuomi [Fri, 11 Jan 2019 07:55:25 +0000 (09:55 +0200)] 
m4: Remove unneeded else case from want_lz4

This causes extraneous code in configure causing it to fail

6 years agom4: Replace some if tests with AS_IF
Aki Tuomi [Fri, 11 Jan 2019 07:37:51 +0000 (09:37 +0200)] 
m4: Replace some if tests with AS_IF

Fixes configure on older systems

6 years agom4: Remove stray comma from want_lua.m4
Aki Tuomi [Fri, 11 Jan 2019 07:37:42 +0000 (09:37 +0200)] 
m4: Remove stray comma from want_lua.m4

6 years agom4: Remove stray AC_ARG_WITH from arc4random.m4
Aki Tuomi [Fri, 11 Jan 2019 07:37:02 +0000 (09:37 +0200)] 
m4: Remove stray AC_ARG_WITH from arc4random.m4

6 years agolog: Use failure context log_prefix when available as prefix for error.
Sergey Kitov [Wed, 12 Dec 2018 14:21:29 +0000 (16:21 +0200)] 
log: Use failure context log_prefix when available as prefix for error.

Current behaviour hides log prefix when seeing errors via doveadm log
errors, this commit will fix it.

6 years agoauth: Fix auth-policy log-only warning whitespace
Martti Rannanjärvi [Thu, 13 Dec 2018 09:30:06 +0000 (11:30 +0200)] 
auth: Fix auth-policy log-only warning whitespace

6 years agoauth: Add auth_policy_log_only setting
Aki Tuomi [Tue, 4 Dec 2018 11:42:44 +0000 (13:42 +0200)] 
auth: Add auth_policy_log_only setting

When auth_policy_log_only=yes, only log what would have been done.

6 years agoauth: Treat all negative responses from policy servers as drops
Aki Tuomi [Tue, 4 Dec 2018 11:42:04 +0000 (13:42 +0200)] 
auth: Treat all negative responses from policy servers as drops

Otherwise negative responses that are not -1 are considered
as success, which is wrong.

6 years agoauth: Log policy decisions clearly
Aki Tuomi [Tue, 4 Dec 2018 11:41:20 +0000 (13:41 +0200)] 
auth: Log policy decisions clearly

6 years agolib-storage: Fix mail_get_headers() API comment
Timo Sirainen [Tue, 11 Dec 2018 18:28:33 +0000 (20:28 +0200)] 
lib-storage: Fix mail_get_headers() API comment

6 years agolib-storage: Fix error handling if mailbox list index refresh fails
Timo Sirainen [Tue, 4 Dec 2018 09:19:23 +0000 (11:19 +0200)] 
lib-storage: Fix error handling if mailbox list index refresh fails

The caller expects the error to be in mail_storage, not mailbox_list.

6 years agomaildir: Don't crash with zlib plugin when saving is aborted
Timo Sirainen [Mon, 3 Dec 2018 13:43:06 +0000 (15:43 +0200)] 
maildir: Don't crash with zlib plugin when saving is aborted

The ostream can be finished even if the saving had already failed. It gets
deleted anyway.

Fixes:
Panic: file ostream-zlib.c: line 37 (o_stream_zlib_close): assertion failed: (zstream->ostream.finished || zstream->ostream.ostream.stream_errno != 0 || zstream->ostream.error_handling_disabled)

6 years agologin-proxy: Fix potential crash for delayed disconnects
Timo Sirainen [Mon, 3 Dec 2018 13:59:13 +0000 (15:59 +0200)] 
login-proxy: Fix potential crash for delayed disconnects

This happens only with login_proxy_max_disconnect_delay.

Fixes:
Panic: file ioloop.c: line 86 (io_add): assertion failed: (fd >= 0)

6 years agolib-smtp: client: Prevent sending an empty XCLIENT command when the first parameter...
Stephan Bosch [Mon, 3 Dec 2018 23:16:47 +0000 (00:16 +0100)] 
lib-smtp: client: Prevent sending an empty XCLIENT command when the first parameter is long.

6 years agolib: event - Add event_set_log_prefix_callback
Aki Tuomi [Thu, 29 Nov 2018 11:12:28 +0000 (13:12 +0200)] 
lib: event - Add event_set_log_prefix_callback

Fetch prefix using a callback.