[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdepim] importwizard/evolutionv3: Evolution support sendmail too
From: Montel Laurent <montel () kde ! org>
Date: 2012-03-30 11:46:22
Message-ID: 20120330114622.B8979A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit e5ca274781cf799f0c4bc1c6ba17c50f050aa1b0 by Montel Laurent.
Committed on 30/03/2012 at 13:46.
Pushed by mlaurent into branch 'master'.
Evolution support sendmail too
M +10 -7 importwizard/evolutionv3/evolutionsettings.cpp
http://commits.kde.org/kdepim/e5ca274781cf799f0c4bc1c6ba17c50f050aa1b0
diff --git a/importwizard/evolutionv3/evolutionsettings.cpp \
b/importwizard/evolutionv3/evolutionsettings.cpp index 6d7b824..c807396 100644
--- a/importwizard/evolutionv3/evolutionsettings.cpp
+++ b/importwizard/evolutionv3/evolutionsettings.cpp
@@ -280,14 +280,17 @@ void EvolutionSettings::extractAccountInfo(const QString& info)
if ( smtpTag == QLatin1String( "url" ) ) {
qDebug()<<" smtp.text() :"<<smtp.text();
QUrl smtpUrl( smtp.text() );
+ const QString scheme = smtpUrl.scheme();
+ if(scheme == QLatin1String("sendmail")) {
+ transport->setType(MailTransport::Transport::EnumType::Sendmail);
+ } else {
+ transport->setHost( smtpUrl.host() );
+ transport->setName( smtpUrl.host() );
- transport->setHost( smtpUrl.host() );
- transport->setName( smtpUrl.host() );
-
- const int port = smtpUrl.port();
- if ( port > 0 )
- transport->setPort( port );
-
+ const int port = smtpUrl.port();
+ if ( port > 0 )
+ transport->setPort( port );
+ }
} else {
qDebug()<<" smtp tag unknow :"<<smtpTag;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic