From b3577cf9084e7dee70c3d09426087262da0f2849 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Sat, 12 Oct 2013 13:34:14 +0200
Subject: [PATCH] use different boundary prefix FS#2846

The used boundary should have been correct but might throw off MTAs not
expecting more than two dashes at the start. This is just a wild guess
and may not fix anything (but shouldn't break anything either).
---
 inc/Mailer.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/Mailer.class.php b/inc/Mailer.class.php
index ff29c2a36..34d1c8af6 100644
--- a/inc/Mailer.class.php
+++ b/inc/Mailer.class.php
@@ -44,7 +44,7 @@ class Mailer {
         if(strpos($server,'.') === false) $server = $server.'.localhost';
 
         $this->partid   = md5(uniqid(rand(), true)).'@'.$server;
-        $this->boundary = '----------'.md5(uniqid(rand(), true));
+        $this->boundary = '__________'.md5(uniqid(rand(), true));
 
         $listid = join('.', array_reverse(explode('/', DOKU_BASE))).$server;
         $listid = strtolower(trim($listid, '.'));
-- 
GitLab