summaryrefslogtreecommitdiff
path: root/_test/tests
diff options
context:
space:
mode:
Diffstat (limited to '_test/tests')
-rw-r--r--_test/tests/inc/mailer.test.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/_test/tests/inc/mailer.test.php b/_test/tests/inc/mailer.test.php
index fefb6f508..feb454fcf 100644
--- a/_test/tests/inc/mailer.test.php
+++ b/_test/tests/inc/mailer.test.php
@@ -164,6 +164,7 @@ class mailer_test extends DokuWikiTest {
// prepare a simple multipart message
$mail = new TestMailer();
$mail->to(array('Möp <moep@example.com> ',' foo <foo@example.com>'));
+ $mail->from('Me <test@example.com>');
$mail->subject('This is a töst');
$mail->setBody('Hello Wörld,
@@ -173,6 +174,8 @@ class mailer_test extends DokuWikiTest {
$msg = $mail->dump();
$msglines = explode("\n", $msg);
+ //echo $msg;
+
// ask message lint if it is okay
$html = new HTTPClient();
$results = $html->post('http://tools.ietf.org/tools/msglint/msglint', array('msg'=>$msg));
@@ -195,6 +198,10 @@ class mailer_test extends DokuWikiTest {
// check the line for errors
if(substr($line,0,5) == 'ERROR'){
+ // ignore some errors
+ if(strpos($line, "missing mandatory header 'return-path'")) continue; #set by MDA
+ if(strpos($line, "bare newline in text body decoded")) continue; #seems to be false positive
+
// get the context in which the error occured
$errorin = '';
if(preg_match('/line (\d+)$/', $line, $m)){