branch develop-1.1.x updated (5c86af6d -> 874bad62)
This is an automated email from the git hooks/post-receive script. New change to branch develop-1.1.x in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git from 5c86af6d [jgitflow-maven-plugin]Updating develop poms back to pre merge state new b24bc973 fixes 9580 Certains mails restent ne sont pas intégrés à l'application (taille négative)) new 874bad62 delete unuseful file The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 874bad62be6d1975926ef693f632e518c0113a59 Author: Kevin Morin <morin@codelutin.com> Date: Thu Jan 18 07:42:57 2018 +0100 delete unuseful file commit b24bc97351b084cef0b14bbaa7fd78296778371d Author: Kevin Morin <morin@codelutin.com> Date: Fri Jan 12 15:19:33 2018 +0100 fixes 9580 Certains mails restent ne sont pas intégrés à l'application (taille négative)) Summary of changes: .../franciaflex/faxtomail/services/service/EmailServiceImpl.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop-1.1.x in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit b24bc97351b084cef0b14bbaa7fd78296778371d Author: Kevin Morin <morin@codelutin.com> Date: Fri Jan 12 15:19:33 2018 +0100 fixes 9580 Certains mails restent ne sont pas intégrés à l'application (taille négative)) --- .../services/service/EmailServiceImpl.java | 8 +++- .../src/test/resources/emails/test0.eml | 54 ++++++++++++++++++++++ 2 files changed, 61 insertions(+), 1 deletion(-) diff --git a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailServiceImpl.java b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailServiceImpl.java index f2c578b9..928122cd 100644 --- a/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailServiceImpl.java +++ b/faxtomail-service/src/main/java/com/franciaflex/faxtomail/services/service/EmailServiceImpl.java @@ -1461,7 +1461,13 @@ public class EmailServiceImpl extends FaxToMailServiceSupport implements EmailSe } public OriginalEmail originalEmailFromMessage(MimeMessage message, Charset charset) throws MessagingException, IOException { - ByteArrayOutputStream baos = new ByteArrayOutputStream(message.getSize()); + ByteArrayOutputStream baos; + int messageSize = message.getSize(); + if (messageSize > 0) { + baos = new ByteArrayOutputStream(messageSize); + } else { + baos = new ByteArrayOutputStream(); + } message.writeTo(baos); OriginalEmail originalEmail = getPersistenceContext().getOriginalEmailDao().newInstance(); originalEmail.setContent(baos.toString()); diff --git a/faxtomail-service/src/test/resources/emails/test0.eml b/faxtomail-service/src/test/resources/emails/test0.eml new file mode 100644 index 00000000..30b504c5 --- /dev/null +++ b/faxtomail-service/src/test/resources/emails/test0.eml @@ -0,0 +1,54 @@ +Received: from edimburgo.mep.pandasecurity.com (92.54.27.135) by + S8-EXC-P01.mac-groupe.net (192.168.100.201) with Microsoft SMTP Server id + 14.1.289.1; Wed, 10 Jan 2018 22:44:24 +0100 +Received: from [212.27.42.4] (helo=smtp4-g21.free.fr) by + edimburgo.mep.pandasecurity.com with esmtps + (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from + <avo.fenetres@free.fr>) id 1eZO8a-000BLX-0z for adv91@franciaflex.com; Wed, + 10 Jan 2018 22:42:20 +0100 +Received: from [192.168.0.185] (unknown [88.164.213.245]) (Authenticated + sender: avo.fenetres) by smtp4-g21.free.fr (Postfix) with ESMTPSA id + 566ED19F55C for <adv91@franciaflex.com>; Wed, 10 Jan 2018 22:42:17 +0100 + (CET) +From: =?utf-8?B?YXZvIGZlbsOqdHJlcw==?= <avo.fenetres@free.fr> +To: - ftm_mailfx01 - <adv09@franciaflex.com> +Subject: Re: ATTENTE REPONSE URGENTE / ref ALIBERTI / WT0477 / Y03139 / AVO + FENETRES / FME +Thread-Topic: ATTENTE REPONSE URGENTE / ref ALIBERTI / WT0477 / Y03139 / AVO + FENETRES / FME +Thread-Index: AQHTilwuslW8mCjiSUibqkTq4rE9tQ== +Disposition-Notification-To: =?utf-8?B?YXZvIGZlbsOqdHJlcw==?= + <avo.fenetres@free.fr> +Date: Wed, 10 Jan 2018 21:42:21 +0000 +Message-ID: <ebfb6c16-13ce-f863-dd0f-f5e3998a2534@free.fr> +References: <14258829.17.1515581430153.JavaMail.CRO@DI-SP8-RD11> +In-Reply-To: <14258829.17.1515581430153.JavaMail.CRO@DI-SP8-RD11> +Content-Language: fr +X-MS-Exchange-Organization-AuthSource: S8-EXC-P01.mac-groupe.net +X-MS-Has-Attach: +X-MS-Exchange-Organization-SenderIdResult: None +X-MS-Exchange-Organization-SCL: 0 +X-MS-Exchange-Organization-PCL: 2 +X-MS-Exchange-Organization-PRD: free.fr +X-MS-TNEF-Correlator: +received-spf: None (S8-EXC-P01.mac-groupe.net: avo.fenetres@free.fr does not + designate permitted sender hosts) +Content-Type: text/plain; charset="utf-8" +Content-ID: <E251EF99C3B2C74AB1591E2B093A0E95@mac-groupe.com> +Content-Transfer-Encoding: base64 +MIME-Version: 1.0 + +Qm9uam91ciwNClRyw6hzIGJpZW4gbWVyY2kgZGUgZmFicmlxdWVyIMOgIDQ5MSBtbSBwb3VyIGxh +IGhhdXRldXIuDQpDb3JkaWFsZW1lbnQNCk0gU2FsdmkNCg0KTGUgMTAvMDEvMjAxOCDDoCAxMTo1 +MCwgYWR2OTFAZnJhbmNpYWZsZXguY29tIGEgw6ljcml0IDoNCj4gQm9uam91ciwNCj4NCj4NCj4g +TWVyY2kgZGUgYmllbiB2b3Vsb2lyIHLDqXBvbmRyZSBhdXggw6lsw6ltZW50cyBzdWl2YW50LCBw +b3VyIHF1ZSBub3VzIHB1aXNzaW9ucyBlbnJlZ2lzdHJlciBjb3JyZWN0ZW1lbnQgdm90cmUgY29t +bWFuZGUgOg0KPg0KPiAtbGEgaGF1dGV1ciBmYWJyaWNhdGlvbiBtaW5pIGR1IHJlcMOocmUgUkVN +SVNFIGVzdCBkZSA0OTFtbS4gQSB2b3VzIGxpcmUgYm9uIHBvdXIgYWNjb3JkIHBvdXIgZmFicmlj +YXRpb24gZHUgY2jDonNzaXMgw6AgY2V0dGUgaGF1dGV1cg0KPg0KPiBDb3JkaWFsZW1lbnQuDQo+ +DQo+IENoYXJsZXMgUk9VWEVMDQo+IEFkbWluaXN0cmF0aW9uIGRlcyB2ZW50ZXMuDQo+IEZSQU5D +SUFGTEVYDQo+IFTDqWw6IDA4MTAgODIwIDUwMA0KPiBGYXg6IDA4MTAgODIwIDUxMA0KPg0KPiBQ +b3VyIG1lIGpvaW5kcmUgcGFyIG1haWwNCj4gYWR2InZvdHJlIGRlcHQiQGZyYW5jaWFmbGV4LmNv +bQ0KPiBtZXJjaSBkZSBuZSBwYXMgcsOpcG9uZHJlIMOgIGFkdm5vcmVwbHkNCg0KDQotLQ0KTSBT +YWx2aQ0KQVZPIEZlbsOqdHJlcw0KOTExMDAgVmlsbGFiw6kNCjAxLjY5LjkwLjU3Ljg0DQowNy43 +MC45MS45MS4zMw0KYXZvLmZlbmV0cmVzQGZyZWUuZnINCg0K -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch develop-1.1.x in repository faxtomail. See https://gitlab.nuiton.org/codelutin/faxtomail.git commit 874bad62be6d1975926ef693f632e518c0113a59 Author: Kevin Morin <morin@codelutin.com> Date: Thu Jan 18 07:42:57 2018 +0100 delete unuseful file --- .../src/test/resources/emails/test0.eml | 54 ---------------------- 1 file changed, 54 deletions(-) diff --git a/faxtomail-service/src/test/resources/emails/test0.eml b/faxtomail-service/src/test/resources/emails/test0.eml deleted file mode 100644 index 30b504c5..00000000 --- a/faxtomail-service/src/test/resources/emails/test0.eml +++ /dev/null @@ -1,54 +0,0 @@ -Received: from edimburgo.mep.pandasecurity.com (92.54.27.135) by - S8-EXC-P01.mac-groupe.net (192.168.100.201) with Microsoft SMTP Server id - 14.1.289.1; Wed, 10 Jan 2018 22:44:24 +0100 -Received: from [212.27.42.4] (helo=smtp4-g21.free.fr) by - edimburgo.mep.pandasecurity.com with esmtps - (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from - <avo.fenetres@free.fr>) id 1eZO8a-000BLX-0z for adv91@franciaflex.com; Wed, - 10 Jan 2018 22:42:20 +0100 -Received: from [192.168.0.185] (unknown [88.164.213.245]) (Authenticated - sender: avo.fenetres) by smtp4-g21.free.fr (Postfix) with ESMTPSA id - 566ED19F55C for <adv91@franciaflex.com>; Wed, 10 Jan 2018 22:42:17 +0100 - (CET) -From: =?utf-8?B?YXZvIGZlbsOqdHJlcw==?= <avo.fenetres@free.fr> -To: - ftm_mailfx01 - <adv09@franciaflex.com> -Subject: Re: ATTENTE REPONSE URGENTE / ref ALIBERTI / WT0477 / Y03139 / AVO - FENETRES / FME -Thread-Topic: ATTENTE REPONSE URGENTE / ref ALIBERTI / WT0477 / Y03139 / AVO - FENETRES / FME -Thread-Index: AQHTilwuslW8mCjiSUibqkTq4rE9tQ== -Disposition-Notification-To: =?utf-8?B?YXZvIGZlbsOqdHJlcw==?= - <avo.fenetres@free.fr> -Date: Wed, 10 Jan 2018 21:42:21 +0000 -Message-ID: <ebfb6c16-13ce-f863-dd0f-f5e3998a2534@free.fr> -References: <14258829.17.1515581430153.JavaMail.CRO@DI-SP8-RD11> -In-Reply-To: <14258829.17.1515581430153.JavaMail.CRO@DI-SP8-RD11> -Content-Language: fr -X-MS-Exchange-Organization-AuthSource: S8-EXC-P01.mac-groupe.net -X-MS-Has-Attach: -X-MS-Exchange-Organization-SenderIdResult: None -X-MS-Exchange-Organization-SCL: 0 -X-MS-Exchange-Organization-PCL: 2 -X-MS-Exchange-Organization-PRD: free.fr -X-MS-TNEF-Correlator: -received-spf: None (S8-EXC-P01.mac-groupe.net: avo.fenetres@free.fr does not - designate permitted sender hosts) -Content-Type: text/plain; charset="utf-8" -Content-ID: <E251EF99C3B2C74AB1591E2B093A0E95@mac-groupe.com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S4zMw0KYXZvLmZlbmV0cmVzQGZyZWUuZnINCg0K -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm