Extra <div> tags added when using "Edit as New" on HTML emails

Author: gala514Created Jul 3, 2025Updated Sep 3, 2026
LabelsbugC: Mail composing

Prerequisites

  • I have searched for duplicate or closed issues
  • I can recreate the issue with all plugins disabled

Describe the issue

When composing new HTML emails using the "Edit as New" function in RoundCube, extra

tags are added to the message body each time the email is re-edited and re-sent.

Steps to Reproduce:

  1. Go to the "Sent" folder and select an HTML email.
  2. From the "More" menu, choose "Edit as New".
  3. Edit the message and send it.
  4. Repeat steps 1–3 several times with the newly sent email.

Actual Result: Each time the message is re-edited and sent, additional nested

tags are appended to the email content. This results in unnecessary HTML nesting in the message source.

Expected Result: The content structure should remain clean and unchanged between re-edits. No additional

tags should be introduced.

Notes: This issue only occurs with HTML format emails.

It does not occur if:

  • A new email is created and the content is copied in manually.
  • The email is edited using "Edit as New" but in Plain Text mode. Attachments: Two .txt files with HTML source from emails sent on June 25 and December 24. The December version shows significantly fewer
    tags, indicating the buildup over repeated edits.

Image Image HTML- june 2025.txt HTML-december 2024.txt Image

What browser(s) are you seeing the problem on?

Chrome

What version of PHP are you using?

8.3

What version of Roundcube are you using?

1.6.11

JavaScript errors

No response

PHP errors

No response