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

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit ed455b74cd)
r14.0.x r14.0.12
Michele Calgaro 3 years ago
parent 5b4e88a71e
commit 29d3e9ad8c
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