-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from likeuntomurphy/master
Make quote header regexes lazy to avoid collapsing multiple headers i…
- Loading branch information
Showing
3 changed files
with
55 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,4 +112,33 @@ public function testUnquotedReply() | |
|
||
$this->assertEquals('This is my reply.', EmailReplyParser::parseReply($body)); | ||
} | ||
|
||
public function testEmailThreadPreservesNewLines() | ||
{ | ||
$body = $this->getFixtures('email_thread.txt'); | ||
|
||
$fragments = EmailReplyParser::read($body) | ||
->getFragments(); | ||
|
||
$this->assertEquals(<<<EMAIL | ||
On Nov 21, 2014, at 10:18, John Doe <[email protected]> wrote: | ||
> Ok. Thanks. | ||
> | ||
> On Nov 21, 2014, at 9:26, Jim Beam <[email protected]> wrote: | ||
> | ||
>>> On Nov 20, 2014, at 11:03 AM, John Doe <[email protected]> wrote: | ||
>>> | ||
>>> if you take a look at a short video from attachment, why full-typed filename does not stay in CMD+T pane? | ||
>>> When I type last character, it is not shown anymore. | ||
>> | ||
>> We think we’ve tracked down the cause of this issue, write back if you see the issue after the next update. (Which will be out shortly.) | ||
>> | ||
>> -- | ||
>> Jim Beam – Acme Corp | ||
>> | ||
> | ||
, (string) $fragments[1]); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
This is new email reply in thread from bellow. | ||
|
||
On Nov 21, 2014, | ||
at 10:18, | ||
John Doe <[email protected]> wrote: | ||
|
||
> Ok. Thanks. | ||
> | ||
> On Nov 21, 2014, at 9:26, Jim Beam <[email protected]> wrote: | ||
> | ||
>>> On Nov 20, 2014, at 11:03 AM, John Doe <[email protected]> wrote: | ||
>>> | ||
>>> if you take a look at a short video from attachment, why full-typed filename does not stay in CMD+T pane? | ||
>>> When I type last character, it is not shown anymore. | ||
>> | ||
>> We think we’ve tracked down the cause of this issue, write back if you see the issue after the next update. (Which will be out shortly.) | ||
>> | ||
>> -- | ||
>> Jim Beam – Acme Corp | ||
>> | ||
> |