improved formatting of combined messages

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-21 22:50:47 +01:00
parent df39e6a57f
commit c1beda1669

View File

@@ -40,12 +40,11 @@ public class CombinedMessage {
break; break;
case 1: case 1:
if (!sender.equals(message.sender())) sender = fallbackSender; if (!sender.equals(message.sender())) sender = fallbackSender;
combinedBody.insert(0,format("# {0}:\n# {1}:\n\n",sender,subject)); // insert sender and subject of first message right before the body of the first message combinedBody.insert(0,format("# {0} / {1}:\n\n",sender,subject)); // insert sender and subject of first message right before the body of the first message
combinedSubject = subjectForCombinedMessage; combinedSubject = subjectForCombinedMessage;
// no break here, we need to append the subject and content // no break here, we need to append the subject and content
default: default:
combinedBody.append("\n\n# ").append(message.sender()).append(":\n"); combinedBody.append("\n-----\n# ").append(message.sender()).append(" / ").append(subject).append(":\n\n");
combinedBody.append("# ").append(subject).append(":\n\n");
combinedBody.append(body); combinedBody.append(body);
} }
if (message.attachments() != null) attachments.addAll(message.attachments()); if (message.attachments() != null) attachments.addAll(message.attachments());