Gentoo Archives: gentoo-dev

From: Matthew Smith <matthew@g.o>
To: gentoo-dev@l.g.o
Cc: pr@g.o
Subject: [gentoo-dev] [PATCH news v2] 2022-06-26-mu-corruption: new entry
Date: Mon, 27 Jun 2022 06:23:25
Message-Id: 038c3982-6556-5970-cb4d-c1a7bcdd03ea@gentoo.org
1 Add a news item explaining a maildir corruption bug in the mu/mu4e
2 mail reader.
3
4 v2, following feedback from mgorny: Added a short explanation on what
5 the issue actually is and how it is fixed. Left the sed incantation
6 as-is because it comes from upstream and I do not want to break it.
7 ---
8 .../2022-06-06-mu-corruption.en.txt | 22 +++++++++++++++++++
9 1 file changed, 22 insertions(+)
10 create mode 100644
11 2022-06-26-mu-corruption/2022-06-06-mu-corruption.en.txt
12
13 diff --git a/2022-06-26-mu-corruption/2022-06-06-mu-corruption.en.txt
14 b/2022-06-26-mu-corruption/2022-06-06-mu-corruption.en.txt
15 new file mode 100644
16 index 0000000..2108c99
17 --- /dev/null
18 +++ b/2022-06-26-mu-corruption/2022-06-06-mu-corruption.en.txt
19 @@ -0,0 +1,22 @@
20 +Title: Mu 1.7.23 Causing Maildir Corruption
21 +Author: Matthew Smith <matthew@g.o>
22 +Posted: 2022-06-26
23 +Revision: 1
24 +News-Item-Format: 2.0
25 +Display-If-Installed: net-mail/mu-1.7.23
26 +
27 +Development versions of mu between 1.7.18 and 1.7.25 have a bug causing
28 +mail file names to sometimes get mangled after moving messages between
29 +directories. Symptoms include unread messages never being marked as
30 +read.
31 +
32 +Affected messages have the ':2,' flag appended multiple times. Using the
33 +following commands, users can remove the extra flags.
34 +
35 + find ~/Maildir -name '*:2,*:*' |
36 + sed "s/\(\([^:]*\)\(:2,\)\{1,\}\(:2,.*$\)\)/mv '\0' '\2\4'/" \
37 + > rename.sh
38 + # review rename.sh. empty file indicates that you are unaffected
39 + sh rename.sh
40 +
41 +Upstream issue: https://github.com/djcb/mu/issues/2268
42 --
43 2.35.3

Replies

Subject Author
Re: [gentoo-dev] [PATCH news v2] 2022-06-26-mu-corruption: new entry "Michal Prívozník" <mprivozn@××××××.com>