LogoKolab Groupware OBS > Projects
Log In

View File 0012-Do-not-require-top-replies-only.patch of Package phabricator (Project Infrastructure)

From 49539b01d98973d4c340c0ece79dd75117c836d2 Mon Sep 17 00:00:00 2001
From: "Jeroen van Meeuwen (Kolab Systems)" <vanmeeuwen@kolabsys.com>
Date: Wed, 10 Aug 2016 18:19:22 +0200
Subject: [PATCH 12/15] Do not require top-replies only.

Phabricator's MetaMTA mail parser currently strips anything beyond a very selected set of magical markers. This doesn't work for inline comments nor bottom replies.
---
 src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
index be0401f..55ef52c 100644
--- a/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
+++ b/src/applications/metamta/parser/PhabricatorMetaMTAEmailBodyParser.php
@@ -81,6 +81,7 @@ final class PhabricatorMetaMTAEmailBodyParser extends Phobject {
   }
 
   private function stripQuotedText($body) {
+    return rtrim($body);
 
     // Look for "On <date>, <user> wrote:". This may be split across multiple
     // lines. We need to be careful not to remove all of a message like this:
-- 
2.9.3