mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-10-31 21:42:27 +01:00 
			
		
		
		
	gui: added unit tests for Piler_Mime_Decoder class
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
		
							
								
								
									
										8
									
								
								phpunit.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								phpunit.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <phpunit colors="true"> | ||||
|     <testsuites> | ||||
|         <testsuite name="Application Test Suite"> | ||||
|             <directory>./tests</directory> | ||||
|         </testsuite> | ||||
|     </testsuites> | ||||
| </phpunit> | ||||
							
								
								
									
										43
									
								
								test_files/1.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								test_files/1.eml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| Return-path: <Postmaster@aaa.fu> | ||||
| Delivery-date: Tue, 25 Feb 2014 09:38:19 +0100 | ||||
| Received:  from 192.168.1.11 by archiv with pop3(bytstor) | ||||
| Message-Id: <530C6486020000E8000148ED@groupwise.aaa.fu> | ||||
| X-Mailer: Novell GroupWise Internet Agent 8.0.3  | ||||
| Date: Tue, 25 Feb 2014 09:38:14 +0100 | ||||
| From: "=?ISO-8859-1?Q?Andr=E9=20Tbbbbb?=" <a.tbbbbb@aaa.fu> | ||||
| Sender: a.tbbbbb@aaa.fu | ||||
| Reply-To: a.tbbbbb@aaa.fu | ||||
| Errors-To: Postmaster@aaa.fu | ||||
| To: andre.tbbbbb@gmx.de | ||||
| Subject: Wtrlt: Info: RK-Formular - Rechenfunktion | ||||
| Mime-Version: 1.0 | ||||
| Content-Type: message/rfc822 | ||||
| Delivered-To:: archiv | ||||
|  | ||||
| Date: Tue, 25 Feb 2014 09:37:54 +0100 | ||||
| From: "Iris Bbbbbbbb" <i.bbbbbbbb@aaa.fu> | ||||
| To: "Angelika Bbbbbb" <a.bbbbbb@aaa.fu>, | ||||
|  "Anke Bbbbbbb" <a.bbbbbbb@aaa.fu>, | ||||
|  "Axel Bbbbbbb" <a.bbbbbbb@aaa.fu>, | ||||
|  "Zentrale" <Zentrale@aaa.fu> | ||||
| Subject: Info: RK-Formular - Rechenfunktion | ||||
| Mime-Version: 1.0 | ||||
| Content-Type: text/plain; charset=UTF-8 | ||||
| Content-Transfer-Encoding: quoted-printable | ||||
| Content-Disposition: inline | ||||
|  | ||||
| Liebe Gueste, | ||||
|  | ||||
| die Einarbeitung der Rechen- und Summenfunktionen ins RK-Formular | ||||
| seitens der IT kann auf Grund von vorrangigen Arbeiten z.Zt. nicht | ||||
| erfolgen. | ||||
|  | ||||
| Die IT geht davon aus, dass dieser Job im April angegangen werden | ||||
| kann. | ||||
|  | ||||
| Wir bitten um Verst=C3=A4ndnis. | ||||
|  | ||||
| Gru=C3=9F | ||||
| Iris Bbbbbbbb | ||||
|  | ||||
|  | ||||
							
								
								
									
										113
									
								
								test_files/2.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										113
									
								
								test_files/2.eml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,113 @@ | ||||
| Mime-Version: 1.0 | ||||
| X-Mailer: GroupWise 2014 R2 | ||||
| Subject: Wtrlt: Antw: Wichtig!  Vorlagen zu E-Mail Signatur  | ||||
|  =?UTF-8?Q?ge=C3=A4ndert=20(IWW=20UF=20DOK=20E-Mail=20Signatur)?= | ||||
| Date: Thu, 22 Jun 2017 13:07:41 +0200 | ||||
| Message-ID: <594BC11D0200008E00030D63@aaa.fu> | ||||
| References: <594BBAF90200009A00022B3B@aaa.fu> | ||||
| 	 <594BC11D0200006A000219C8@aaa.fu> | ||||
| In-Reply-To: <594BC11D0200006A000219C8@aaa.fu> | ||||
| From: IT-Support <IT-Support@aaa.fu> | ||||
| To: "Holger Bbbbb" <h.bbbbb@aaa.fu> | ||||
| Content-Type: multipart/mixed; boundary="____HVDYFKEKOOIYILNVLMUJ____" | ||||
|  | ||||
|  | ||||
| --____HVDYFKEKOOIYILNVLMUJ____ | ||||
| Content-Type: message/rfc822 | ||||
|  | ||||
| Mime-Version: 1.0 | ||||
| Subject: Antw: Wichtig!  Vorlagen zu E-Mail Signatur  | ||||
|  =?UTF-8?Q?ge=C3=A4ndert=20(IWW=20UF=20DOK=20E-Mail=20Signatur)?= | ||||
| Date: Thu, 22 Jun 2017 13:07:41 +0200 | ||||
| Message-ID: <594BC11D0200006A000219C8@aaa.fu> | ||||
| References: <594BBAF90200009A00022B3B@aaa.fu> | ||||
| In-Reply-To: <594BBAF90200009A00022B3B@aaa.fu> | ||||
| From: "Ute Rbbbbbbb" <u.rbbbbbbb@aaa.fu> | ||||
| To: "Sandra =?UTF-8?B?RmzDvHNz?=" <s.bbbbbb@aaa.fu>, IT-Support | ||||
| 	 <IT-Support@aaa.fu> | ||||
| Content-Type: text/plain; charset=utf-8 | ||||
| Content-Transfer-Encoding: quoted-printable | ||||
| Content-Disposition: inline | ||||
|  | ||||
| Hallo! | ||||
| Die seltsamen Zeilenumbr=C3=BCche treten tats=C3=A4chlich auf. | ||||
| Wie soll man das anpassen? | ||||
| Durch Neueingabe des Textes sind die Zeilenumbr=C3=BCche nicht verschwunden= | ||||
| . | ||||
| Gru=C3=9F | ||||
| Ute | ||||
|  | ||||
| >>> Sandra Fbbbbb 22.06.2017 12:41 >>> | ||||
| Hallo Zusammen, | ||||
|  | ||||
| das Dokument zur Vorgabe der E-Mail Signaturen wurde =C3=BCberarbeitet und = | ||||
| in Kraft gesetzt. | ||||
|  | ||||
| Es ist wichtig, dass sich Jeder dieses Dokument durchliest und seine = | ||||
| E-Mail Signatur entsprechend anpasst (in der alten Version war Herr = | ||||
| Sch=C3=BCller noch nicht aufgef=C3=BChrt). | ||||
|  | ||||
| Wir haben den Umfang der Signatur so weit es geht reduziert. Dazu der = | ||||
| Hinweis, dass die noch bei manchen Kollegen eingef=C3=BCgten Disclaimer = | ||||
| keine rechtliche Grundlage in Deutschland haben und bitte nicht verwendet = | ||||
| werden! | ||||
| Bitte auch darauf achten, dass beim Versenden immer das Textformat = | ||||
| verwendet wird und nicht html (Sicherheitshinweis der IT). | ||||
|  | ||||
| Au=C3=9Ferdem macht es Sinn, die neue E-Mail Signatur an z.B. die private = | ||||
| E-Mail Anschrift zu senden um zu =C3=BCberpr=C3=BCfen, wie sie beim = | ||||
| Empf=C3=A4nger ankommt. GroupWise hat manchmal das Problem von seltsamen = | ||||
| Zeilenumbr=C3=BCchen, obwohl es hier bei uns tadellos aussieht. Das dann = | ||||
| bitte entsprechend anpassen. | ||||
|  | ||||
| Die aktuellen Hinweise zu Schulungen sind folgende: | ||||
|  | ||||
| -------------- Aktuelle IWW-Veranstaltungen: http://aaa.fu/veranstal= | ||||
| tungen/ ----------- | ||||
| - Schulungen zur Trinkwasser-Probenahme & VDI-Hygieneschulung K=C3=BChlwass= | ||||
| er (Jahrestermine) | ||||
| - 3. Hannover-Fachtagung "Sichere Wasserversorgung - immer und =C3=BCberall= | ||||
| ?" am 13. September 2017 | ||||
| - 3. Westf=C3=A4lische Trinkwassertagung am 27. und 28. September 2017 in = | ||||
| Paderborn | ||||
| ---------------------------------------------------------------------------= | ||||
| ---------------------------- | ||||
|  | ||||
|  | ||||
|  | ||||
| "Y:\1_Organisationshandbuch\F=C3=BChrungsprozess\IWW UF DOK E-Mail = | ||||
| Signatur.docx" | ||||
|  | ||||
|  | ||||
| Liebe Gr=C3=BC=C3=9Fe,=20 | ||||
| Sandra | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| Sandra Fbbbbbbbbb | ||||
| Qualit=C3=A4tsmanagement | ||||
| =20 | ||||
| =20 | ||||
| AAA AAAA FU | ||||
| Internet : http://www.aaa.fu, E-Mail : s.bbbbb@aaa.fu=20 | ||||
| Phone: +49 (0)123 44747-0, -990/-995, Fax: -80 | ||||
| =20 | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | ||||
| Aktuelle IWW-Veranstaltungen: http://aaa.fu/veranstaltungen/=20 | ||||
|  Schulungen zur Trinkwasser-Probenahme & VDI-Hygieneschulung K=C3=BChlwasse= | ||||
| r (Jahrestermine) | ||||
| - 3. Hannover-Fachtagung "Sichere Wasserversorgung - immer und =C3=BCberall= | ||||
| ?" am 13. September 2017 | ||||
| - 3. Westf=C3=A4lische Trinkwassertagung am 27. und 28. September 2017 in = | ||||
| Germany | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= | ||||
| =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | ||||
| =20 | ||||
| =20 | ||||
|  | ||||
| --____HVDYFKEKOOIYILNVLMUJ____-- | ||||
							
								
								
									
										51
									
								
								test_files/3.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										51
									
								
								test_files/3.eml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,51 @@ | ||||
