Dear Sir
+Good evening.
+ +------=_NextPart_002_0D4A_01CE140D.19527DD0-- + +------=_NextPart_001_0D49_01CE140D.19527DD0-- + +------=_NextPart_000_0D48_01CE140D.19527DD0 +Content-Type: multipart/alternative; boundary="===============1276485360==" +MIME-Version: 1.0 +Content-Disposition: inline + +--===============1276485360== +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + + + +The footer + +--===============1276485360== +Content-Type: text/html; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: quoted-printable + +The footer
+ +--===============1276485360==-- +------=_NextPart_000_0D48_01CE140D.19527DD0-- + diff --git a/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/fixtures/non-unique-cid.eml b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/fixtures/non-unique-cid.eml new file mode 100644 index 000000000..2a8dede59 --- /dev/null +++ b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/fixtures/non-unique-cid.eml @@ -0,0 +1,128 @@ +Return-Path:
+Testing MIME E-mail composing with cid+ Hello Name, Here is an image embedded in a message as a separate part:= ++name + |
+
Dear Sir
+Good evening.
+ + + +The footer
+ diff --git a/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/messages/FeedbackTest.php b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/messages/FeedbackTest.php new file mode 100644 index 000000000..6de150b37 --- /dev/null +++ b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/messages/FeedbackTest.php @@ -0,0 +1,58 @@ + + */ +class FeedbackTest extends TestCase +{ + + public function testComplaints() + { + $this + ->field('/complaints/aol.eml', function (Message $container) { + /** + * @var Feedback $feedback + */ + $feedback = null; + foreach ($container->getAttachments() as $attachment) { + if ($attachment->getMimeType() === 'message/feedback-report') { + $feedback = $attachment->getMessage(); + } + } + + $this->assertEquals(Feedback::TYPE_ABUSE, $feedback->getType()); + $this->assertEquals('AOL SComp', $feedback->getUserAgent()); + $this->assertEquals('0.1', $feedback->getVersion()); + $this->assertNull($feedback->getOriginalEnvelopeId()); + }) + ->field('/complaints/yahoo.eml', function (Message $container) { + /** + * @var Feedback $feedback + */ + $feedback = null; + foreach ($container->getAttachments() as $attachment) { + if ($attachment->getMimeType() === 'message/feedback-report') { + $feedback = $attachment->getMessage(); + } + } + $this->assertEquals(Feedback::TYPE_ABUSE, $feedback->getType()); + $this->assertEquals('0.1', $feedback->getVersion()); + $this->assertEquals('Yahoo!-Mail-Feedback/1.0', $feedback->getUserAgent()); + $this->assertEquals('bounce+705f77.d4a-user=yahoo.com@example.com', $feedback->getOriginalMailFrom()->email); + }); + } + +} \ No newline at end of file diff --git a/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/FtpTest.php b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/FtpTest.php new file mode 100644 index 000000000..ba3388d67 --- /dev/null +++ b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/FtpTest.php @@ -0,0 +1,30 @@ + + */ +class FtpTest extends TestCase +{ + + public function testParsing() + { + $this->field('/external-ftp.eml', function (Message $message) { + $attachment = $message->getAttachments()[0]; + $this->assertEquals('message/external-body', $attachment->getMimeType()); + $this->assertInstanceOf('bashkarev\email\transports\Ftp', $attachment->getStream()); + $this->assertEquals('application/zip', $attachment->getStream()->getMimeType()); + $this->assertStringEqualsFile(__DIR__ . '/../fixtures/attachments/1KB.zip', $attachment->getStream()->getContents()); + }); + } + +} \ No newline at end of file diff --git a/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/LocalTest.php b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/LocalTest.php new file mode 100644 index 000000000..35b82a2f1 --- /dev/null +++ b/forked-plugins/bp-rbe-inbound-forum-attachments/vendor/bashkarev/email/tests/transports/LocalTest.php @@ -0,0 +1,48 @@ + + */ +class LocalTest extends TestCase +{ + + public function testParsing() + { + $path = __DIR__ . '/../fixtures/attachments/hello.html'; + $this->field($this->generate($path), function (Message $message) use ($path) { + /** + * @var \bashkarev\email\transports\Local $transport + */ + $transport = $message->getStream(); + $this->assertInstanceOf('bashkarev\email\transports\Local', $transport); + $this->assertStringEqualsFile($path, $message->textHtml()); + }); + } + + protected function generate($path) + { + $file = realpath($path); + return <<