Skip to content

Commit 7f05914

Browse files
committed
docs: Comment why spaced en dash is used to separate message Subject from text
1 parent c9b3da4 commit 7f05914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mimeparser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,10 @@ impl MimeMessage {
854854
.iter_mut()
855855
.find(|part| !part.msg.is_empty() && !part.is_reaction);
856856
if let Some(part) = part_with_text {
857+
// Message bubbles are small, so we use en dash to save space. In some
858+
// languages there may be em dashes in the message text added by the author,
859+
// they may look stronger than Subject separation, this is a known thing.
860+
// Anyway, classic email support isn't a priority as of 2025.
857861
part.msg = format!("{} – {}", subject, part.msg);
858862
}
859863
}

0 commit comments

Comments
 (0)