$this->checkMailingBounces(1);
}
+ /**
+ * Test that the job processing function can handle incoming utf8mb4 characters.
+ */
+ public function testBounceProcessingUTF8mb4() {
+ $this->setUpMailing();
+ $mail = 'test_utf8mb4_character.txt';
+
+ copy(__DIR__ . '/data/bounces/' . $mail, __DIR__ . '/data/mail/' . $mail);
+ $this->callAPISuccess('job', 'fetch_bounces', array());
+ $this->assertFalse(file_exists(__DIR__ . '/data/mail/' . $mail));
+ $this->checkMailingBounces(1);
+ }
+
/**
* Tests that a multipart related email does not cause pain & misery & fatal errors.
*
--- /dev/null
+Delivered-To: my@example.com
+Received: by 10.2.13.84 with SMTP id 1234567890;
+ Wed, 19 Dec 2018 10:01:11 +0100 (CET)
+Return-Path: <>
+From: my@example.com
+To: b.2.1.aaaaaaaaaaaaaaaa@example.com
+Subject: Vacation
+Message-ID: <abc.def.fhi@example.com>
+Date: Wed, 19 Dec 2018 10:01:07 +0100
+MIME-Version: 1.0
+Auto-Submitted: auto-replied (vacation)
+Content-Type: text/plain; charset="utf-8"
+Content-Transfer-Encoding: base64
+
+SSBhbSBvbiB2YWNhdGlvbiDwn4y0
\ No newline at end of file