| Return-Path: <saezlp@diba.cat> | ||||
| Delivered-To: sj@acts.hu | ||||
| Received: from antispam.localhost (localhost [127.0.0.1]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTP id 332E8100836 | ||||
| 	for <sj@acts.hu>; Sat,  9 Apr 2016 21:37:12 +0200 (CEST) | ||||
| Received: 40000000570959f20aafdcdc005e99e63acf | ||||
| Received: from mx12.diba.cat (mx12.diba.cat [195.76.107.105]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTP id 0A9CF100834 | ||||
| 	for <sj@acts.hu>; Sat,  9 Apr 2016 21:37:11 +0200 (CEST) | ||||
| IronPort-PHdr: =?us-ascii?q?9a23=3A9gSPXBAO7bZzEqlnB10eUyQJP3N1i/DPJgcQr6Af?= | ||||
|  =?us-ascii?q?oPdwSP78pMbcNUDSrc9gkEXOFd2CrakU26yK7Ou5AjJIyK3CmU5BWaQEbwUCh8?= | ||||
|  =?us-ascii?q?QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4?= | ||||
|  =?us-ascii?q?Ov7yUtaLyZ/nh6bupNaKOFsArQH+SI0xBS3+lR/WuMgSjNkqAYcK4TyNnEF1ff?= | ||||
|  =?us-ascii?q?9Lz3hjP1OZkkW0zM6x+Jl+73YY4Kp5pIZtVL3mbuwjULZaAT86eyBsvIy4/SXE?= | ||||
|  =?us-ascii?q?GEGO4HUbC00TiRwOCA/AplmuX5H/tXLSs/F7niKdOJulY6ozXGHo1I5GelfMrx?= | ||||
|  =?us-ascii?q?8qBXpxyEz7sOs6xPZAqR+zowRXz4/eaceePeYoLfCVRs8TWWcUBpUZbCdGGI7p?= | ||||
|  =?us-ascii?q?NtMC?= | ||||
| X-IronPort-Anti-Spam-Filtered: true | ||||
| X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2HIDAB8WAlX/+A5qMBchQ26UwEBCIFyh?= | ||||
|  =?us-ascii?q?g0CK4E9DgEBAQEBAQEBAn4Lgi2CFgUZND4rQxMZBgICAwEEG8MAjyuDK4IrBY4?= | ||||
|  =?us-ascii?q?GiX4BFo9GAY4Vjkw9AQEBCoN/iRp+AgEC?= | ||||
| X-IPAS-Result: =?us-ascii?q?A2HIDAB8WAlX/+A5qMBchQ26UwEBCIFyhg0CK4E9DgEBAQE?= | ||||
|  =?us-ascii?q?BAQEBAn4Lgi2CFgUZND4rQxMZBgICAwEEG8MAjyuDK4IrBY4GiX4BFo9GAY4Vj?= | ||||
|  =?us-ascii?q?kw9AQEBCoN/iRp+AgEC?= | ||||
| X-IronPort-AV: E=Sophos;i="5.24,460,1454972400";  | ||||
|    d="scan'208";a="2534897" | ||||
| Received: from swcs500.corpo.ad.diba.es ([192.168.57.224]) | ||||
|   by mx12.diba.cat with ESMTP/TLS/AES128-SHA; 09 Apr 2016 21:36:04 +0200 | ||||
| Received: from SWCS632.corpo.ad.diba.es ([fe80::6dde:1d44:19a8:fa5b]) by | ||||
|  SWCS500.corpo.ad.diba.es ([fe80::7978:3b41:53ef:eb8c%14]) with mapi id | ||||
|  14.03.0266.001; Sat, 9 Apr 2016 21:36:04 +0200 | ||||
| From: "SAEZ LOPEZ, PEDRO" <saezlp@diba.cat> | ||||
| To: "info1@msn.com" <info1@msn.com> | ||||
| Subject:[spam???]  | ||||
| Thread-Index: AdGSlw19psSEC4FeT2+rI/nehCExEA== | ||||
| Date: Sat, 9 Apr 2016 19:36:03 +0000 | ||||
| Message-ID: <DEB193C8FF35854B87B83CAC62D4A4CC087B94@SWCS632.corpo.ad.diba.es> | ||||
| Accept-Language: ca-ES, es-ES, en-US | ||||
| Content-Language: ca-ES | ||||
| X-MS-Has-Attach: | ||||
| X-MS-TNEF-Correlator: | ||||
| x-originating-ip: [192.168.32.58] | ||||
| Content-Type: text/plain; charset="iso-8859-1" | ||||
| Content-Transfer-Encoding: quoted-printable | ||||
| MIME-Version: 1.0 | ||||
| X-Clapf-spamicity: 40000000570959f20aafdcdc005e99e63acf | ||||
| X-Clapf-spamicity: 0.8622 | ||||
|  | ||||
|  | ||||
|  | ||||
| Can we discuss? Send Reply For more information, THANKS. | ||||
							
								
								
									
										2298
									
								
								test_files/4.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2298
									
								
								test_files/4.eml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										118
									
								
								test_files/5.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										118
									
								
								test_files/5.eml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,118 @@ | ||||
| Return-Path: <bounce-5265_HTML-218991109-31504-7213829-8532@bounce.s7.exacttarget.com> | ||||
| Delivered-To: sj@acts.hu | ||||
| Received: from antispam.localhost (localhost [127.0.0.1]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTP id 12BB71006F3 | ||||
| 	for <sj@acts.hu>; Tue, 12 Apr 2016 17:50:09 +0200 (CEST) | ||||
| Received: 40000000570d193b0226c2240077e44984e0 | ||||
| Received: from cr34.mta.exacttarget.com (cr34.mta.exacttarget.com [136.147.176.34]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTPS id B5B541006E5 | ||||
| 	for <sj@acts.hu>; Tue, 12 Apr 2016 17:50:08 +0200 (CEST) | ||||
| DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=200608; d=infosecinstitute.com; | ||||
|  h=Message-ID:Date:Subject:From:To:MIME-Version:Content-Type:List-Unsubscribe; i=leif.rosenquist@infosecinstitute.com; | ||||
|  bh=oLyphbqW2YeJdrg5jSMSvvqgVOg=; | ||||
|  b=W6Yb37IIClbSy0J/nz0gxmS4DXlrcHMNUVIkjilllB8ArK37BN8SCJYbSWJSDUOgO6wqMeS8vpcQ | ||||
|    CKqRwqJ+uNz8P90medMD2/nQdaYPMhHUmTevALSIuxvAs9ULK1AhRYgGjrVALmUIg9Y2Mg2Sgg1V | ||||
|    MiF7SzWvf5rPr2y6nxc= | ||||
| Received: by cr34.mta.exacttarget.com id h1kcj0163hsi for <sj@acts.hu>; Tue, 12 Apr 2016 15:50:02 +0000 (envelope-from <bounce-5265_HTML-218991109-31504-7213829-8532@bounce.s7.exacttarget.com>) | ||||
| X-Virus-Scanned: amavisd-new at orionsmtp-197.s7.exacttarget.com | ||||
| Message-ID: <71796059-185b-4f4a-b342-1911fe4a74eb@xtgap4s7mta4152.xt.local> | ||||
| Date: Tue, 12 Apr 2016 09:50:02 -0600 | ||||
| Subject: is phishing a concern?  | ||||
| From: Leif Rosenquist <leif.rosenquist@infosecinstitute.com> | ||||
| To: sj@acts.hu | ||||
| MIME-Version: 1.0 | ||||
| Content-Type: multipart/alternative; | ||||
|  boundary="_=_swift_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_" | ||||
| List-Unsubscribe: <http://www2.infosecinstitute.com/unsubscribe/u/12882/11c3d36eade6735a1e1a0322e3f377035b472e615dde16f55c8fa6f74e331aef/270662874> | ||||
| X-Report-Abuse-To: abuse@pd25.com | ||||
| x-job: 7213829_31504 | ||||
| X-Clapf-spamicity: 40000000570d193b0226c2240077e44984e0 | ||||
| X-Clapf-spamicity: 0.1551 | ||||
|  | ||||
|  | ||||
| --_=_swift_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_ | ||||
| Content-Type: text/plain; charset=utf-8 | ||||
| Content-Transfer-Encoding: quoted-printable | ||||
|  | ||||
|  | ||||
| Hi , | ||||
|  | ||||
| If so, stop by and test out our FREE phishing simulator! Find out how | ||||
| susceptible your employee's are to phishing related threats and respond | ||||
| accordingly with our easy to use Security Awareness Learning Management | ||||
| Platform to further education employees at risk=2E | ||||
|  | ||||
| Log in today and get started! | ||||
|  | ||||
| http://www2=2Einfosecinstitute=2Ecom/e/12882/02-utm-campaign-Drip20Campaign= | ||||
| /2cj2ky/270662874 | ||||
| Leif Rosenquist | ||||
|  | ||||
| Enterprise Sales Rep | ||||
|  | ||||
| 708-716-4969 | ||||
|  | ||||
| Unsubscribe | ||||
|  | ||||
| http://www2=2Einfosecinstitute=2Ecom/unsubscribe/u/12882/11c3d36eade6735a1e= | ||||
| 1a0322e3f377035b472e615dde16f55c8fa6f74e331aef/270662874 | ||||
|  | ||||
|  from email communications | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| --_=_swift_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_ | ||||
| Content-Type: text/html; charset=utf-8 | ||||
| Content-Transfer-Encoding: quoted-printable | ||||
|  | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1=2E0 Transitional//EN" "http://ww= | ||||
| w=2Ew3=2Eorg/TR/xhtml1/DTD/xhtml1-transitional=2Edtd"><html xmlns=3D"http:/= | ||||
| /www=2Ew3=2Eorg/1999/xhtml" xml:lang=3D"en" lang=3D"en"><head><meta http-eq= | ||||
| uiv=3D"Content-Type" content=3D"text/html;" /><title>Email Newsletter</titl= | ||||
| e></head><body style=3D"font-family: Helvetica, Arial, sans-serif; font-siz= | ||||
| e: 12px"> | ||||
| <p><span style=3D"font-size: 13=2E3333px; font-family: Arial; vertical-alig= | ||||
| n: baseline; white-space: pre-wrap;">Hi </span><span style=3D"font-size: 14= | ||||
| =2E6667px; font-family: Arial; vertical-align: baseline; white-space: pre-w= | ||||
| rap;">,</span></p> | ||||
|  | ||||
| <p dir=3D"ltr" style=3D"line-height:1=2E38;margin-top:0pt;margin-bottom:0pt= | ||||
| ;"><span id=3D"docs-internal-guid-f82abc6b-e23b-51d2-ef45-7f9c667ba4b1"><sp= | ||||
| an style=3D"font-size: 14=2E6667px; font-family: Arial; vertical-align: bas= | ||||
| eline; white-space: pre-wrap; background-color: transparent;">If so, stop b= | ||||
| y and test out our FREE phishing simulator! Find out how susceptible your e= | ||||
| mployee's are to phishing related threats and respond accordingly with our = | ||||
| easy to use Security Awareness Learning Management Platform to further educ= | ||||
| ation employees at risk=2E<br> | ||||
| <strong><a href=3D"http://www2=2Einfosecinstitute=2Ecom/e/12882/02-utm-camp= | ||||
| aign-Drip20Campaign/2cj2ky/270662874">Log in today and get started!</a></st= | ||||
| rong></span></span></p> | ||||
|  | ||||
| <p dir=3D"ltr" style=3D"font-family: Helvetica, Arial, sans-serif; font-siz= | ||||
| e: 12px; line-height: 1=2E38; margin-top: 0pt; margin-bottom: 0pt;"><br> | ||||
| <span id=3D"docs-internal-guid-e473650a-f69b-5257-f3d6-f502df9476bb"><span = | ||||
| style=3D"font-size: 14=2E6667px; font-family: Arial; vertical-align: baseli= | ||||
| ne; white-space: pre-wrap; background-color: transparent;">Leif Rosenquist<= | ||||
| /span></span></p> | ||||
|  | ||||
| <p dir=3D"ltr" style=3D"font-family: Helvetica, Arial, sans-serif; font-siz= | ||||
| e: 12px; line-height: 1=2E38; margin-top: 0pt; margin-bottom: 0pt;"><span i= | ||||
| d=3D"docs-internal-guid-e473650a-f69b-5257-f3d6-f502df9476bb"><span style= | ||||
| =3D"font-size: 14=2E6667px; font-family: Arial; vertical-align: baseline; w= | ||||
| hite-space: pre-wrap; background-color: transparent;">Enterprise Sales Rep<= | ||||
| /span></span><br> | ||||
| <span style=3D"font-family: Arial; font-size: 14=2E6667px; white-space: pre= | ||||
| -wrap; background-color: transparent;">708-716-4969</span></p> | ||||
|  | ||||
| <hr><span style=3D"font-size:14px;"><a href=3D"http://www2=2Einfosecinstitu= | ||||
| te=2Ecom/unsubscribe/u/12882/11c3d36eade6735a1e1a0322e3f377035b472e615dde16= | ||||
| f55c8fa6f74e331aef/270662874" style=3D"text-decoration:none;"><span style= | ||||
| =3D"color: rgb(105, 105, 105);">Unsubscribe</span></a><span style=3D"color:= | ||||
|  rgb(105, 105, 105);"> from email communications</span></span> | ||||
| <img alt=3D"" src=3D"http://www2=2Einfosecinstitute=2Ecom/r/12882/1/2706628= | ||||
| 74/open/1" /></body></html> | ||||
|  | ||||
| --_=_swift_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_-- | ||||
|  | ||||
|  | ||||
							
								
								
									
										27355
									
								
								test_files/6.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27355
									
								
								test_files/6.eml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										304
									
								
								test_files/7.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										304
									
								
								test_files/7.eml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,304 @@ | ||||
| Return-Path: <2336229@bounce.gruppi.hu> | ||||
| Delivered-To: sj@acts.hu | ||||
| Received: from antispam.localhost (localhost [127.0.0.1]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTP id 0582610084E | ||||
| 	for <1000000@acts.hu>; Mon, 22 Aug 2016 05:16:58 +0200 (CEST) | ||||
| Received: 4000000057ba6eb335da339400e453dc6008 | ||||
| Received: from s3.gruppi.hu (s3.gruppi.hu [85.25.37.131]) | ||||
| 	by mail.acts.hu (Postfix) with ESMTP id BF39110084D | ||||
| 	for <1000000@acts.hu>; Mon, 22 Aug 2016 05:16:57 +0200 (CEST) | ||||
| Received: from localhost.localdomain (xenturymail.hu [192.168.112.1]) | ||||
| 	by xenturymail.hu (Postfix) with ESMTPA id 74F1210209157 | ||||
| 	for <1000000@acts.hu>; Mon, 22 Aug 2016 05:16:47 +0200 (CEST) | ||||
| DKIM-Filter: OpenDKIM Filter v2.10.3 xenturymail.hu 74F1210209157 | ||||
| DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gruppi.hu; s=nl; | ||||
| 	t=1471835807; bh=RBuV58qhtfwzNTZRL+927LnU/Ik3kTmd69ssa6PPh6M=; | ||||
| 	h=Date:To:From:Reply-to:Subject:From; | ||||
| 	b=izsEwPVkkBzrS3LcENI3zhUIntmswM2Ork2opzfAciXAQL0FQBX2osTTCIVmCQwlp | ||||
| 	 jV6Ai9rwJZgTInAsVIQTPfKElfQFnzgG/8L6IiWa4i8ZQDLITfA9dgKRuHjkL/dKF9 | ||||
| 	 yca3+Jimlz4S0iEftfSA4WpWf1vmbaJz9JNz2m74= | ||||
| Date: Mon, 22 Aug 2016 05:16:47 +0200 | ||||
| To: "1000000@acts.hu" <1000000@acts.hu> | ||||
| From: Gruppi <hirlevel@gruppi.hu> | ||||
| Reply-to: Gruppi <hirlevel@gruppi.hu> | ||||
| Subject: =?UTF-8?Q?Phone_Mate_U8_bluetooth_=C3=A9rint=C5=91kijelz=C5=91s_okos?= | ||||
|  =?UTF-8?Q?=C3=B3ra._Rengeteg_hasznos_funkci=C3=B3val,_egy_igaz=C3=A1n_has?= | ||||
|  =?UTF-8?Q?znos_t=C3=A1rs_a_mindennapokban.?= | ||||
| Message-ID: <87170c95bbc06eec92d9bc277dd26188@localhost.localdomain> | ||||
| X-Mailer: PHPMailer 5.2 (http://code.google.com/a/apache-extras.org/p/phpmailer/) | ||||
| MIME-Version: 1.0 | ||||
| Content-Type: multipart/alternative; | ||||
| 	boundary="b1_87170c95bbc06eec92d9bc277dd26188" | ||||
| X-Clapf-spamicity: 4000000057ba6eb335da339400e453dc6008 | ||||
| X-Clapf-spamicity: 1.0000 | ||||
| X-Clapf-spamicity: Yes | ||||
|  | ||||
|  | ||||
|  | ||||
| --b1_87170c95bbc06eec92d9bc277dd26188 | ||||
| Content-Type: text/plain; charset="UTF-8" | ||||
| Content-Transfer-Encoding: 8bit | ||||
|  | ||||
| Mai ajánlat:  | ||||
|      | ||||
|       Exkluzív! | ||||
|    | ||||
|  | ||||
|  | ||||
|    | ||||
|    | ||||
|      Android bluetooth okosóra | ||||
|           Telefonálás+Appok+Zene+Fotózás | ||||
|    | ||||
|    | ||||
|      | ||||
|    | ||||
|    | ||||
|      | ||||
|     	 | ||||
| 	 		 | ||||
| 	    		Eredeti ár:  | ||||
| 	18 990 Ft | ||||
| 	    		Kedvezményes ár:  | ||||
| 		    3 490 Ft | ||||
| 		    	Kedvezmény:   | ||||
| 		    82% | ||||
| 			 | ||||
| 		 | ||||
| 	 | ||||
|    | ||||
|    | ||||
|      | ||||
|        | ||||
|         Legfontosabb infók: | ||||
|           | ||||
| Phone Mate U8 érintőkijelzős okosóra | ||||
| Egy hasznos társ a mindennapokban! | ||||
| Ezzel a kiváló okosórával úgy irányithatod telefonod főbb funkcióit, hogy elő sem kell venned a zsebedből | ||||
| Funkciók: | ||||
| 1.48" kapacitív TFT LCD érintő kijelző | ||||
| Idő / dátum / hét / akkumulátor állapot kijelzés | ||||
| Csengés jelzés bejövő híváskor | ||||
| Csengés jelzés mobiltelefon leválasztásakor | ||||
| Bejövő hívásoknál szám- vagy névkijelzés | ||||
| Válaszolás és tárcsázás csuklóról | ||||
| Stopperóra funkció | ||||
| Kihangosító | ||||
| Támogatott nyelvek: angol, kínai, német, koreai, orosz, spanyol, francia, olasz, portugál, japán, török | ||||
| Zenelejátszás (Bluetooth párosítás után) | ||||
| Telefonkönyv/SMS szinkronizálása (csak Android telefonokon) | ||||
| Bekapcsolható csengés különböző értesítésekre (Android készülékeken Pl.:Facebook, Gmail, WhatsApp, Skype, Wechat, Twitter, email, SMS, stb.. egy alkalmazás segítségével) | ||||
| Elvesztés/lopás elleni figyelmeztető funkció: ha a telefon adott távolságon kívül kerül az óra automatikusan figyelmeztet | ||||
| Távirányítású fényképkészítő funkció: irányíthatod a telefonod fényképkészítéshez a csuklódról | ||||
| Lépésszámláló funkció | ||||
| Csomag tartalma: | ||||
| 1 x Bluetooth karóra | ||||
| 1 x USB kábel | ||||
| 1 x használati utasítás | ||||
| Specifikáció: | ||||
| Anyaga: fém + szilikon | ||||
| Méret: 46*42*9.9 mm | ||||
| Súly: 42.5g | ||||
| CPU: MTK6260-ARM7+CSR3.0 360 Mhz | ||||
| RAM: MTK6260-128M | ||||
| Bluetooth Protocol: A2DP + HFP 1.5 + HS P 1.2 | ||||
| Hatótávolság a telefon és óra között: 10m | ||||
| Töltési idő: kb. 1 óra | ||||
| Beszélgetési idő: kb. 3 óra | ||||
| Zenelejátszási idő: kb. 6 óra | ||||
| Készenléti idő: kb. 160 óra | ||||
| Akkumulátor: Beépített 230mAh akkumulátor | ||||
|  | ||||
|          | ||||
|        | ||||
|      | ||||
|    | ||||
|    | ||||
|    | ||||
|      | ||||
|        | ||||
|          | ||||
|          | ||||
|            | ||||
|             Tegnapi ajánlat: Fedezd fel!   | ||||
|               2 db 3 részes NIGHT ágyneműKiváló pamut alapanyagból | ||||
|              | ||||
|            | ||||
|          | ||||
|          | ||||
|        | ||||
|         Eredeti ár:  | ||||
|  | ||||
| 8990 Ft | ||||
|         Kedvezményes ár:  | ||||
|         1790 Ft | ||||
|         Kedvezmény:   | ||||
|           80% | ||||
|        | ||||
|      | ||||
|    | ||||
|    | ||||
|       | ||||
|    | ||||
|   | ||||
|  | ||||
|  | ||||
|     Hírlevelünkre a www.gruppi.hu oldalon iratkoztál fel, ahol kérted, | ||||
| hogy minden nap  | ||||
|       elküldjük Neked napi ajánlatunkat. Ha nem Te adtad meg az emailcímedet, vagy nem szeretnél a jövőben   | ||||
| értesülni a legjobb ajánlatokról, ide kattintva leiratkozhatsz, vagy írj levelet az ugyfelszolgalat@gruppi.hu címre! | ||||
|  | ||||
|  | ||||
| --b1_87170c95bbc06eec92d9bc277dd26188 | ||||
| Content-Type: text/html; charset="UTF-8" | ||||
| Content-Transfer-Encoding: 8bit | ||||
|  | ||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <head> | ||||
| 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||||
| 	<title>gruppi hírlevél</title> | ||||
| 	<style> | ||||
| 	.productlink {border: 1px; color: #5d60be; background-color: #ffffff; font-size:24px!important; } | ||||
| 	</style> | ||||
| </head> | ||||
| <body> | ||||
| <div style="width:640px;"> | ||||
| <table width="640" align="center" border="0" cellspacing="0" cellpadding="0"> | ||||
|   <tr> | ||||
|     <td style="padding-bottom:10px;"><img alt="" src="http://www.gruppi.hu/nl/hirlevelfejlec.gif"/></td> | ||||
|   </tr> | ||||
| </table> | ||||
|  | ||||
| <table width="604" border="0" cellspacing="0" align="center" cellpadding="0"> | ||||
|  | ||||
|   <tr> | ||||
|     <td> | ||||
|     <table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
|   <tr> | ||||
|     <td width="25%" style="padding-left:8px"> | ||||
|     	<img alt="" src="http://gruppi.hu/html/images/pikto_e.jpg" /> | ||||
|     	<img alt="" width="1" height="1" style="border:none;" src="http://gruppi.hu/newsload.php?hirlevel=1&fromnl=2016-08-22&a=1125&nlus=2336229"> | ||||
|     </td> | ||||
|     <td width="75%"><span style=" font-family:Arial, Geneva, sans-serif; color:#673b20; font-weight:bold; text-transform:uppercase; font-size:16px;">Mai ajánlat: <br /> | ||||
|     </span> | ||||
|      <span style="color:#759538; font-size: 27px; font-family:Arial, Geneva, sans-serif; font-weight:bold; "> Exkluzív!</span></td> | ||||
|   </tr> | ||||
| </table> | ||||
| </td> | ||||
|   </tr> | ||||
|   <tr> | ||||
|     <td style="padding:8px 12px 0 12px"> <span style=" font-family:Arial, Geneva, sans-serif; color:#673b20; font-weight:bold; text-transform:uppercase; font-size:24px;">Android bluetooth okosóra<br /></span><span style="font-family:Arial, Geneva, sans-serif; color:#673b20;  font-size:14px;"> | ||||
|           Telefonálás+Appok+Zene+Fotózás</span></td> | ||||
|   </tr> | ||||
|   <tr> | ||||
|     <td style="padding:24px 0;" background="http://www.gruppi.hu/nl/kephatter.gif" align="center"><a href="http://www.gruppi.hu/ajanlat/android-bluetooth-okosora-20160822/?hirlevel=1&fromnl=2016-08-22&a=1125&nlus=2336229"><img alt="Android bluetooth okosóra" title="Android bluetooth okosóra" src="http://www.gruppi.hu/i/images/gruppi/product/2198/575x341xzc/1471594979_39469.jpg" width="575" height="341" target="_blank" border="0"/></a></td> | ||||
|   </tr> | ||||
|   <tr> | ||||
|     <td background="http://www.gruppi.hu/nl/e_foarbg.gif"> | ||||
|     	<table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
| 	 		<tr> | ||||
| 	    		<td width="33%"  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:8px; color: white;">Eredeti ár:  | ||||
| 	<br><span style="font-size:32px; font-weight:bold;">18 990 Ft</span></td> | ||||
| 	    		<td width="31%"  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:8px; color: white;">Kedvezményes ár: <br> | ||||
| 		    <span style="font-size:32px; font-weight:bold;">3 490 Ft</span></td> | ||||
| 		    	<td width="36%"  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:8px; color: white;">Kedvezmény:  <br> | ||||
| 		    <span style="font-size:32px; font-weight:bold;">82%</span></td> | ||||
| 			</tr> | ||||
| 		</table> | ||||
| 	</td> | ||||
|   </tr> | ||||
|   <tr> | ||||
|     <td><table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
|       <tr> | ||||
|         <td valign="top" style="font-size: 13px; color: #663a1e; font-family: Arial, Geneva, sans-serif; padding: 15px;"><span style="color:#759538; font-weight:bold; text-transform:uppercase; font-size:18px;">Legfontosabb infók:</span><br /> | ||||
|          <ul> | ||||
| <li>Phone Mate U8 érintőkijelzős okosóra</li> | ||||
| <li>Egy hasznos társ a mindennapokban!</li> | ||||
| <li>Ezzel a kiváló okosórával úgy irányithatod telefonod főbb funkcióit, hogy elő sem kell venned a zsebedből</li> | ||||
| <li>Funkciók:</li> | ||||
| <li>1.48" kapacitív TFT LCD érintő kijelző</li> | ||||
| <li>Idő / dátum / hét / akkumulátor állapot kijelzés</li> | ||||
| <li>Csengés jelzés bejövő híváskor</li> | ||||
| <li>Csengés jelzés mobiltelefon leválasztásakor</li> | ||||
| <li>Bejövő hívásoknál szám- vagy névkijelzés</li> | ||||
| <li>Válaszolás és tárcsázás csuklóról</li> | ||||
| <li>Stopperóra funkció</li> | ||||
| <li>Kihangosító</li> | ||||
| <li>Támogatott nyelvek: angol, kínai, német, koreai, orosz, spanyol, francia, olasz, portugál, japán, török</li> | ||||
| <li>Zenelejátszás (Bluetooth párosítás után)</li> | ||||
| <li>Telefonkönyv/SMS szinkronizálása (csak Android telefonokon)</li> | ||||
| <li>Bekapcsolható csengés különböző értesítésekre (Android készülékeken Pl.:Facebook, Gmail, WhatsApp, Skype, Wechat, Twitter, email, SMS, stb.. egy alkalmazás segítségével)</li> | ||||
| <li>Elvesztés/lopás elleni figyelmeztető funkció: ha a telefon adott távolságon kívül kerül az óra automatikusan figyelmeztet</li> | ||||
| <li>Távirányítású fényképkészítő funkció: irányíthatod a telefonod fényképkészítéshez a csuklódról</li> | ||||
| <li>Lépésszámláló funkció</li> | ||||
| <li>Csomag tartalma:</li> | ||||
| <li>1 x Bluetooth karóra</li> | ||||
| <li>1 x USB kábel</li> | ||||
| <li>1 x használati utasítás</li> | ||||
| <li>Specifikáció:</li> | ||||
| <li>Anyaga: fém + szilikon</li> | ||||
| <li>Méret: 46*42*9.9 mm</li> | ||||
| <li>Súly: 42.5g</li> | ||||
| <li>CPU: MTK6260-ARM7+CSR3.0 360 Mhz</li> | ||||
| <li>RAM: MTK6260-128M</li> | ||||
| <li>Bluetooth Protocol: A2DP + HFP 1.5 + HS P 1.2</li> | ||||
| <li>Hatótávolság a telefon és óra között: 10m</li> | ||||
| <li>Töltési idő: kb. 1 óra</li> | ||||
| <li>Beszélgetési idő: kb. 3 óra</li> | ||||
| <li>Zenelejátszási idő: kb. 6 óra</li> | ||||
| <li>Készenléti idő: kb. 160 óra</li> | ||||
| <li>Akkumulátor: Beépített 230mAh akkumulátor</li> | ||||
| </ul></td> | ||||
|         <td valign="bottom" style="text-align:right"><a href="http://www.gruppi.hu/ajanlat/android-bluetooth-okosora-20160822/?hirlevel=1&fromnl=2016-08-22&a=1125&nlus=2336229" target="_blank"><img alt="megnezem" src="http://www.gruppi.hu/nl/e_megnezemgomb1.gif" /></a></td> | ||||
|       </tr> | ||||
|     </table></td> | ||||
|   </tr> | ||||
|    | ||||
|   <tr> | ||||
|     <td height="212" background="http://www.gruppi.hu/nl/e_tegnapiflekk.gif" style="padding-botttom:30px;"><table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
|       <tr> | ||||
|         <td width="36%" style="padding:18px 10px 5px 18px;" align="center"><div style="width:188px; left:-1; background-color: #ffffff;"><img alt="" src="http://www.gruppi.hu/images/gruppi/product/2196/1471594017_62194.jpg" height="114"/></div></td> | ||||
|         <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
|           <tr> | ||||
|             <td width="66%"><div style="font-family:Arial, Geneva, sans-serif; color:#ffffff; font-size:18px; font-weight:bold; line-height:23px;">Tegnapi ajánlat: Fedezd fel!  </div> | ||||
|               <div  style="font-family:Arial, Geneva, sans-serif; color:#ffffff; text-transform:uppercase; font-size:24px; font-weight:bold; line-height:23px;">2 db 3 részes NIGHT ágynemű</div><div style="font-family:Arial, Geneva, sans-serif; color:#ffffff;  font-size:13px;">Kiváló pamut alapanyagból</div></td> | ||||
|             <td width="34%"><span style="text-align:center"><a href="http://www.gruppi.hu/ajanlat/2-db-3-reszes-night-agynemu-20160821/?hirlevel=1&fromnl=2016-08-22&a=1125&nlus=2336229" target="_blank"><img alt="" src="http://www.gruppi.hu/nl/tegnapimegnezem.png" /></a></span></td> | ||||
|           </tr> | ||||
|         </table></td> | ||||
|         </tr> | ||||
|       <tr> | ||||
|         <td  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:0; color: #663a1e;" >Eredeti ár:  | ||||
| <br> | ||||
| <span style="font-size:32px; font-weight:bold;">8990 Ft</span></td> | ||||
|         <td width="30%"  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:0; color: #663a1e;" >Kedvezményes ár: <br> | ||||
|         <span style="font-size:32px; font-weight:bold;">1790 Ft</span></td> | ||||
|         <td width="34%"  style="font-family:Arial, Geneva, sans-serif; font-size:14px; text-align: center; padding-top:0; color: #663a1e;" >Kedvezmény:  <br> | ||||
|           <span style="font-size:32px; font-weight:bold;">80%</span></td> | ||||
|       </tr> | ||||
|     </table></td> | ||||
|   </tr> | ||||
|   <tr> | ||||
|     <td> </td> | ||||
|   </tr> | ||||
|   | ||||
|  | ||||
| <tr> | ||||
|     <td colspan="2" style="background-color:#000000; color: #97999c; padding: 8px; font-size:12px; text-align:center; font-family:Verdana, Geneva, sans-serif">Hírlevelünkre a <a href="http://www.gruppi.hu/?c=main&fromnl=2016-08-22&a=1125&nlus=2336229" style="color:white">www.gruppi.hu</a> oldalon iratkoztál fel, ahol kérted, | ||||
| hogy minden nap  | ||||
|       elküldjük Neked napi ajánlatunkat. <a href="http://www.gruppi.hu/index.php?task=unsubscribe&code=MTAwMDAwMEBhY3RzLmh1&vcode=Njk5MTlncnVwcGk%3D" target="_blank" style="color:#ffffff; font-weight: bold;">Ha nem Te adtad meg az emailcímedet, vagy nem szeretnél a jövőben   | ||||
| értesülni a legjobb ajánlatokról, ide kattintva leiratkozhatsz, vagy írj levelet az ugyfelszolgalat@gruppi.hu címre!</a></td> | ||||
|   </tr> | ||||
| </table> | ||||
| </div>	 | ||||
|  | ||||
| 	 | ||||
| 	 | ||||
| </body> | ||||
| </html> | ||||
|  | ||||
|  | ||||
|  | ||||
| --b1_87170c95bbc06eec92d9bc277dd26188-- | ||||
|  | ||||
|  | ||||
							
								
								
									
										2061
									
								
								test_files/8.eml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2061
									
								
								test_files/8.eml
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										32
									
								
								tests/EmailTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								tests/EmailTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,32 @@ | ||||
| <?php | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| include_once("webui/system/model.php"); | ||||
| include_once("webui/model/search/search.php"); | ||||
|  | ||||
|  | ||||
| final class SearchSearchTest extends TestCase { | ||||
|  | ||||
|    public function providerTestFixEmailAddressForSphinx() { | ||||
|       return [ | ||||
|          ['aaa@aaa.fu', 'aaaXaaaXfu'], | ||||
|          ['list-507327664@mail.aaa.fu', 'listX507327664XmailXaaaXfu'], | ||||
|          ['aaa+bbb@aaa.fu', 'aaaXbbbXaaaXfu'], | ||||
|          ['ahahah_aiai@aaa.fu', 'ahahahXaiaiXaaaXfu'], | ||||
|          ['aaa|@bbb@ccc.fu', 'aaa|bbbXcccXfu'] | ||||
|       ]; | ||||
|    } | ||||
|  | ||||
|  | ||||
|    /** | ||||
|     * @dataProvider providerTestFixEmailAddressForSphinx | ||||
|     */ | ||||
|  | ||||
|    public function test_get_boundary($input, $expected_result) { | ||||
|       $result = ModelSearchSearch::fix_email_address_for_sphinx($input); | ||||
|       $this->assertEquals($result, $expected_result); | ||||
|    } | ||||
|  | ||||
|  | ||||
| } | ||||
							
								
								
									
										28
									
								
								tests/FormatTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										28
									
								
								tests/FormatTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,28 @@ | ||||
| <?php | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| include_once("webui/system/model.php"); | ||||
| include_once("webui/model/health/health.php"); | ||||
|  | ||||
| final class FormatTest extends TestCase | ||||
| { | ||||
|  | ||||
|    public function providerTestTimeFormatValues(){ | ||||
|       return [ | ||||
|          ['0', '0.00 ms'], | ||||
|          ['15', '15.00 sec'], | ||||
|          ['0.87', '870.00 ms'] | ||||
|       ]; | ||||
|    } | ||||
|  | ||||
|    /** | ||||
|     * @dataProvider providerTestTimeFormatValues | ||||
|     */ | ||||
|  | ||||
|    public function test_format_time_1($timeval, $expected_result) { | ||||
|       $result = ModelHealthHealth::format_time($timeval); | ||||
|       $this->assertEquals($result, $expected_result); | ||||
|    } | ||||
|  | ||||
| } | ||||
							
								
								
									
										35
									
								
								tests/MiscTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								tests/MiscTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| <?php | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| define('DIR_SYSTEM', dirname(dirname(__FILE__)) . '/webui/system/'); | ||||
|  | ||||
| include_once("webui/system/model.php"); | ||||
| include_once("webui/model/search/message.php"); | ||||
|  | ||||
| final class SearchMessageTest extends TestCase { | ||||
|  | ||||
|    public function providerTestNiceSizeValues() { | ||||
|       return [ | ||||
|          ['0', '1k'], | ||||
|          ['1000', '1k'], | ||||
|          ['2000', '2k'], | ||||
|          ['4300', '4k'], | ||||
|          ['4700', '5k'], | ||||
|          ['3000000', '3.0M'], | ||||
|          ['4240000', '4.2M'], | ||||
|          ['6810000', '6.8M'] | ||||
|       ];  | ||||
|    } | ||||
|  | ||||
|    /** | ||||
|     * @dataProvider providerTestNiceSizeValues | ||||
|     */ | ||||
|  | ||||
|    public function test_nice_size($input, $expected_result) { | ||||
|       $result = ModelSearchMessage::NiceSize($input); | ||||
|       $this->assertEquals($result, $expected_result); | ||||
|    } | ||||
|  | ||||
|  | ||||
| } | ||||
							
								
								
									
										39
									
								
								tests/ParseMessageTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								tests/ParseMessageTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,39 @@ | ||||
| <?php | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| require_once dirname(dirname(__FILE__)) . '/webui/system/helper/mime.php'; | ||||
|  | ||||
|  | ||||
| final class MailParserTest extends TestCase { | ||||
|  | ||||
|    public function providerTestParseMessage() { | ||||
|       return [ | ||||
|          ["1.eml", 1, ["Liebe Gueste,\n\ndie Einarbeitung der Rechen- und Summenfunktionen ins RK-Formular"]], | ||||
|          ["2.eml", 1, ["Hallo!\nDie seltsamen Zeilenumbr=C3=BCche treten tats=C3=A4chlich auf."]], | ||||
|          ["3.eml", 1, ["\n\nCan we discuss? Send Reply For more information, THANKS."]], | ||||
|          ["4.eml", 2, ["=0D=0A=0D=0A=0D=0A=0D=0A", "<HTML><HEAD>=0D=0A<META http-equiv=3D\"Content-Type\" content=3D\"te="]], | ||||
|          ["5.eml", 2, ["\nHi ,\n\nIf so, stop by and test out our FREE phishing simulator! Find out how", "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1=2E0 Transitional//EN\" \"http://ww=\nw=2Ew3=2Eorg/TR/xhtml1/DTD/xhtml1-transitional=2Edtd\"><html xmlns=3D\"http:/="]], | ||||
|          ["6.eml", 2, ["RGVhciBTaXJzLA0KDQpHbGFkIHRvIGhlYXIgdGhhdCB5b3UncmUgb24gdGhlIGZpbHRyYXRpb24g", "<html><head><meta http-equiv=3D\"content-type\" content=3D\"text/html; charse="]], | ||||
|          ["7.eml", 2, ["Mai ajánlat: \n    \n      Exkluzív!", "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"]], | ||||
|          ["8.eml", 2, ["Hello,\n\nYou have received a newsletter from Chemol Travel.", "<html xmlns=3D\"http://www.w3.org/1999/xhtml\" xmlns:v=3D\"urn:schemas-micro=\nsoft-com:vml\" xmlns:o=3D\"urn:schemas-microsoft-com:office:office\">"]], | ||||
|       ]; | ||||
|  | ||||
|    }    | ||||
|  | ||||
|  | ||||
|    /** | ||||
|     * @dataProvider providerTestParseMessage | ||||
|     */ | ||||
|    public function test_parse_message($input, $expected_part_count, $expected_body) { | ||||
|       $message = file_get_contents(dirname(dirname(__FILE__)) . "/test_files/" . $input); | ||||
|       Piler_Mime_Decode::ParseMessage($message, $parts); | ||||
|  | ||||
|       $this->assertEquals(count($parts), $expected_part_count); | ||||
|  | ||||
|       for($i=0; $i<count($parts); $i++) { | ||||
|          $this->assertEquals($expected_body[$i], substr($parts[$i]['body'], 0, strlen($expected_body[$i]))); | ||||
|       } | ||||
|    } | ||||
|  | ||||
| } | ||||
							
								
								
									
										76
									
								
								tests/SplitMessageTest.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								tests/SplitMessageTest.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,76 @@ | ||||
| <?php | ||||
|  | ||||
| use PHPUnit\Framework\TestCase; | ||||
|  | ||||
| require_once dirname(dirname(__FILE__)) . '/webui/system/helper/mime.php'; | ||||
|  | ||||
|  | ||||
| final class SplitMessageTest extends TestCase { | ||||
|  | ||||
|    public function providerTestSplitMessage() { | ||||
|       return [ | ||||
|          ["From: aaa\r\nTo:bbb\r\nSubject: test\r\n\r\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\r\nTo:bbb\r\nCC ccc\r\nSubject: test\r\n\r\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\r\nTo:bbb\r\nSubject: test\r\n\r\n\r\n\r\nThis is a test\nAaa\n", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "\n\nThis is a test\nAaa\n"], | ||||
|  | ||||
|          ["From: aaa\r\nTo:bbb\r\nSubject: test\r\nContent-type: text/html\r\n\r\n\r\nThis is a test\nAaa\n", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/html')), | ||||
|           "\nThis is a test\nAaa\n"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nContent-Type: text/plain\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nDate: Sun, 17 Apr 2016 22:40:03 +0800\nDKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=chemoltravel.hu; s=ml;\n\tt=1471888357; bh=A/l/HLQe3HM4Xc4jFxAmhaWVCMU=;\n\th=Date:To:From:Subject:Sender:From:To:Subject:Date;\n\tb=JlEqXiAKBOoT/YyXKTMsXnEphh2J6sXxgNmbKbGybjo3cU1rgQEL0m1h26gl5AaBP\nContent-Type: text/plain\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'subject' => 'test', 'date' => 'Sun, 17 Apr 2016 22:40:03 +0800', 'dkim-signature' => 'v=1; a=rsa-sha1; c=relaxed/relaxed; d=chemoltravel.hu; s=ml;  t=1471888357; bh=A/l/HLQe3HM4Xc4jFxAmhaWVCMU=;  h=Date:To:From:Subject:Sender:From:To:Subject:Date;  b=JlEqXiAKBOoT/YyXKTMsXnEphh2J6sXxgNmbKbGybjo3cU1rgQEL0m1h26gl5AaBP', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nContent-Type: text/PLAIN\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nContent-Type: text/plain; charset=\"ISO-8859-1\"\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'content-type' => array('type' => 'text/plain', 'charset' => 'ISO-8859-1')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nMIME-Version: 1.0\nContent-Type: multipart/alternative; boundary=\"_=_SWIFT_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_\"\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'mime-version' => '1.0', 'content-type' => array('type' => 'multipart/alternative', 'boundary' => '_=_SWIFT_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nMIME-Version: 1.0\nContent-Type: multipart/alternative;\n boundary=\"_=_SWIFT_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_\"\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'mime-version' => '1.0', 'content-type' => array('type' => 'multipart/alternative', 'boundary' => '_=_SWIFT_v4_1460476188_145aa333fc0127705a7e904aab6d1957_=_')), | ||||
|           "This is a test"], | ||||
|  | ||||
|          ["From: aaa\nTo:bbb\nSubject: test\nMIME-Version: 1.0\nContent-Type: multipart/related;\n\ttype=\"multipart/alternative\";\n\tboundary=\"----=_NextPart_000_0006_01D195BC.69E26510\"\n\nThis is a test", | ||||
|           array('from' => 'aaa', 'to' => 'bbb', 'cc' => '', 'date' => '', 'subject' => 'test', 'mime-version' => '1.0', 'content-type' => array('type' => 'multipart/alternative', 'boundary' => '----=_NextPart_000_0006_01D195BC.69E26510')), | ||||
|           "This is a test"], | ||||
|  | ||||
|  | ||||
|       ];   | ||||
|    }    | ||||
|  | ||||
|  | ||||
|    /** | ||||
|     * @dataProvider providerTestSplitMessage | ||||
|     */ | ||||
|    public function test_split_message($input, $expected_headers, $expected_body) { | ||||
|       Piler_Mime_Decode::splitMessage($input, $headers, $body); | ||||
|  | ||||
|       $this->assertEquals($headers, $expected_headers); | ||||
|       $this->assertEquals($body, $expected_body); | ||||
|    } | ||||
|  | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user