Skip to content

Commit 2e9982d

Browse files
author
Srdjan Marjanovic
committed
Strips Outlook for Mac signature
1 parent ca4f8b2 commit 2e9982d

2 files changed

Lines changed: 167 additions & 0 deletions

File tree

Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
Return-Path: <example@activecollab.com>
2+
Delivered-To: example@activecollab.com
3+
User-Agent: Microsoft-MacOutlook/0.0.0.151206
4+
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=activecollab.com;
5+
s=mail; t=1450276140;
6+
bh=cRaaoGwBJSXYdz2lEx1ghHt2g9Y+AbkcLDVWC1x2qhk=;
7+
h=Date:Subject:From:To:References:In-Reply-To;
8+
b=EIXg0edABqnJkqWzm4zceUGP6FmeePbSQeEvOgf9EPg3o9Ho8AnCwjA3c+PqIiO74
9+
PCFejvdW4xjTxpzxzSDQldgX9u/8bw498Z/6ezGn3ljpQOmmX6/IPtTFEgudPR5/YA
10+
42UkRFfM9jAuSNRKDeU7F4AleNOTvpzReZhAFxyE=
11+
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=activecollab.com;
12+
s=mail; t=1450276139;
13+
bh=cRaaoGwBJSXYdz2lEx1ghHt2g9Y+AbkcLDVWC1x2qhk=;
14+
h=Date:Subject:From:To:References:In-Reply-To;
15+
b=cv+XL/bB1DHHICXA6j1JOmp6Y9VN7YdNamn+0bt/tECEnTgswTEWOT6YXKuBLrvbd
16+
lHcxI58NjCywFlSsEitqUj3352QwyPfg7txkZr+FyR/oKOKgg5et/A4Vxwu+tRiWcl
17+
Ag5qUOSuT+V29XPbdfxrqaa59kzN3h0oT44REmCs=
18+
Date: Wed, 16 Dec 2015 15:28:55 +0100
19+
Subject: Re: test task
20+
From: Example Example <example@activecollab.com>
21+
To: Owner Owneric <example@activecollab.com>
22+
Message-ID: <492FEC56-1873-4390-8BC3-1BBA1CE0AE00@activecollab.com>
23+
Thread-Topic: test task
24+
References: <d8f1be5abc2e8bcab9585ffab4bb5d6c@acid>
25+
In-Reply-To: <d8f1be5abc2e8bcab9585ffab4bb5d6c@acid>
26+
Mime-version: 1.0
27+
Content-type: multipart/alternative;
28+
boundary="B_3533124539_1206111362"
29+
30+
> This message is in MIME format. Since your mail reader does not understand
31+
this format, some or all of this message may not be legible.
32+
33+
--B_3533124539_1206111362
34+
Content-type: text/plain;
35+
charset="UTF-8"
36+
Content-transfer-encoding: 7bit
37+
38+
Pozdrav iz rudnika!
39+
40+
41+
--
42+
Example Studen
43+
www: https://www.activecollab.com/index.html
44+
tw: https://twitter.com/example
45+
46+
47+
From: Owner Owneric <example@activecollab.com>
48+
Date: Wednesday, December 16, 2015 at 3:24 PM
49+
To: Example Example <example@activecollab.com>
50+
Subject: Re: test task
51+
52+
Re: test task
53+
- Reply above this line to leave a comment -
54+
New comment posted in:
55+
test task
56+
Owner Owneric Dec 16. 2015
57+
@ilija.Example pls, odgovori mi na ovu notifikaciju sa Outlooka za Mac pls
58+
Project: test project
59+
Task List: ToDont
60+
People in this task: ilija.Example and Owner Owneric
61+
62+
Delivered by ActiveCollab
63+
Don't send me emails about this task any more
64+
65+
66+
--B_3533124539_1206111362
67+
Content-type: text/html;
68+
charset="UTF-8"
69+
Content-transfer-encoding: quoted-printable
70+
71+
<html><head></head><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: s=
72+
pace; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size:=
73+
14px; font-family: Calibri, sans-serif;"><div><div><div>Pozdrav iz rudnika!=
74+
</div><div><div id=3D"MAC_OUTLOOK_SIGNATURE"><div><br></div><div><br></div><di=
75+
v>--&nbsp;</div><div>Example Studen</div><div>www: <a href=3D"https://www.active=
76+
collab.com/index.html">https://www.activecollab.com/index.html</a></div><div=
77+
>tw:&nbsp;<a href=3D"https://twitter.com/istdn">https://twitter.com/istdn</a><=
78+
/div><div><br></div></div></div></div></div><div><br></div><span id=3D"OLK_SRC=
79+
_BODY_SECTION"><div style=3D"font-family:Calibri; font-size:12pt; text-align:l=
80+
eft; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADD=
81+
ING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df =
82+
1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style=3D"font-we=
83+
ight:bold">From: </span> Owner Owneric &lt;<a href=3D"mailto:example=
84+
@activecollab.com">example@activecollab.com</a>&gt;<br><span style=
85+
=3D"font-weight:bold">Date: </span> Wednesday, December 16, 2015 at 3:24 PM<br=
86+
><span style=3D"font-weight:bold">To: </span> Example Example &lt;<a href=3D"mailto=
87+
:example@activecollab.com">example@activecollab.com</a>&gt;<br><sp=
88+
an style=3D"font-weight:bold">Subject: </span> Re: test task<br></div><div><br=
89+
></div><div>
90+
91+
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-8">
92+
<title>Re: test task</title>
93+
94+
<style type=3D"text/css">
95+
body { width:100% !important; -webkit-text-size-adjust:100%; -ms-text=
96+
-size-adjust:100%; margin:0; padding:0; background: #f1f1f1; }
97+
a { color: #005EB0; }
98+
h1, h2, h3, p { margin: 1em 0; }
99+
pre { overflow-x: scroll; max-width: 455px; background-color: #f1f1f1=
100+
; padding: 15px; }
101+
102+
@media only screen and (min-device-width: 601px) {
103+
.content {
104+
width: 600px !important;
105+
}
106+
}
107+
</style><div><!--[if (gte mso 9)|(IE)]>
108+
<table width=3D"600" cellpadding=3D"10" cellspacing=3D"0" border=3D"0" align=3D"cen=
109+
ter">
110+
<tr>
111+
<td>
112+
<![endif]--><!-- Outer Table --><table style=3D"width: 100%; background-color=
113+
: #f1f1f1;" cellpadding=3D"10" cellspacing=3D"0" border=3D"0" align=3D"center"><tbod=
114+
y><tr><td style=3D"font-family: Helvetica, Arial, sans-serif; font-size: 11px;=
115+
color: #999999;" align=3D"center"><p style=3D"margin-top: 0;">- Reply above thi=
116+
s line to leave a comment -</p><table class=3D"content" style=3D"width: 100%; ma=
117+
x-width: 600px; background-color: #ffffff; border-width: 1px; border-color: =
118+
#d1d1d1; border-radius: 3px;" cellpadding=3D"20" cellspacing=3D"0" align=3D"center=
119+
"><tbody><tr><td style=3D"font-family: Helvetica, Arial, sans-serif; font-size=
120+
: 16px; line-height: 22px; padding-top: 0; color: #000000;" align=3D"left"><!-=
121+
- Message Body --><h1 style=3D"font-size: 16px; font-weight: bold; margin-top:=
122+
20px; margin-bottom: 16px;">
123+
New comment posted in:<br>
124+
<a style=3D"display: block; overflow: hidden; text-overflow: ellipsis; white=
125+
-space: nowrap; max-width: 550px;" href=3D"http://feather.dev/projects/13/task=
126+
s/383">test task</a></h1><!-- Comment table --><table border=3D"0" cellpadding=
127+
=3D"10" cellspacing=3D"0" bgcolor=3D"#ffffff" style=3D"width: 100%">
128+
129+
<tbody><tr>
130+
<td valign=3D"top" style=3D"padding-left: 0; width: 36px;">
131+
<img src=3D"http://feather.dev/proxy.php?proxy=3Davatar&amp;module=3Dsystem&a=
132+
mp;v=3Dcurrent&amp;b=3DDEV&amp;user_id=3D1&amp;size=3D36&amp;timestamp=3D1449138096" w=
133+
idth=3D"36" height=3D"36" alt=3D"Owner Owneric">
134+
</td>
135+
<td colspan=3D"2" valign=3D"top" style=3D"padding-left: 0;">
136+
<strong>Owner Owneric</strong> <span style=3D"font-size: 14px; line-heigh=
137+
t: 14px;">&nbsp;Dec 16. 2015</span> <br>
138+
<span style=3D"word-wrap: break-word; word-break: break-word; -ms-word-br=
139+
eak: break-all; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto;"><=
140+
span style=3D"background-color: #D9EEFF; padding: 0 2px; border: 1px solid #AE=
141+
BFCC; border-radius: 3px;">@example</span>&nbsp;pls, odgovori mi na ovu=
142+
notifikaciju sa Outlooka za Mac pls</span>
143+
144+
</td>
145+
</tr>
146+
147+
148+
</tbody></table><!-- Metadata --><div class=3D"metadata" style=3D"color: #99999=
149+
9; font-size: 14px; line-height: 21px;"><p>Project: test project<br>Task Lis=
150+
t: ToDont<br>People in this task: <a href=3D"mailto:example@activecollab.=
151+
com" style=3D"color: #999999; text-decoration: none;">example</a> and <a =
152+
href=3D"mailto:example@activecollab.com" style=3D"color: #999999; text=
153+
-decoration: none;">Owner Owneric</a></p></div></td></tr></tbody></table><p>=
154+
Delivered by ActiveCollab<br><a href=3D"http://feather.dev/public/notification=
155+
s/unsubscribe?code=3DSUBS-464-uR98FWaV1d" style=3D"color: #999999;">Don't send m=
156+
e emails about this task any more</a></p><!-- End Outer Table --></td></tr><=
157+
/tbody></table><!--[if (gte mso 9)|(IE)]>
158+
</td>
159+
</tr>
160+
</table>
161+
<![endif]--></div></div></span></body></html>
162+
163+
--B_3533124539_1206111362--
164+
165+

test/src/ActiveCollab/EmailReplyExtractor/ExampleMessagesTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ private function setExpectedTextByFileName($filename)
7070
return 'Šćućurih se u čaši povrh džačića.';
7171
case 'outlook_2013.eml':
7272
return 'Test from my Outlook.';
73+
case 'outlook_mac_2015.eml':
74+
return 'Pozdrav iz rudnika!';
7375
case 'unknown_case_01.eml':
7476
return 'Thanks Michael. We will discuss and get back to you.';
7577
default:

0 commit comments

Comments
 (0)