smarter mailinglist's square bracket prefixes (#3452)

some mailinglists have their name in square brackets prepended to the subject.

we pick up that name and remove the square brackets,
as these do not look good as the chat name in delta chat.

if a mailing list has a sequence of square brackets, we use all of them
(this seems to be okayish, at least i do not know of any complains).

however, the removal of square brackets was not nice for sequences,
resulting in `ml topic] [sub topic`.

this pr removes the square brackets only for the first name
and leave the other ones as is.
This commit is contained in:
bjoern
2022-06-28 10:28:39 +02:00
committed by GitHub
parent 14421c6e00
commit 6d4fecb274
2 changed files with 30 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
- switch from `async-std` to `tokio` as the async runtime #3449
### Fixes
- mailing list: remove square-brackets only for first name #3452
## 1.87.0