When not using kwallet, kmail can store the smtp password into kmailrc, which works,

but for every mail sent after that it asked again: do you want to store the password into the config file? -> fixed

svn path=/trunk/KDE/kdepim/; revision=630634
wilder-work
David Faure 19 years ago
parent add5c59e44
commit f050e5628e
  1. 4
      kmtransport.cpp

@ -130,15 +130,15 @@ void KMTransportInfo::writeConfig(int id)
if ( storePasswd() ) {
// write password into the wallet if possible and necessary
bool passwdStored = false;
Wallet *wallet = kmkernel->wallet();
if ( mPasswdDirty ) {
Wallet *wallet = kmkernel->wallet();
if ( wallet && wallet->writePassword( "transport-" + QString::number(mId), passwd() ) == 0 ) {
passwdStored = true;
mPasswdDirty = false;
mStorePasswdInConfig = false;
}
} else {
passwdStored = !mStorePasswdInConfig; // already in the wallet
passwdStored = wallet ? !mStorePasswdInConfig /*already in the wallet*/ : config->hasKey("pass");
}
// wallet not available, ask the user if we should use the config file instead
if ( !passwdStored && ( mStorePasswdInConfig || KMessageBox::warningYesNo( 0,

Loading…
Cancel
Save