diff options
Diffstat (limited to 'kmail/kmmessage.cpp')
-rw-r--r-- | kmail/kmmessage.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kmail/kmmessage.cpp b/kmail/kmmessage.cpp index ba8fba5af..c33fdf6a2 100644 --- a/kmail/kmmessage.cpp +++ b/kmail/kmmessage.cpp @@ -867,7 +867,8 @@ KMMessage* KMMessage::createReply( KMail::ReplyStrategy replyStrategy, TQString selection /* = TQString() */, bool noQuote /* = false */, bool allowDecryption /* = true */, - const TQString &tmpl /* = TQString() */ ) + const TQString &tmpl /* = TQString() */, + const TQString &originatingAccount /* = TQString() */ ) { KMMessage* msg = new KMMessage; TQString mailingListStr, replyToStr, toStr; @@ -1048,6 +1049,10 @@ KMMessage* KMMessage::createReply( KMail::ReplyStrategy replyStrategy, } } + if (!originatingAccount.isEmpty()) { + msg->setOriginatingAccountName(originatingAccount); + } + msg->setTo(toStr); refStr = getRefStr(); |