Skip to content

Commit 0a8654c

Browse files
committed
Plain text attachments have a content type of other/plain of text/plain #119
1 parent 9857984 commit 0a8654c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/IMAP/Attachment.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
*/
1212

1313
namespace Webklex\IMAP;
14+
1415
use Illuminate\Support\Facades\File;
1516
use Symfony\Component\HttpFoundation\File\MimeType\ExtensionGuesser;
1617

@@ -113,8 +114,11 @@ protected function findType() {
113114
case self::TYPE_MODEL:
114115
$this->type = 'model';
115116
break;
116-
case self::TYPE_OTHER:
117-
$this->type = 'other';
117+
case self::TYPE_TEXT:
118+
$this->type = 'text';
119+
break;
120+
case self::TYPE_MULTIPART:
121+
$this->type = 'multipart';
118122
break;
119123
default:
120124
$this->type = 'other';

0 commit comments

Comments
 (0)