Skip to content

[Bug]: E-Mail format broken when replying #649

Description

@proxforge

Description

Hello, I thought this was already a open bug request but I could not find it. Its one of the most important things at least for me, because atm when you reply to a mail the formatting of the quoted text gets totally broken no matter if you are replying via html or via text-only.

Steps to Reproduce

See broken HTML reply

  1. Get a HTML Mail
  2. Have "E-Mail / Verfassen / Nur Klartext" enabled
  3. Reply to that html mail
  4. See the broken formatting in the reply (quoted text)
> <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> <meta name="Generator" content="Microsoft Exchange Server">
> <!-- converted from text -->
> <style>.EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; }</style></head>
> <body>
> <font size="2"><div class="PlainText">Hallo Jonas.<br>
> <br>
> Irgendwie ist bei mir deine Mail untergegangen. <br>

Behaviour on text only mails (non-html)

  1. Get a non-html mail / just plain text only
  2. Have "E-Mail / Verfassen / Nur Klartext" disabled
  3. Reply to txt mail
  4. See the broken formatting in the reply (quoted text)
Hallo Herr Test, das ist eine Test-Email im Text-Format mit ein paar Absätzen: Test. Beste Grüße -- Jonas Sterr Inhaber |ProxForge

So all new lines etc. are broken everything is in one line wihtout any breaks.

So no matter what, you have a broken reply which is kinda annoying for not beeing able to read the mail you are replying to but also bad for the receiver, as it feels very unprofessional and unusual having the prev. quoted text in the reply broken.

What do you need to get this fixed, I will help in any way possible (as far as I can).

Greetings Jonas

Expected Behavior

  • If your replying to a html mail show it correctly format in the reply or reply yourself in html format so formatting is correct

  • If your replying to a text mail, use text format for replying to that mail

  • Do that automatically

Actual Behavior

ON HTML MAIL Reply

  • When your replying to html mail when plain-text-only is activated in settings, quoted html reply text is broken

ON TEXT MAIL REPLY

  • When your replying to text mail when plain-text-only is deactivated (-> means html only?) plain-text-quoted text is broken (no spaces, no new lines etc).

Bulwark Version

1.7.7 (fa31933)

Stalwart Mail Server Version

0.16.11

Browser

Firefox

Operating System

Windows

Screenshots / Screen Recording

No response

Relevant Logs or Error Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions