diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-04-06 09:59:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-04-06 09:59:52 +0900 |
commit | ed455b74cd3b69cdb1549463bad824301f595ad0 (patch) | |
tree | 80f995d9bf6e3bd130c52dcfeeddc6c23e5fed24 | |
parent | b6aa0782c35b41c919fda282aaa9a0dc862fc0e7 (diff) | |
download | tdepim-ed455b74cd3b69cdb1549463bad824301f595ad0.tar.gz tdepim-ed455b74cd3b69cdb1549463bad824301f595ad0.zip |
kmail: use default transport for message redirect. This resolves issue #54.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r-- | kmail/kmsender.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp index 9a8ae5be7..e63add04d 100644 --- a/kmail/kmsender.cpp +++ b/kmail/kmsender.cpp @@ -483,6 +483,9 @@ void KMSender::doSendMsg() msgTransport = mCurrentMsg->headerField("X-KMail-Transport"); } if ( msgTransport.isEmpty() ) { + msgTransport = GlobalSettings::self()->defaultTransport(); + } + if ( msgTransport.isEmpty() ) { const TQStringList sl = KMTransportInfo::availableTransports(); if (!sl.empty()) msgTransport = sl.front(); } |