nextcloud / nextcloud/mail

Quoting breaks when using `--` in a quoted email

Open
#6,069 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop bug feature:editor nextcloud-gmbh
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Steps to reproduce
  1. Send an email with the content
> quote
> another quote
> -- 
> the old signature

Bonjour

This text should not be hidden. I'm just replying at the bottom.

The email will be displayed so:

image

Expected behavior

The quote is surrounding the whole block and displays the replied text as a distinct block

Actual behavior

The quote is broken apart in two blocks and the reply is included in the last quote

Mail app version

1.11.6

Mailserver or service

no info

Operating system

no info

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database

MySQL

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing issue #6069 with the quoted email content and compare the rendered quote blocks with the expected behavior. Trace the email quoting or parsing entry point responsible for splitting the quoted block. Done means the entire quoted section remains together and the replied text is displayed as a distinct block.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.