mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 17:37:02 +03:00
Fix threading view in Thunderbird (others?)
Replies sent via SnappyMail break thread view in Thunderbird due to not standard-compliant Reply-To and References headers. * Due to the long IDs, the headers `Reply-To`, `References` (and `Messge-ID`) are split between the header name and its value. According to section RFC5322, section 2.2.3, this may be legal but it obviously causes problems. * On subsequent replies, the parent's ID gets prepended to the `References` header. Section 3.6.4 of the same RFC specifies that the ID should be appended to that header.
This commit is contained in:
parent
36789bd3b5
commit
cdd74c8f20
2 changed files with 5 additions and 4 deletions
|
|
@ -156,8 +156,9 @@ class Header
|
|||
}
|
||||
}
|
||||
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue