Skip to content

Commit

Permalink
fix email importer
Browse files Browse the repository at this point in the history
  • Loading branch information
yurikuzn committed Sep 4, 2015
1 parent e75c957 commit cb51fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/Espo/Core/Mail/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ protected function importPartDataToEmail(\Espo\Entities\Email $email, $part, &$i
$encoding = null;
$isAttachment = true;
if ($type == 'text/plain' || $type == 'text/html') {
if ($contentDisposition !== 'inline' && $contentDisposition !== 'attachment') {
if ($contentDisposition !== 'attachment') {
$isAttachment = false;
$content = $this->getContentFromPart($part);
if ($type == 'text/plain') {
Expand Down

0 comments on commit cb51fee

Please sign in to comment.