From b42d5b4fb87f5046740fdfc5772e0ece54cad793 Mon Sep 17 00:00:00 2001 From: vm2mv Date: Mon, 21 Nov 2016 11:49:49 +0300 Subject: [PATCH 1/2] * Net: fixed adding content part to mail message with empty content-disposition --- Net/src/MailMessage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Net/src/MailMessage.cpp b/Net/src/MailMessage.cpp index 3fa4641ba..db7c54f69 100644 --- a/Net/src/MailMessage.cpp +++ b/Net/src/MailMessage.cpp @@ -119,6 +119,10 @@ namespace pPS->headers().set(it->first, it->second); } + + if (contentDisp.empty()) + _pMsg->addContent(pPS, cte); + if (!added) delete pPS; } } From 2fbf87c518723ff73b8d440fe6b28b1a19d9a4de Mon Sep 17 00:00:00 2001 From: vm2mv Date: Tue, 22 Nov 2016 14:29:39 +0300 Subject: [PATCH 2/2] * Net: fixed adding content to mail message when content-disposition is empty --- Net/src/MailMessage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Net/src/MailMessage.cpp b/Net/src/MailMessage.cpp index db7c54f69..a0c23dbf6 100644 --- a/Net/src/MailMessage.cpp +++ b/Net/src/MailMessage.cpp @@ -121,7 +121,10 @@ namespace } if (contentDisp.empty()) + { _pMsg->addContent(pPS, cte); + added = true; + } if (!added) delete pPS; }