From 941e669dbe23521b71a8611cb155d7e2a49a18e4 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Wed, 16 Nov 2011 08:04:59 +0100 Subject: [PATCH] Added License --- LICENSE | 22 ++++++++++++++++++++++ src/EmailReplyParser/Email.php | 8 ++++++++ src/EmailReplyParser/EmailReplyParser.php | 10 ++++++++++ src/EmailReplyParser/Fragment.php | 19 ++++++++++++++++++- 4 files changed, 58 insertions(+), 1 deletion(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ecb748b --- /dev/null +++ b/LICENSE @@ -0,0 +1,22 @@ +The MIT License + +Copyright (c) GitHub, William Durand + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/src/EmailReplyParser/Email.php b/src/EmailReplyParser/Email.php index 526dd32..f31b142 100644 --- a/src/EmailReplyParser/Email.php +++ b/src/EmailReplyParser/Email.php @@ -1,5 +1,13 @@ lines))); + if (null === $this->content) { + $this->content = preg_replace("/^\n/", '', strrev(implode("\n", $this->lines))); + } + + return $this->content; } /**