receive_imf: trim() "Chat-Group-Name{,-Changed}:" headers content (#3650)

It's a w/a for "Space added before long group names after MIME serialization/deserialization"
issue. DC itself never creates group names with leading/trailing whitespace, so it can be safely
removed. On the sender side there's no trim() because group names anyway go through
improve_single_line_input(). And I believe we should send the exact name we have in our db. Also
there's no check for leading/trailing whitespace because there may be existing user databases with
group names having such whitespaces.
This commit is contained in:
iequidoo
2022-11-22 16:27:34 -03:00
committed by iequidoo
parent 6f0985dcaa
commit 9783da5d8e
3 changed files with 35 additions and 2 deletions

View File

@@ -25,6 +25,7 @@
- fix detection of "All mail", "Trash", "Junk" etc folders. #3760
- fetch messages sequentially to fix reactions on partially downloaded messages #3688
- Fix a bug where one malformed message blocked receiving any further messages #3769
- strip leading/trailing whitespace from "Chat-Group-Name{,-Changed}:" headers content #3650
## 1.101.0