Skip to content
Snippets Groups Projects
Commit d5ed197e authored by Jared Hancock's avatar Jared Hancock
Browse files

email: Import embedded images before truncating the body

parent 45806d4d
No related branches found
No related tags found
No related merge requests found
...@@ -1411,9 +1411,9 @@ class TextThreadBody extends ThreadBody { ...@@ -1411,9 +1411,9 @@ class TextThreadBody extends ThreadBody {
} }
class HtmlThreadBody extends ThreadBody { class HtmlThreadBody extends ThreadBody {
function __construct($body, $options=array()) { function __construct($body, $options=array()) {
if ($options['strip-embedded'])
$body = $this->extractEmbeddedHtmlImages($body);
parent::__construct($body, 'html', $options); parent::__construct($body, 'html', $options);
if ($this->options['strip-embedded'])
$this->body = $this->extractEmbeddedHtmlImages($this->body);
} }
function extractEmbeddedHtmlImages($body) { function extractEmbeddedHtmlImages($body) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment