Skip to content

Commit

Permalink
Merge pull request #1304 from tkasch/reply-fix
Browse files Browse the repository at this point in the history
Fix threading view in Thunderbird (others?)
  • Loading branch information
the-djmaze committed Nov 14, 2023
2 parents 85b4e23 + cdd74c8 commit 442c4f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/View/Popup/Compose.js
Expand Up @@ -864,7 +864,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.prepareMessageAttachments(oLastMessage, options.mode);
this.aDraftInfo = ['reply', oLastMessage.uid, oLastMessage.folder];
this.sInReplyTo = oLastMessage.messageId;
this.sReferences = (oLastMessage.messageId + ' ' + oLastMessage.references).trim();
this.sReferences = (oLastMessage.references + ' ' + oLastMessage.messageId).trim();
// OpenPGP “Transferable Public Key”
// oLastMessage.autocrypt?.keydata
break;
Expand All @@ -875,7 +875,7 @@ export class ComposePopupView extends AbstractViewPopup {
this.prepareMessageAttachments(oLastMessage, options.mode);
this.aDraftInfo = ['forward', oLastMessage.uid, oLastMessage.folder];
this.sInReplyTo = oLastMessage.messageId;
this.sReferences = (oLastMessage.messageId + ' ' + oLastMessage.references).trim();
this.sReferences = (oLastMessage.references + ' ' + oLastMessage.messageId).trim();
break;

case ComposeType.Draft:
Expand Down
5 changes: 3 additions & 2 deletions snappymail/v/0.0.0/app/libraries/MailSo/Mime/Header.php
Expand Up @@ -156,8 +156,9 @@ public function __toString() : string
}
}

// https://www.rfc-editor.org/rfc/rfc2822#section-2.1.1
return \wordwrap($this->NameWithDelimitrom() . $sResult, 78, "\r\n ");
// https://www.rfc-editor.org/rfc/rfc2822#section-2.1.1, avoid folding immediately after the header name
return $this->NameWithDelimitrom() . \wordwrap($sResult, 78 - \strlen($this->NameWithDelimitrom()) - 1, "\r\n ");

}

public function IsSubject() : bool
Expand Down

0 comments on commit 442c4f5

Please sign in to comment.