kmail: use default transport for message redirect. This resolves issue #54.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/67/head
Michele Calgaro 3 years ago
parent b6aa0782c3
commit ed455b74cd
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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();

Loading…
Cancel
Save