mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 01:17:04 +03:00
Add some basic support for Linked Data (Structured Email) #1422
This commit is contained in:
parent
ea07ea45b8
commit
be633f78a7
5 changed files with 322 additions and 3 deletions
|
|
@ -1066,6 +1066,12 @@ trait Messages
|
|||
$oMessage->SubParts->append($oPart);
|
||||
|
||||
$sHtml = \MailSo\Base\HtmlUtils::BuildHtml($sHtml, $aFoundCids, $aFoundDataURL, $aFoundContentLocationUrls);
|
||||
|
||||
$aLinkedData = $this->GetActionParam('linkedData', []);
|
||||
if ($aLinkedData) {
|
||||
$sHtml = \str_replace('</head>', '<script type="application/ld+json">'.\json_encode($aLinkedData).'</script></head>', $sHtml);
|
||||
}
|
||||
|
||||
$this->Plugins()->RunHook('filter.message-html', array($oAccount, $oMessage, &$sHtml));
|
||||
|
||||
// First add plain
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue