Accepting request 1044344 from home:stroeder:network

update to 2.3.20 and pigeonhole 0.5.20

OBS-URL: https://build.opensuse.org/request/show/1044344
OBS-URL: https://build.opensuse.org/package/show/server:mail/dovecot23?expand=0&rev=110
This commit is contained in:
Dirk Mueller 2022-12-23 16:13:10 +00:00 committed by Git OBS Bridge
parent d3b7eeff46
commit e26b83b3e6
11 changed files with 99 additions and 125 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:637709a83fb1338c918e5398049f96b7aeb5ae00696794ed1e5a4d4c0ca3f688
size 1954347

View File

@ -1,17 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQJLBAABCgA1FiEEK+dKqz7nVN+5yA0zGKNIru1AnaEFAmKoVigXHGRvdmVjb3Qt
Y2VAZG92ZWNvdC5vcmcACgkQGKNIru1AnaHiaw/+LQz4muvWElz03PBnBaKhbOA7
AwxjrvAO7Nfw58sene/KjwpZIfLgcs6PsX83XTi/a61r2MQDRcIHRkxyI0qZm8Nx
37RwUngHgybPgZteaRJSBrfmuZFRNpfeY4BUd8AkYG3LlXNcOjC8QkntEgLLot+M
iIw3sAX2QroJYZH6yR4WVhHYgktQ8r/ES8h/SY3y5JvGYtKhxNRy+Xdiq2EOMFMi
5MXdLwGb9HwaFG5faX/DolE37yb75XyTb7+NtPLPPSeLm74hAhFZbnuiHtHVU/Le
gM15NiUxT0iRKC9sMvAsbSobS/24+NHprPrOCm+NkHN1SeizcM/Mq2Qbi02vRkoh
STVgvg0DjiBVK1ZiFzrCntscv+hADK5crJW0S/xi+v7LARK7Mn+LK6aP8Snwhcpr
gQ/JSCKrIO24o7MtwSqYXWoCf+mruZ98KgYwt17NJfJfqYFdS+RtmGxpdB+qAA0C
9qM5oo0Pru4ukhwkryCCeYO6oMjoVchN0pVmRoxzl7pTdButpNl9fqaMLoitmzZ8
mKbdNdx2x+f94xIVCyOtvF6BfWU7dQjgELFi3QLbCcwfMLEATzSStfroRhHJdc0v
Gxmtyl7TasE6i/bZ8H0bnDXytLDE59NZBx4GKpo5NFVJ/l91sqNYvQHrNm+Y34Te
ejkZkF3CyyX5qApqLuI=
=R1Bq
-----END PGP SIGNATURE-----

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ae32bd4870ea2c1328ae09ba206e9ec12128046d6afca52fbbc9ef7f75617c98
size 1945126

View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJLBAABCgA1FiEEK+dKqz7nVN+5yA0zGKNIru1AnaEFAmOkCEgXHGRvdmVjb3Qt
Y2VAZG92ZWNvdC5vcmcACgkQGKNIru1AnaElYw/+O7hK3Mg7RBygwlw2EuFBfz0Y
y+SC2l35ESVPHCd1U8zl7q3gKiahP8Y+knVpmXiytZ1xOfjf3fHROCH8nFQbNKu5
U+BeYxuB0b6zJ6+zmptBWr8dkbPZ1gxc8hgbfRM5PMgn+C1uiiJ4YKNDCco1k5h6
dj7JsgXpUILPPxFkJaUcGHG7u6BAtS5M6OxtjgTJM6FwjSzZsl5ZkuB/O1wuojrv
IJykKbE0fi9diz+CKSyiL8ge5FbxwFxei5jCVB3pAkdNnY9r+DBdOmnjmO2lYFkO
4zvkk2uK/zBHnR28DaAwLRziNNdGs/5QnEOGTx8d6XK5irHOdWUZ83H/LdAbhiKs
cNT5o0Wx0nnG0g/j6p2Clrmz8cVDuBtqE+Z2qDhHOc6VtEQXTkR4Z+wWNCJwHtCx
uws5jCHv9HcI/3AcxpzV99NofD/VJEs7C6Bmv1bhV3N9Rs6cq0KdcJYBSRsmTN4k
KBT7nRc4RCRvyiG/nmK6qO9YfGaShfalTXBzCuCcg5KSEC8J20Cv6NZUtXI4xom4
buaw657Ss94YGId1dLzhKp7YJMHCNmtN/tIOlQpSls6D9JLCTSIkKNVg7mx5rf92
R7Oa9ixWp1YFyX0G9agFBr4De43ATRFvRcUq+EVm8DJ3nx7emVFLFWEXzg7GJzVh
znJGpiGYdtsLpLeYHBA=
=0YWo
-----END PGP SIGNATURE-----

