summaryrefslogtreecommitdiffstats
path: root/kmail
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2022-04-06 09:59:52 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-04-06 09:59:52 +0900
commited455b74cd3b69cdb1549463bad824301f595ad0 (patch)
tree80f995d9bf6e3bd130c52dcfeeddc6c23e5fed24 /kmail
parentb6aa0782c35b41c919fda282aaa9a0dc862fc0e7 (diff)
downloadtdepim-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>
Diffstat (limited to 'kmail')
-rw-r--r--kmail/kmsender.cpp3
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();
}