]>
git.ipfire.org Git - thirdparty/dovecot/core.git/log
Aki Tuomi [Tue, 21 Apr 2020 07:18:54 +0000 (10:18 +0300)]
Released v2.3.10.1
Aki Tuomi [Tue, 21 Apr 2020 07:18:44 +0000 (10:18 +0300)]
NEWS: Add news for 2.3.10.1
Stephan Bosch [Fri, 20 Mar 2020 12:38:41 +0000 (13:38 +0100)]
lmtp: lmtp-commands - Explicity prohibit empty RCPT path.
The empty path <""> will yield an empty username.
Stephan Bosch [Fri, 20 Mar 2020 12:37:04 +0000 (13:37 +0100)]
lib-smtp: smtp-address - Only produce a <> address in smtp_address_clone() when that is the input.
It also produced an effective null address when the localpart was empty.
Stephan Bosch [Fri, 20 Mar 2020 12:35:19 +0000 (13:35 +0100)]
lib-smtp: smtp-address - Don't recognize an address with empty localpart as <>.
Depending on context, the addresses <""@domain.tld> and <""> are potentially
valid non-null addresses.
Stephan Bosch [Sun, 22 Mar 2020 17:14:44 +0000 (18:14 +0100)]
lib-smtp: smtp-address - Don't return NULL from smtp_address_clone*() unless the input is NULL.
Stephan Bosch [Tue, 24 Mar 2020 11:59:15 +0000 (12:59 +0100)]
lib-smtp: test-smtp-server-errors - Add tests for large series of empty and bad commands.
Stephan Bosch [Tue, 24 Mar 2020 11:25:03 +0000 (12:25 +0100)]
lib-smtp: smtp-server-connection - Hold a command reference while executing a command.
This fixes a use-after-free problem at the end of
smtp_server_connection_handle_command().
Stephan Bosch [Tue, 24 Mar 2020 11:23:32 +0000 (12:23 +0100)]
lib-smtp: smtp-server-command - Perform initial command execution in separate function.
Stephan Bosch [Tue, 17 Mar 2020 10:58:52 +0000 (11:58 +0100)]
lib-smtp: smtp-server-command - Assign cmd->reg immediately.
Stephan Bosch [Tue, 24 Mar 2020 11:13:43 +0000 (12:13 +0100)]
lib-smtp: smtp-server-command - Guarantee that non-destroy hooks aren't called for an ended command.
Stephan Bosch [Tue, 24 Mar 2020 21:33:45 +0000 (22:33 +0100)]
lib-smtp: test-smtp-server-errors - Add tests for VRFY and NOOP commands with invalid parameters.
Stephan Bosch [Tue, 24 Mar 2020 21:24:20 +0000 (22:24 +0100)]
lib-smtp: Add tests for smtp_string_parse() and smtp_string_write().
Stephan Bosch [Tue, 24 Mar 2020 21:42:15 +0000 (22:42 +0100)]
lib-smtp: smtp-syntax - Return 0 for smtp_string_parse() with empty input.
This is what the current users of this function actually expect.
Stephan Bosch [Tue, 24 Mar 2020 20:14:34 +0000 (21:14 +0100)]
lib-smtp: smtp-syntax - Do not allow NULL return parameters for smtp_ehlo_line_parse().
Stephan Bosch [Tue, 24 Mar 2020 20:11:01 +0000 (21:11 +0100)]
lib-smtp: smtp-syntax - Do not allow NULL return parameters for smtp_xtext_parse().
Stephan Bosch [Tue, 24 Mar 2020 19:57:03 +0000 (20:57 +0100)]
lib-smtp: smtp-syntax - Do not allow NULL return parameters for smtp_string_parse().
Stephan Bosch [Tue, 24 Mar 2020 20:05:17 +0000 (21:05 +0100)]
lib-smtp: smtp-server-cmd-vrfy - Restructure parameter parsing.
Aki Tuomi [Wed, 4 Mar 2020 07:57:08 +0000 (09:57 +0200)]
Released 2.3.10
Aki Tuomi [Thu, 13 Feb 2020 10:51:56 +0000 (12:51 +0200)]
NEWS: Add news for 2.3.10
Aki Tuomi [Thu, 13 Feb 2020 10:54:45 +0000 (12:54 +0200)]
NEWS: Fix release date for 2.3.9.3
Timo Sirainen [Wed, 4 Mar 2020 18:39:21 +0000 (20:39 +0200)]
dict-client: Fix panic if iteration is deinitialized before it has finished
Fixes:
Panic: BUG: No IOs or timeouts set. Not waiting for infinity.
Timo Sirainen [Wed, 4 Mar 2020 13:40:46 +0000 (15:40 +0200)]
lib-fs: Add fs_lookup_loaded_metadata()
Timo Sirainen [Wed, 4 Mar 2020 13:39:28 +0000 (15:39 +0200)]
lib-fs: Add flags parameter to fs_vfuncs.get_metadata()
Timo Sirainen [Wed, 4 Mar 2020 13:11:12 +0000 (15:11 +0200)]
lib-fs: Add fs_file_set_flags()
Timo Sirainen [Tue, 11 Feb 2020 12:41:05 +0000 (14:41 +0200)]
example-config: Warn about ssl_client_ca_file memory usage
Timo Sirainen [Thu, 27 Feb 2020 14:54:33 +0000 (16:54 +0200)]
dict-redis: Fix hangs caused by previous dict_wait() addition
Timo Sirainen [Tue, 25 Feb 2020 15:33:30 +0000 (17:33 +0200)]
lib-mail: message-snippet - Quoted text could have been wrongly added to the snippet
This happened when the mail was large enough that the parsing used multiple
blocks. Parsing the following blocks were adding text in quoted state to
the non-quoted snippet string.
Timo Sirainen [Tue, 25 Feb 2020 12:34:18 +0000 (14:34 +0200)]
lib-mail: message-snippet - Don't include trailing whitespace in snippet
Timo Sirainen [Tue, 25 Feb 2020 12:33:31 +0000 (14:33 +0200)]
lib-mail: message-snippet - Count '>' in quoted snippet towards max_snippet_chars
Timo Sirainen [Tue, 25 Feb 2020 12:31:43 +0000 (14:31 +0200)]
lib-mail: message-snippet - Fix size limits for quoted snippets
If the input only had quoted text, the snippet size wasn't limited to
max_snippet_chars as long as there was any whitespace in the quoted text.
Martti Rannanjärvi [Wed, 19 Feb 2020 09:39:36 +0000 (11:39 +0200)]
util: Hide password but not the field name in dovecot-sysreport
Siavash Tavakoli [Tue, 18 Feb 2020 13:24:38 +0000 (15:24 +0200)]
util: dovecot-sysreport: Fix bug in perl existence check
Also use "[[" command to be consistent with rest of the script.
Aki Tuomi [Thu, 23 Jan 2020 18:26:29 +0000 (20:26 +0200)]
NEWS: Add news for 2.3.9.3
Martti Rannanjärvi [Tue, 11 Feb 2020 13:26:35 +0000 (15:26 +0200)]
util: Change interpreter in dovecot-sysreport to /usr/bin/env bash
This is more portable.
Martti Rannanjärvi [Tue, 11 Feb 2020 13:11:46 +0000 (15:11 +0200)]
util: Cleanup whitespace in dovecot-sysreport
Timo Sirainen [Tue, 11 Feb 2020 13:51:47 +0000 (15:51 +0200)]
lib-mail: Improve test-message-decoder unit test
Timo Sirainen [Tue, 11 Feb 2020 13:11:14 +0000 (15:11 +0200)]
lib-mail: message-decoder - Remove unnecessary encoding_buf
Timo Sirainen [Tue, 11 Feb 2020 13:08:22 +0000 (15:08 +0200)]
lib-mail: message-decoder - Fix using the new incremental base64-decoder API
Decoding multiple base64 blocks caused the decoder to produce garbage.
Broken by
afa3db0a6f15e1b1038cb47f0632baa8f23d0f67
Timo Sirainen [Wed, 15 Jan 2020 20:10:08 +0000 (22:10 +0200)]
lib-mail: message_snippet_generate() - Fix potential crash when input ends with '>'
This happens only when the mail was large enough and full enough with
whitespace that message-parser returned multiple blocks before the snippet
was finished.
Broken by
74063ed8219d055489d5233b0c02a59886d2078c
Timo Sirainen [Wed, 15 Jan 2020 19:38:26 +0000 (21:38 +0200)]
lib-mail: test-message-snippet - Test for invalid and truncated UTF-8
Timo Sirainen [Wed, 15 Jan 2020 19:09:34 +0000 (21:09 +0200)]
lib-fts: Add assert to make sure uni_utf8_get_char() returns valid UTF-8
The input to lib-fts is always expected to be valid UTF-8.
Timo Sirainen [Wed, 15 Jan 2020 19:07:05 +0000 (21:07 +0200)]
fts-solr: Add asserts to make sure make sure uni_utf8_get_char_n() returns valid UTF-8
FTS input is always valid UTF-8. This just makes it a bit clearer.
Stephan Bosch [Tue, 14 Jan 2020 09:54:34 +0000 (10:54 +0100)]
lib-smtp: test-smtp-command-parser - Add tests for incomplete UTF-8 characters.
Stephan Bosch [Tue, 14 Jan 2020 09:49:16 +0000 (10:49 +0100)]
lib-smtp: smtp-command-parser - Fix infinite loop occurring when command stream ends in UTF-8 character.
Broken by
8f08f1944be438a2422b604c08e5060b5c7bd72f .
Uli Martens [Thu, 30 Jan 2020 15:34:35 +0000 (16:34 +0100)]
man: doveadm-sync - Fix message UID in example
Aki Tuomi [Fri, 7 Feb 2020 09:42:37 +0000 (11:42 +0200)]
m4: dovecot.m4 - It's Schridde, not Schridded
Mistakenly changed in
a50212d6827
Aki Tuomi [Fri, 17 Jan 2020 07:42:51 +0000 (09:42 +0200)]
dovecot.m4: Bump serial
Aki Tuomi [Fri, 17 Jan 2020 07:42:07 +0000 (09:42 +0200)]
dovecot.m4: Add --with-retpoline
Makes retpoline optional.
Aki Tuomi [Fri, 17 Jan 2020 07:35:44 +0000 (09:35 +0200)]
dovecot.m4: Split retpoline check into parts
Josef 'Jeff' Sipek [Tue, 4 Feb 2020 17:32:59 +0000 (12:32 -0500)]
imap: expunge: Expunge \Deleted mails in batches of 1000
Josef 'Jeff' Sipek [Tue, 4 Feb 2020 17:10:45 +0000 (12:10 -0500)]
imap: expunge: Collect all \Deleted mails' seqs and then expunge them
This makes the following commit much more understandable.
Timo Sirainen [Fri, 24 Jan 2020 09:43:56 +0000 (11:43 +0200)]
imap: move: Send untagged OK/COPYUID also when the move succeeded partially
If at least one transactions was successfully committed, something was
moved. Even if another transaction failed later on and the MOVE command
fails with NO, send the untagged OK/COPYUID which describes which mails
were successfully moved.
Timo Sirainen [Fri, 24 Jan 2020 09:43:20 +0000 (11:43 +0200)]
imap: copy/move: Move code to cmd_move_send_untagged()
Timo Sirainen [Mon, 16 Dec 2019 12:08:58 +0000 (14:08 +0200)]
imap: copy/move: Fix error handling when source transaction/search fails
Previously the destination storage was used for getting the error. If the
source and destination storages were different, this resulted in getting a
wrong error.
Timo Sirainen [Mon, 16 Dec 2019 11:51:50 +0000 (13:51 +0200)]
imap: Add client_send_error()
Timo Sirainen [Mon, 16 Dec 2019 09:38:04 +0000 (11:38 +0200)]
imap: move: Commit transactions every 1000 mails
Timo Sirainen [Tue, 4 Feb 2020 15:20:15 +0000 (17:20 +0200)]
imap: Add imap_search_seqset_iter_*() API for batched iteration of a seqset
Timo Sirainen [Thu, 12 Dec 2019 14:36:13 +0000 (16:36 +0200)]
imap: copy/move: Handle transaction commit changes within fetch_and_copy()
This prepares to support multiple destination transactions.
Timo Sirainen [Thu, 12 Dec 2019 14:35:46 +0000 (16:35 +0200)]
imap: copy/move: Move copy_update_trashed() earlier
Timo Sirainen [Thu, 12 Dec 2019 14:25:30 +0000 (16:25 +0200)]
imap: copy/move: Refactor to use struct cmd_copy_context
Timo Sirainen [Thu, 23 Jan 2020 16:31:01 +0000 (18:31 +0200)]
lib: Add seq_range_array_merge_n()
Josef 'Jeff' Sipek [Mon, 13 Jan 2020 13:34:44 +0000 (08:34 -0500)]
lib-storage: Autoexpunge mails in batches of 1000
Josef 'Jeff' Sipek [Tue, 14 Jan 2020 22:27:37 +0000 (17:27 -0500)]
lib-storage: Move mail autoexpunge loop into a helper function
This makes the next commit easier.
Stephan Bosch [Mon, 27 Aug 2018 21:39:02 +0000 (23:39 +0200)]
imap: Implement the STATUS=SIZE capability.
Coexists with the existing proprietary X-SIZE status, which is to be deprecated
in the future.
Stephan Bosch [Mon, 27 Aug 2018 21:28:58 +0000 (23:28 +0200)]
imap: Restructure handling of the STATUS response so that it uses its own flags for the items.
Before, it used mailbox status and metadata item flags for this purpose.
This is needed to allow the existing X-SIZE and the newly standardized SIZE flag to coexist.
Timo Sirainen [Mon, 20 Jan 2020 14:03:01 +0000 (16:03 +0200)]
dict-redis: Add missing dict_wait()
This caused various problems when used in places where dict_wait() was
required, e.g. quota or quota_clone plugins.
Aki Tuomi [Mon, 3 Feb 2020 10:15:49 +0000 (12:15 +0200)]
plugins: push-notification: Include mailbox field
Aki Tuomi [Mon, 3 Feb 2020 08:59:45 +0000 (10:59 +0200)]
plugins: push-notification: Only emit event if something was triggered
Otherwise events would be sent from non-push transactions, such
as mail searches.
Aki Tuomi [Sun, 2 Feb 2020 18:40:32 +0000 (20:40 +0200)]
push-notification: Don't send event on failure
If transaction was rolled back, don't send event.
Aki Tuomi [Sun, 2 Feb 2020 18:09:03 +0000 (20:09 +0200)]
push-notification: Use transaction event in HTTP request
Stephan Bosch [Sun, 1 Dec 2019 10:32:24 +0000 (11:32 +0100)]
plugins: push-notification: Reformat push-notification-txn-msg.h.
Stephan Bosch [Sun, 1 Dec 2019 10:32:17 +0000 (11:32 +0100)]
plugins: push-notification: Reformat push-notification-txn-msg.c.
Stephan Bosch [Sun, 1 Dec 2019 10:32:09 +0000 (11:32 +0100)]
plugins: push-notification: Reformat push-notification-txn-mbox.h.
Stephan Bosch [Sun, 1 Dec 2019 10:32:04 +0000 (11:32 +0100)]
plugins: push-notification: Reformat push-notification-txn-mbox.c.
Stephan Bosch [Sun, 1 Dec 2019 10:31:48 +0000 (11:31 +0100)]
plugins: push-notification: Reformat push-notification-triggers.h.
Stephan Bosch [Sun, 1 Dec 2019 10:31:44 +0000 (11:31 +0100)]
plugins: push-notification: Reformat push-notification-triggers.c.
Stephan Bosch [Sun, 1 Dec 2019 10:31:25 +0000 (11:31 +0100)]
plugins: push-notification: Reformat push-notification-plugin.c.
Stephan Bosch [Sun, 1 Dec 2019 10:30:32 +0000 (11:30 +0100)]
plugins: push-notification: Reformat push-notification-events.h.
Stephan Bosch [Sun, 1 Dec 2019 10:30:27 +0000 (11:30 +0100)]
plugins: push-notification: Reformat push-notification-events.c.
Stephan Bosch [Sun, 1 Dec 2019 10:30:14 +0000 (11:30 +0100)]
plugins: push-notification: Reformat push-notification-events-rfc5423.h.
Stephan Bosch [Sun, 1 Dec 2019 10:30:09 +0000 (11:30 +0100)]
plugins: push-notification: Reformat push-notification-events-rfc5423.c.
Stephan Bosch [Sun, 1 Dec 2019 10:29:44 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messagetrash.h.
Stephan Bosch [Sun, 1 Dec 2019 10:29:41 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messagetrash.c.
Stephan Bosch [Sun, 1 Dec 2019 10:29:28 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messageread.h.
Stephan Bosch [Sun, 1 Dec 2019 10:29:23 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messageread.c.
Stephan Bosch [Sun, 1 Dec 2019 10:29:10 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messagenew.h.
Stephan Bosch [Sun, 1 Dec 2019 10:29:06 +0000 (11:29 +0100)]
plugins: push-notification: Reformat push-notification-event-messagenew.c.
Stephan Bosch [Sun, 1 Dec 2019 10:28:46 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-messageexpunge.h.
Stephan Bosch [Sun, 1 Dec 2019 10:28:42 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-messageexpunge.c.
Stephan Bosch [Sun, 1 Dec 2019 10:28:27 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-messageappend.h.
Stephan Bosch [Sun, 1 Dec 2019 10:28:22 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-messageappend.c.
Stephan Bosch [Sun, 1 Dec 2019 10:28:07 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-message-common.h.
Stephan Bosch [Sun, 1 Dec 2019 10:28:02 +0000 (11:28 +0100)]
plugins: push-notification: Reformat push-notification-event-message-common.c.
Stephan Bosch [Sun, 1 Dec 2019 10:27:35 +0000 (11:27 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxunsubscribe.h.
Stephan Bosch [Sun, 1 Dec 2019 10:27:29 +0000 (11:27 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxunsubscribe.c.
Stephan Bosch [Sun, 1 Dec 2019 10:27:17 +0000 (11:27 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxsubscribe.h.
Stephan Bosch [Sun, 1 Dec 2019 10:27:05 +0000 (11:27 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxsubscribe.c.
Stephan Bosch [Sun, 1 Dec 2019 10:26:41 +0000 (11:26 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxrename.h.
Stephan Bosch [Sun, 1 Dec 2019 10:26:35 +0000 (11:26 +0100)]
plugins: push-notification: Reformat push-notification-event-mailboxrename.c.