View File

@ -1,81 +0,0 @@
From b05564d1575158cb011b4a66a37eccc926fe55db Mon Sep 17 00:00:00 2001
From: Timo Sirainen <timo.sirainen@open-xchange.com>
Date: Fri, 4 Nov 2022 14:01:14 +0200
Subject: [PATCH 1/2] imapc: Fix listing INBOX when INBOX is already the
namespace prefix
This especially caused problems when using dsync with imapc, resulting in
"Remote lost mailbox GUID" errors.
---
src/lib-storage/index/imapc/imapc-list.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/lib-storage/index/imapc/imapc-list.c b/src/lib-storage/index/imapc/imapc-list.c
index a9e03ecf02..d987538df2 100644
--- a/src/lib-storage/index/imapc/imapc-list.c
+++ b/src/lib-storage/index/imapc/imapc-list.c
@@ -754,7 +754,9 @@ imapc_list_iter_next(struct mailbox_list_iterate_context *_ctx)
if (node == NULL)
return mailbox_list_iter_default_next(_ctx);
} while ((node->flags & MAILBOX_MATCHED) == 0 ||
- imapc_list_is_ns_root(ctx, node));
+ (imapc_list_is_ns_root(ctx, node) &&
+ (strcasecmp(vname, "INBOX") != 0 ||
+ (ctx->info.ns->flags & NAMESPACE_FLAG_INBOX_ANY) == 0)));
if (ctx->info.ns->prefix_len > 0 &&
strcasecmp(vname, "INBOX") != 0 &&
--
2.38.1
From 8fb6b9e1b847e6a0dc4f73d5d8cfb178830a282e Mon Sep 17 00:00:00 2001
From: Timo Sirainen <timo.sirainen@open-xchange.com>
Date: Thu, 3 Nov 2022 17:40:28 +0200
Subject: [PATCH 2/2] dsync: Skip autocreated mailboxes that haven't been
created yet
---
src/doveadm/dsync/dsync-mailbox-tree-fill.c | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/src/doveadm/dsync/dsync-mailbox-tree-fill.c b/src/doveadm/dsync/dsync-mailbox-tree-fill.c
index c523e6bdc5..17c1eea0e5 100644
--- a/src/doveadm/dsync/dsync-mailbox-tree-fill.c
+++ b/src/doveadm/dsync/dsync-mailbox-tree-fill.c
@@ -79,6 +79,7 @@ static int dsync_mailbox_tree_add(struct dsync_mailbox_tree *tree,
{
struct dsync_mailbox_node *node;
struct mailbox *box;
+ enum mailbox_existence existence;
struct mailbox_metadata metadata;
struct mailbox_status status;
const char *errstr;
@@ -94,8 +95,23 @@ static int dsync_mailbox_tree_add(struct dsync_mailbox_tree *tree,
/* get GUID and UIDVALIDITY for selectable mailbox */
box = mailbox_alloc(info->ns->list, info->vname, MAILBOX_FLAG_READONLY);
- if (dsync_mailbox_tree_get_selectable(box, &metadata, &status) < 0) {
+ ret = mailbox_exists(box, FALSE, &existence);
+ if (ret == 0 && existence != MAILBOX_EXISTENCE_SELECT) {
+ /* autocreated mailbox doesn't exist yet */
+ mailbox_free(&box);
+ if (existence == MAILBOX_EXISTENCE_NOSELECT) {
+ return !guid_128_is_empty(box_guid) ? 0 :
+ dsync_mailbox_tree_add_exists_node(
+ tree, info, &node, error_r);
+ } else {
+ return 0;
+ }
+ }
+ if (ret == 0)
+ ret = dsync_mailbox_tree_get_selectable(box, &metadata, &status);
+ if (ret < 0) {
errstr = mailbox_get_last_internal_error(box, &error);
+ ret = 0;
switch (error) {
case MAIL_ERROR_NOTFOUND:
/* mailbox was just deleted? */
--
2.38.1

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db5abcd87d7309659ea6b45b2cb6ee9c5f97486b2b719a5dd05a759e1f6a5c51
size 7790851

View File

@ -1,17 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQJLBAABCgA1FiEEK+dKqz7nVN+5yA0zGKNIru1AnaEFAmKoVhcXHGRvdmVjb3Qt
Y2VAZG92ZWNvdC5vcmcACgkQGKNIru1AnaErcw//UJz2tJADFa37CZgbYzVLjfqu
wFtiGk38j4F2UMZUyVB6EMYzG08u/bSSQOPtK/7upgnUF/a4k8u1NPQ2kvkTauQJ
9kD6TKt/ojaMxlySfTNAKxyVgfwm7BPpzj16++g9FY4m9E001K4k1o7bDfLI0eQJ
eXGoHCBwZmAvHFdpDbxzua6T83pvBCrgxh827CCSUBa1xZd18+9dWGaSYKW0HF81
BXRi4GB0HQsCffkhn4S7nm50JbEvBp20hmpgCNy761RBpkSQkTGxTs3K/u5zEhLn
Upf+boeg9WEazxx4bKOHBQU4HtjnQlbTmAki4K/jy6bF4TSa4L8o0kh1Squ0mWsv
FkFerw4UVI4o7tltHc9G36HATfan9DBOVDQTNB7PgkwP+9zysb7M1CHdKOXu6p4h
SYA6ExdvOcpc0MdfFr6GxsIo7jeVUeUFoYe8O8hIvT5F1T6iwz9zc7sauO67W8+K
EVbXr5oxbn5ETg6fGeHMzSB9aqwTlmNIFB3ew+Vcuj9mZ+wQo+CcBWmvojett7qV
VRTzTAFzChOC4B+QQ7f5nkVTHLoLm+ky7qSilz7V4d+3mLYMKwMtaHLH0T0dYRT1
ZX3q7NnIS+bewUmfI94N6VWitDLYh0wcWReAaA9i5XqCz5opxTFOQqWRTeOOcYiG
brwMruo7NaVWqCYiuDg=
=jIeY
-----END PGP SIGNATURE-----

3
dovecot-2.3.20.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:caa832eb968148abdf35ee9d0f534b779fa732c0ce4a913d9ab8c3469b218552
size 7805735

17
dovecot-2.3.20.tar.gz.sig Normal file
View File

@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJLBAABCgA1FiEEK+dKqz7nVN+5yA0zGKNIru1AnaEFAmOkCDwXHGRvdmVjb3Qt
Y2VAZG92ZWNvdC5vcmcACgkQGKNIru1AnaGPwxAAwmyTGtrDSyJzzjAuDP0lQVfo
v6MjLxmsS2LqrnA6coGpVszc5TsCMOhkk2TYpbIPk1G6Mc5ToW9ZrWKXZcyrk9hv
b2VSM04JF1eF+2D9jc4r0eCbrYVx4x0/UVvlZytsaq9b3Gw59NExS4BjOSzByOBD
QF3lUdlS1ZGb0iI6dJwlWcmIKJ9RsT2P4GodfkXZf68gi82yMEEtaYxeQzpQqarH
dZdl5UGWMUB+eP3VzeqtoPSRmFhLOu4hhKKBOSTK7JX8hNnzWyV0YQ89ZBksJsRb
PK5ou16tiWFzmnQ43Sy2W6FLfTog36YXVfvJaCc2zOzrcxD2oykLYealjEfBSUeg
FHaSIP8XCnV42PT3MQO931Zt7HphD3VSGslb3p+/fFmpZUtOKjVaNROlD1hvggr7
A88YBZE6zffu1Xx9aNBTNu/NV3jFuQdfqpBT/jxwV/hEWaHgBjOwedGsNtiNE3bl
FdPc5JuJyOMAzXlAjy6IStL9LCQJpjbXOOgbDLo0KiZUh+K2faFOVcJNmAkhmWSd
jYq28HOmHfo7MIoa4CdmBQHKtKSR/OVaOIOOzVSUVCnlTuXm8qQQG5xjjToFN99U
TFbJiPvm+/HT6QyeNHH4mO6dUTZ9YdBuyj30P0Rffq0E4fZgz3ZBezwWSYj4bwXx
T63m4IEsocH8pQRKpJ0=
=aSIL
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,59 @@
-------------------------------------------------------------------
Thu Dec 22 20:47:52 UTC 2022 - Michael Ströder <michael@stroeder.com>
- removed obsolete dovecot-2.3.19-fix-doveadm-sync-special-folders.patch
- update to 2.3.20 and pigeonhole 0.5.20
+ Add dsync_features=no-header-hashes. When this setting is enabled and
one dsync side doesn't support mail GUIDs (i.e. imapc), there is no
fallback to using header hashes. Instead, dsync assumes that all mails
with identical IMAP UIDs contains the same mail contents. This can
significantly improve dsync performance with some IMAP servers that
don't support caching Date/Message-ID headers.
+ lua: HTTP client has more settings now, see
https://doc.dovecot.org/admin_manual/lua/#dovecot.http.client
+ replicator: "doveadm replicator status" command now outputs when the
next sync is expected for the user.
- LAYOUT=index: duplicate GUIDs were not cleaned out. Also the list
recovery was not optimal.
- auth: Assert crash would occur when iterating multiple userdb
backends.
- director: Logging into director using master user with
auth_master_user_separator character redirected user to a wrong
backend, unless master_user_separator setting was also set to the same
value. Merged these into auth_master_user_separator.
- dsync: Couldn't always fix folder GUID conflicts automatically with
Maildir format. This resulted in replication repeatedly failing
with "Remote lost mailbox GUID".
- dsync: Failed to migrate INBOX when using namespace prefix=INBOX/,
resulting in "Remote lost mailbox GUID" errors.
- dsync: INBOX was created too early with namespace prefix=INBOX/,
resulting a GUID conflict. This may have been resolved automatically,
but not always.
- dsync: v2.3.18 regression: Wrong imapc password with dsync caused
Panic: file lib-event.c: line 506 (event_pop_global):
assertion failed: (event == current_global_event)
- imapc: Requesting STATUS for a mailbox with imapc and INDEXPVT
configured did not return correct (private) unseen counts.
- lib-dict: Process would crash when committing data to redis without
dict proxy.
- lib-mail: Corrupted cached BODYSTRUCTURE caused panic during FETCH.
Fixes: Panic: file message-part-data.c: line 579 (message_part_is_attachment):
assertion failed: (data != NULL). v2.3.13 regression.
- lib-storage: mail_attribute_dict with dict-sql failed when it tried to
lookup empty dict keys.
- lib: ioloop-kqueue was missing include breaking some BSD builds.
- lua-http: Dovecot Lua HTTP client could not resolve DNS names in mail
processes, because it expected "dns-client" socket to exist in the
current directory.
- oauth2: Using %{oauth2:name} variables could cause useless
introspections.
- pop3: Sending POP3 command with ':' character caused an assert-crash.
v2.3.18 regression.
- replicator: Replication queue had various issues, potentially causing
replication requests to become stuck.
- stats: Invalid Prometheus label names were created with specific
histogram group_by configurations. Prometheus rejected these labels.
-------------------------------------------------------------------
Tue Dec 20 22:30:25 UTC 2022 - Thiago Macieira <thiago@kde.org>

View File

@ -19,11 +19,11 @@
%global _lto_cflags %{nil}
Name: dovecot23
Version: 2.3.19.1
Version: 2.3.20
Release: 0
%define pkg_name dovecot
%define dovecot_version 2.3.19.1
%define dovecot_pigeonhole_version 0.5.19
%define dovecot_version 2.3.20
%define dovecot_pigeonhole_version 0.5.20
%define dovecot_branch 2.3
%define dovecot_pigeonhole_source_dir %{pkg_name}-%{dovecot_branch}-pigeonhole-%{dovecot_pigeonhole_version}
%define dovecot_pigeonhole_docdir %{_docdir}/%{pkg_name}/dovecot-pigeonhole
@ -160,7 +160,6 @@ Source11: https://pigeonhole.dovecot.org/releases/%{dovecot_branch}/%{dove
Source12: dovecot23.keyring
Patch: dovecot-2.3.0-dont_use_etc_ssl_certs.patch
Patch1: dovecot-2.3.0-better_ssl_defaults.patch
Patch2: dovecot-2.3.19-fix-doveadm-sync-special-folders.patch
Summary: IMAP and POP3 Server Written Primarily with Security in Mind
License: BSD-3-Clause AND LGPL-2.1-or-later AND MIT
Group: Productivity/Networking/Email/Servers