From ed455b74cd3b69cdb1549463bad824301f595ad0 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Apr 2022 09:59:52 +0900 Subject: [PATCH] kmail: use default transport for message redirect. This resolves issue #54. Signed-off-by: Michele Calgaro --- kmail/kmsender.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kmail/kmsender.cpp b/kmail/kmsender.cpp index 9a8ae5be..e63add04 100644 --- a/kmail/kmsender.cpp +++ b/kmail/kmsender.cpp @@ -482,6 +482,9 @@ void KMSender::doSendMsg() if ( msgTransport.isEmpty() ) { 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();