]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Stephan Bosch [Sun, 10 Mar 2019 12:08:34 +0000 (13:08 +0100)]
lib-lda: Replace i_warning() with e_warning().
Stephan Bosch [Sun, 10 Mar 2019 12:01:08 +0000 (13:01 +0100)]
lib-lda: Replace i_info() with e_info().
Stephan Bosch [Sun, 10 Mar 2019 11:58:03 +0000 (12:58 +0100)]
lib-lda: Replace i_error() with e_error().
Stephan Bosch [Sun, 10 Mar 2019 09:53:51 +0000 (10:53 +0100)]
lib-lda: mail-deliver - Add message fields to the deliver event.
Stephan Bosch [Sun, 10 Mar 2019 11:13:10 +0000 (12:13 +0100)]
lib-lda: mail-deliver - Rename mail_deliver_cache to mail_deliver_fields.
Also make the fields public.
Stephan Bosch [Mon, 4 Mar 2019 00:15:47 +0000 (01:15 +0100)]
lda: Use LDA event as mail_*user's parent event.
Stephan Bosch [Mon, 4 Mar 2019 00:12:55 +0000 (01:12 +0100)]
lda: Add support for event API.
Stephan Bosch [Mon, 4 Mar 2019 00:08:21 +0000 (01:08 +0100)]
lda: Assign envelope fields in mail deliver context right away.
Stephan Bosch [Sun, 3 Mar 2019 23:30:27 +0000 (00:30 +0100)]
lmtp: lmtp-local - Use recipient event for mail delivery.
Stephan Bosch [Sun, 3 Mar 2019 23:28:42 +0000 (00:28 +0100)]
lib-lda: mail-deliver - Add support for event API.
Stephan Bosch [Wed, 27 Mar 2019 00:25:57 +0000 (01:25 +0100)]
lib-lda: Initialize/deinitialize mail_deliver_context in separate functions.
This changes the allocation of parsed SMTP addresses to initially use a
datastack pool rather than the mail_deliver context pool. This is necessary
because the context is created a bit later. Upon mail_deliver_init(), the
addresses are moved to the context pool.
Stephan Bosch [Sun, 31 Mar 2019 14:14:06 +0000 (16:14 +0200)]
lda: Move mail_deliver() invocation to a separate function.
Stephan Bosch [Mon, 4 Mar 2019 00:19:05 +0000 (01:19 +0100)]
lib-lda: mail-deliver - Split the mail_deliver() function to perform post-delivery cleanup in one place.
Timo Sirainen [Mon, 18 Mar 2019 22:02:06 +0000 (00:02 +0200)]
lib-storage: Fix NO-FS-VALIDATION in mail_location
The setting wasn't being preserved properly, so it was just ignored.
Josef 'Jeff' Sipek [Thu, 14 Mar 2019 19:24:37 +0000 (15:24 -0400)]
lib: event_filter_unref(NULL) is already a no-op
Josef 'Jeff' Sipek [Wed, 27 Mar 2019 14:09:33 +0000 (16:09 +0200)]
lib-http: Fix comment typo
Michael Slusarz [Mon, 25 Mar 2019 17:58:00 +0000 (11:58 -0600)]
doveadm: Add body.preview as a fetch field
Keep body.snippet as a fetch field for backward compatitibility reasons
Michael M Slusarz [Wed, 31 Oct 2018 00:28:49 +0000 (18:28 -0600)]
RFC has changed SHOULD length of preview from 100 to 200
Michael M Slusarz [Wed, 31 Oct 2018 00:28:04 +0000 (18:28 -0600)]
RFC draft has changed from SNIPPET to PREVIEW
The older SNIPPET command will remain for now - it is mostly the same
as the new PREVIEW code, so it's essentially an alias (the only
difference between the two versions is the SNIPPET/PREVIEW identifier
text).
Timo Sirainen [Tue, 2 Apr 2019 10:55:14 +0000 (13:55 +0300)]
dict: Remove unnecessary o_stream_flush()
Added recently by
89e4b2e7fbd17548f3c99fa66368c9b0bc8eb775
Aki Tuomi [Sun, 31 Mar 2019 18:24:40 +0000 (21:24 +0300)]
doveadm-dict: Add missing dict_deinit
Fixes event leak when set is missing parameter.
Aki Tuomi [Sun, 31 Mar 2019 14:01:36 +0000 (17:01 +0300)]
dict: Parse handshake using handshake_args
This ensures the input is properly tab unescaped, also
simplifies the handshake function.
Aki Tuomi [Mon, 8 Oct 2018 08:51:41 +0000 (11:51 +0300)]
dict: Remove obsolete check as getenv() is no longer used for getting dicts
Aki Tuomi [Sun, 31 Mar 2019 13:54:28 +0000 (16:54 +0300)]
dict: Use connection API
Aki Tuomi [Mon, 1 Apr 2019 09:10:10 +0000 (12:10 +0300)]
dict: Use connection struct
Prepares for moving into connection API
Aki Tuomi [Mon, 1 Apr 2019 09:09:33 +0000 (12:09 +0300)]
dict: Create connection with struct master_connection instead of fd
Prepares for moving into connection.c struct
Timo Sirainen [Tue, 5 Feb 2019 03:25:13 +0000 (19:25 -0800)]
fts: Fix buffer overflow when reading oversized fts header
Timo Sirainen [Tue, 5 Feb 2019 03:23:02 +0000 (19:23 -0800)]
lib-storage: Fix buffer overflow when reading oversized hdr-pop3-uidl header
Timo Sirainen [Sun, 20 May 2018 09:27:22 +0000 (12:27 +0300)]
fts: Add fts_enforced=body
Similar to "no", this doesn't enforce FTS indexing for header searches.
Similar to "yes", on FTS lookup failure it won't fallback to reading all
mails.
Timo Sirainen [Wed, 27 Mar 2019 14:44:21 +0000 (16:44 +0200)]
sdbox: Add "sdbox" event category
2cd16e24fb442a066c6c3051c1042c1091b927bb only added it to the "dbox" alias.
Timo Sirainen [Thu, 14 Mar 2019 16:57:54 +0000 (18:57 +0200)]
lmtp: Add mail_user_settings to struct client
Timo Sirainen [Thu, 14 Mar 2019 16:58:14 +0000 (18:58 +0200)]
lib-storage: Add mailbox_keywords_merge()
Timo Sirainen [Thu, 28 Feb 2019 13:10:59 +0000 (15:10 +0200)]
lib-storage: Add mailbox_search_mail_detach()
This allows keeping the struct mail open even after the mail_search_context
that created it is freed.
Timo Sirainen [Thu, 28 Feb 2019 13:03:22 +0000 (15:03 +0200)]
lib-storage: Move tracking mails to mail_search_context from index-specific code
This makes the next commit much easier to implement.
Timo Sirainen [Thu, 28 Feb 2019 13:08:38 +0000 (15:08 +0200)]
lib-storage: Move index_mail.search_mail to mail_private struct
Timo Sirainen [Mon, 18 Mar 2019 13:34:10 +0000 (15:34 +0200)]
lib-mail: istream-header-filter: Fix HEADER_FILTER_ADD_MISSING_EOH with callback
If mail already had EOH and callback returned matched=TRUE in the EOH
callback (e.g. adding more headers), the callback was called a second
time for the EOH.
Currently there doesn't seem to be any existing code that was affected by
this bug.
Aki Tuomi [Thu, 14 Mar 2019 08:10:45 +0000 (10:10 +0200)]
lib: Add test for backtrace-string
Aki Tuomi [Fri, 8 Mar 2019 11:38:56 +0000 (13:38 +0200)]
lib: Add libunwind support for getting backtrace
This actually resolves symbols to readable names
making the backtrace useful.
Sergey Kitov [Fri, 22 Mar 2019 13:59:53 +0000 (15:59 +0200)]
auth-request: Call auth_request_passdb_lookup_end() for all return paths of auth_request_handle_passdb_callback()
Fixes: Panic: file auth-request.c: line 367 (auth_request_unref):
assertion failed: (array_count(&request->authdb_event) == 0)
The panic happens when auth request results in PASSDB_RESULT_USER_DISABLED.
Josef 'Jeff' Sipek [Wed, 16 Jan 2019 13:58:15 +0000 (08:58 -0500)]
coccinelle: Add all semantic patches used in the past to a new dir
This commit merely imports the semantic patches without providing any
additional tooling to apply them. It also includes macros.h header used by
coccinelle to properly handle some of the more complex macros we have.
Martti Rannanjärvi [Fri, 22 Mar 2019 07:20:11 +0000 (09:20 +0200)]
auth: Make db_oauth2_callback debug print human readable
Martti Rannanjärvi [Fri, 22 Mar 2019 06:11:21 +0000 (08:11 +0200)]
lib-oauth2: Don't crash when http response has no payload
Sergey Kitov [Thu, 21 Mar 2019 06:39:28 +0000 (08:39 +0200)]
ipc-server: Reconnect on socket input error.
Sergey Kitov [Thu, 21 Mar 2019 13:29:20 +0000 (15:29 +0200)]
ipc-server: Change reconnect timeout to 10 seconds.
Sergey Kitov [Thu, 21 Mar 2019 06:38:52 +0000 (08:38 +0200)]
ipc: Terminate IPC process with master.
Sergey Kitov [Thu, 21 Mar 2019 13:23:51 +0000 (15:23 +0200)]
ipc: Introduce ipc_groups_disconnect_all()
Timo Sirainen [Tue, 4 Oct 2016 13:00:18 +0000 (16:00 +0300)]
lib-ssl-iostream: Minor assert cleanup.
If stream->closed is TRUE then stream->stream_errno != 0 as well. And here
we really want to be sure that stream_errno isn't 0, so make the assert
reflect that.
Olaf Hering [Thu, 3 Jan 2019 19:32:26 +0000 (20:32 +0100)]
config: reproducible output from settings-get.pl
If the same source gets built twice ('build same source on different
hosts at different times') the resulting files may differ.
Fix this by sorting the hash keys before usage.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
Sergey Kitov [Wed, 20 Mar 2019 12:20:44 +0000 (14:20 +0200)]
lib-oauth2: Remove obsolete files.
Sergey Kitov [Mon, 11 Feb 2019 14:37:53 +0000 (16:37 +0200)]
lib-oauth2: Refactor oauth request code.
Use one parameterized function instead of three copy-paste functions.
Stephan Bosch [Wed, 29 Aug 2018 17:01:37 +0000 (19:01 +0200)]
lib-http: client: Fix segfault crash sometimes happening while running sub-ioloop in request callback.
The connection was not completely disconnected before calling the callback.
Running a sub-ioloop means that timeouts and ios that haven't been destroyed yet
for the connection can be triggered, causing all kinds of issues. Therefore, it
is important to disconnect before calling the request callbacks. The fix therefore
consists of calling http_client_connection_disconnect() before calling
http_client_connection_retry_requests() in
http_client_connection_abort_temp_error().
This also amends the test suite to account for these changes, as it is now
unclear which requests will actually succeed.
Stephan Bosch [Sun, 16 Sep 2018 13:36:59 +0000 (15:36 +0200)]
lib-http: client: Abort pending requests at connection destroy rather than disconnect.
This is needed for subsequent changes.
Stephan Bosch [Sun, 16 Sep 2018 13:19:23 +0000 (15:19 +0200)]
lib-http: client: Implement the no_auto_retry setting in http_client_request_retry().
Before, it was implemented in http_client_connection_retry_requests(), but that
would not work after http_client_connection_disconnect().The peer is detached
from the connection there, which makes conn->peer->client->set unavailable.
Instead, we use req->client->set for each request individually to determine
whether it should be retried or not.
Stephan Bosch [Sun, 6 Jan 2019 11:11:26 +0000 (12:11 +0100)]
lib-storage: mail-storage-service: Fix failure prefix composition in mail_storage_service_lookup().
It produced a prefix without the required ": " suffix and in one case it
produced a spurious comma.
Timo Sirainen [Wed, 20 Mar 2019 12:00:51 +0000 (14:00 +0200)]
lib-storage: Fix -Wimplicit-fallthrough compiler warning
Stephan Bosch [Wed, 20 Mar 2019 08:26:54 +0000 (09:26 +0100)]
lib-smtp: smtp-server-reply - Fix dead assignment in smtp_server_reply_get_path_len().
Problem found by Clang scan-build.
Stephan Bosch [Wed, 14 Nov 2018 00:10:13 +0000 (01:10 +0100)]
lib-smtp: test-smtp-payload: Implement connection reuse.
Makes the test as a whole faster and it tests an important aspect of connection
management (which, in fact, we currently don't use).
Stephan Bosch [Tue, 19 Mar 2019 00:54:16 +0000 (01:54 +0100)]
lib-smtp: smtp-server-cmd-rcpt - Use smtp_server_recipient_reply() to submit the default success reply.
Stephan Bosch [Fri, 15 Mar 2019 23:53:07 +0000 (00:53 +0100)]
lib-smtp: smtp-server-recipient - Enforce <path> prefix in forwarded reply.
This is mainly for concistency, but it also prevents exposing addresses that
are supposed to be only visible to the backend. Also, this implicitly adds the
<path> prefix to the reply when it is missing, provided it is not an RCPT
success reply.
Stephan Bosch [Fri, 15 Mar 2019 00:16:35 +0000 (01:16 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_replace_path().
Replaces or adds a <path> prefix to the reply text.
Stephan Bosch [Thu, 14 Mar 2019 23:14:05 +0000 (00:14 +0100)]
lib: str - Add str_replace().
Stephan Bosch [Thu, 14 Mar 2019 22:55:00 +0000 (23:55 +0100)]
lib: buffer - Add buffer_replace().
Stephan Bosch [Sun, 17 Mar 2019 23:52:37 +0000 (00:52 +0100)]
lib: buffer - Improve header comment for buffer_insert() and buffer_delete().
Stephan Bosch [Sat, 16 Mar 2019 16:41:38 +0000 (17:41 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_prepend_text().
Stephan Bosch [Sat, 16 Mar 2019 16:31:41 +0000 (17:31 +0100)]
lib-smtp: smtp-server-reply - Add smtp_server_reply_get_status().
Stephan Bosch [Sat, 16 Mar 2019 16:13:28 +0000 (17:13 +0100)]
lib-smtp: smtp-server-reply - Support changing the reply status and enhanced code.
Stephan Bosch [Sat, 16 Mar 2019 15:25:22 +0000 (16:25 +0100)]
lib-smtp: smtp-server-reply - Assign reply status and enhanced code in a separate function.
Stephan Bosch [Sat, 16 Mar 2019 15:24:59 +0000 (16:24 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_get_reply() and use it.
Stephan Bosch [Sat, 16 Mar 2019 13:41:37 +0000 (14:41 +0100)]
lib-smtp: smtp-server-recipient - Add hook for the submission of a DATA/BDAT/BURL command reply.
Stephan Bosch [Sat, 16 Mar 2019 14:26:58 +0000 (15:26 +0100)]
lib-smtp: smtp-server-cmd-data - Call smtp_server_transaction_last_data() earlier for the DATA command.
Makes sure rcpt->cmd is set before replies are being submitted.
Stephan Bosch [Sat, 16 Mar 2019 14:20:22 +0000 (15:20 +0100)]
lib-mstp: smtp-server-recipient - Make smtp_server_recipient_call_hooks() private rather than static.
Stephan Bosch [Sat, 16 Mar 2019 14:14:59 +0000 (15:14 +0100)]
lib-smtp: smtp-server-transaction - Allow calling smtp_server_transaction_last_data() more than once.
Stephan Bosch [Sat, 16 Mar 2019 14:13:03 +0000 (15:13 +0100)]
lib-smtp: smtp-server-transaction - Allow calling smtp_server_transaction_last_data() when all recipients failed.
Stephan Bosch [Sat, 16 Mar 2019 14:03:39 +0000 (15:03 +0100)]
lib-smtp: smtp-server-command - Add hook for the submission of individual replies.
Stephan Bosch [Sat, 16 Mar 2019 13:47:41 +0000 (14:47 +0100)]
lib-smtp: smtp-server-command - Make removal of hook optional for smtp_server_command_call_hooks().
Stephan Bosch [Fri, 15 Mar 2019 01:14:57 +0000 (02:14 +0100)]
submission: Use the new recipient reply wrapper functions.
Stephan Bosch [Thu, 14 Mar 2019 22:31:49 +0000 (23:31 +0100)]
lmtp: lmtp-proxy - Use the new recipient reply wrapper functions.
Stephan Bosch [Thu, 14 Mar 2019 21:49:21 +0000 (22:49 +0100)]
lmtp: lmtp-local - Use the new recipient reply wrapper functions.
Stephan Bosch [Fri, 15 Mar 2019 00:50:01 +0000 (01:50 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply_forward().
This acts as a wrapper around smtp_server_reply_index_forward().
Stephan Bosch [Fri, 15 Mar 2019 00:38:29 +0000 (01:38 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_is_replied().
This is a convenience wrapper around smtp_server_command_is_replied().
Stephan Bosch [Thu, 14 Mar 2019 21:31:09 +0000 (22:31 +0100)]
lib-smtp: smtp-server-recipient - Add smtp_server_recipient_reply().
This is a convenience wrapper around smtp_server_reply_index(). This implicitly
adds the <path> prefix to the reply (when it is not an RCPT success reply).
Stephan Bosch [Tue, 19 Mar 2019 11:37:53 +0000 (12:37 +0100)]
lib-smtp: smtp-server-cmd-rcpt - Add smtp_server_cmd_is_rcpt().
Stephan Bosch [Sat, 16 Mar 2019 01:05:06 +0000 (02:05 +0100)]
lmtp: lmtp-proxy - Remove useless proxy->pending_data_cmd.
Stephan Bosch [Sat, 16 Mar 2019 00:49:17 +0000 (01:49 +0100)]
lmtp: lmtp-proxy - Replace cmd parameter with recipient for lmtp_proxy_handle_reply().
Stephan Bosch [Sat, 16 Mar 2019 00:13:17 +0000 (01:13 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_open_raw_mail().
Stephan Bosch [Sat, 16 Mar 2019 00:12:07 +0000 (01:12 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_rcpt_fail_all().
Stephan Bosch [Sat, 16 Mar 2019 00:07:50 +0000 (01:07 +0100)]
lmtp: lmtp-local - Remove cmd parameter from lmtp_local_rcpt_reply_overquota().
Stephan Bosch [Sat, 16 Mar 2019 13:53:26 +0000 (14:53 +0100)]
lib-smtp: smtp-server-command - Fix segfault occurring in smtp_server_command_get_reply().
Can occur when not all replies are submitted yet.
Sergey Kitov [Mon, 18 Mar 2019 13:27:43 +0000 (15:27 +0200)]
auth: Fix deinitialization of multiple passdbs.
Sergey Kitov [Thu, 14 Mar 2019 13:53:41 +0000 (15:53 +0200)]
lib-oauth2: Add client_id and client_secret to introspect request
Michael Slusarz [Thu, 14 Mar 2019 16:54:30 +0000 (10:54 -0600)]
core: Update README.md to fix broken RFC links
Josef 'Jeff' Sipek [Thu, 7 Mar 2019 17:48:05 +0000 (12:48 -0500)]
stats: default settings can be static
Nothing has a reason to access this structure outside of this source file.
Josef 'Jeff' Sipek [Tue, 5 Mar 2019 13:21:49 +0000 (08:21 -0500)]
stats: no need for void cast of a void return value
client_{reader,writer}_create() return void, therefore there is no return
value to discard.
Stephan Bosch [Wed, 13 Feb 2019 23:21:16 +0000 (00:21 +0100)]
lmtp: Replace i_info() with e_info().
Stephan Bosch [Wed, 13 Feb 2019 23:17:20 +0000 (00:17 +0100)]
lmtp: Replace i_error() with e_error().
Stephan Bosch [Thu, 27 Dec 2018 21:39:20 +0000 (22:39 +0100)]
lmtp: proxy: Use client.event for SMTP client connection.
Stephan Bosch [Thu, 27 Dec 2018 21:37:40 +0000 (22:37 +0100)]
lmtp: local: Use rcpt.event as mail_*user's parent event.
Stephan Bosch [Wed, 13 Feb 2019 23:36:41 +0000 (00:36 +0100)]
lmtp: Add username to recipient event.
Stephan Bosch [Thu, 27 Dec 2018 21:32:01 +0000 (22:32 +0100)]
lmtp: Add client.event.
Stephan Bosch [Sat, 9 Mar 2019 22:33:24 +0000 (23:33 +0100)]
lib-smtp: smtp-submit - Rename event setting to event_parent.