summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-27 19:03:47 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-27 19:03:47 (GMT)
commitb8b421756da80d8df6d8413e697132ba62495eef (patch)
tree5b399c2b24e4d3e45917721c0606934a51d94de5
parent70173a8245c6f0401619f5be9cc4770451feeb21 (diff)
Don't add sender
-rw-r--r--messagecomposer/autotests/messagefactorytest.cpp2
-rw-r--r--messagecomposer/src/helper/messagefactory.cpp1
2 files changed, 1 insertions, 2 deletions
diff --git a/messagecomposer/autotests/messagefactorytest.cpp b/messagecomposer/autotests/messagefactorytest.cpp
index bd2c86d..458f754 100644
--- a/messagecomposer/autotests/messagefactorytest.cpp
+++ b/messagecomposer/autotests/messagefactorytest.cpp
@@ -202,7 +202,7 @@ void MessageFactoryTest::testCreateReplyToAllWithUseSender()
"Date: %1\n"
"User-Agent: %2\n"
"Cc: blo <blo@blo.org>, bli <bli@bli.org>, blu <blu@blu.org>, bly <bly@bly.org>\n"
- "To: Bla1 <identity2@bla.com>, Bla <identity1@bla.com>\n"
+ "To: Bla <identity1@bla.com>\n"
"Subject: Re: Plain Message Test\n"
"Content-Type: text/plain; charset=\"US-ASCII\"\n"
"Content-Transfer-Encoding: 8Bit\nMIME-Version: 1.0\n"
diff --git a/messagecomposer/src/helper/messagefactory.cpp b/messagecomposer/src/helper/messagefactory.cpp
index b2b67aa..071f902 100644
--- a/messagecomposer/src/helper/messagefactory.cpp
+++ b/messagecomposer/src/helper/messagefactory.cpp
@@ -213,7 +213,6 @@ MessageFactory::MessageReply MessageFactory::createReply()
if (!sender.isEmpty() && m_identityManager->thatIsMe(fromAddress)) {
// strip all my addresses from the list of recipients
toList = stripMyAddressesFromAddressList(recipients, m_identityManager);
- toList += KMime::Types::Mailbox::listFromUnicodeString(sender);
toList += m_origMsg->from()->mailboxes();
stripMyAddresses = false;
} else {