Bug 419448 - MS Exchange sqeeze spaces in HTML messages
Summary: MS Exchange sqeeze spaces in HTML messages
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: 5.12.3
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-31 11:52 UTC by Jerôme Pouiller
Modified: 2020-04-03 11:49 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.14.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerôme Pouiller 2020-03-31 11:52:23 UTC
Microsoft Exchange can change the contents of the mails it receive. One of its "features" is to speeze consecutive spaces in HTML parts. Unfortunately, they also do that inside <p> tags (even if CSS says "white-space: pre-wrap;"). (indeed, the bug come from Ms Exchange, but I didn't find their bug tracker)

Unfortunately, spaces matter in kmail.

To reproduce:
  1. Open a new mail
  2. Check that HTML composing is enabled
  3. Type multiple consecutive spaces, inside sentence or to indent paragraph
  4. Sent this mail to a MS Exchange recipient (maybe the bug depends of 
     Exchange configuration, but don't know how it works)
  5. Check the mail received, the consecutive spaces are dropped

If you send the same mail with Outlook, you will notice that the space are changed into &nbsp;. I think that applying the same rule in kmail would work.
Comment 1 Laurent Montel 2020-04-03 11:49:47 UTC
Git commit 073808251a3f89f9f026bdc0789fe73548a0d7ff by Laurent Montel.
Committed on 03/04/2020 at 11:49.
Pushed by mlaurent into branch 'release/20.04'.

Fix Bug 419448 - MS Exchange sqeeze spaces in HTML messages
FIXED-IN: 5.14.0

M  +1    -1    CMakeLists.txt
M  +17   -0    messagecomposer/src/composer-ng/richtextcomposerng.cpp

https://commits.kde.org/messagelib/073808251a3f89f9f026bdc0789fe73548a0d7ff