Bug 98545 - kmail does not remember pop3 passwords
Summary: kmail does not remember pop3 passwords
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-04 07:55 UTC by mathpup
Modified: 2007-09-14 12:17 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mathpup 2005-02-04 07:55:13 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          GCC 3.4.3 
OS:                Linux

KMail does not remember my pop3 passwords after I close KDE and restart. When I start KDE, KMail prompts for passwords for my POP3 accounts. I enter the passwords and check the "remember passwords" box. I double-check that the accounts have "store POP3 password" in the KMail settings. I even verify that KWallet has entries for KMail. But when I restart KDE and KMail, KMail does not have my POP3 passwords and asks me for them again!
Comment 1 Tassilo Horn 2005-02-17 09:16:19 UTC
Hi,
I can confirm that with kmail-1.7.92. It also forgets my IMAP-passwords and SMTP-passwords.
Comment 2 Tassilo Horn 2005-02-17 09:31:39 UTC
I've investigated this a little further. 
After typing all passwords and closing kmail, they're all in my kmail's kwallet entry. After closing this KDE-session and logging in again, there's no kwallet entry for kmail anymore...
Comment 3 Volker Krause 2005-02-17 11:39:11 UTC
Seems to be also caused by bug #97716, see its report for a workaround.
Comment 4 jsweatte 2005-08-27 04:51:54 UTC
kmail 1.8.2, kde 3.4.2 level a on suse 9.3 (patches current) I have the same problem with pop3 password being dropped. I enter it in kmail settings, I have kwallet disabled, it works fine until I log out/ shut down/ login again. Also kwallet prompts me again on the login asking if I want to store the password but as far as I can tell kwallet has remained disabled (check it in control center)
Comment 5 mathpup 2005-08-27 06:06:23 UTC
I wonder if this is a problem with the migration of the config files from one 
version of kmail and kwallet to another version. It's been a while, but I am 
thinking that when kmail started optionally using kwallet, that's when I 
started having problems. And I think I just kept deleting and storing my 
password with different sequences of starting kmail versus kwalletmanager 
first.



On Friday 26 August 2005 9:51 pm, jsweatte@nc.rr.com wrote:
[bugs.kde.org quoted mail]
Comment 6 Thiago Macieira 2005-08-30 11:26:41 UTC
KMail >= 1.8 requires KWallet to be enabled in order to store passwords.

Does anyone have this problem with the wallet enabled, in recent versions?
Comment 7 David Faure 2006-09-14 11:20:48 UTC
SVN commit 584180 by dfaure:

Write the password (to wallet or config file) immediately after setting it in the auth dialog,
not when kmail exits cleanly (which it doesn't do when session management terminates it)
BUG: 97324, 98545


 M  +3 -0      networkaccount.cpp  


--- branches/KDE/3.5/kdepim/kmail/networkaccount.cpp #584179:584180
@@ -105,6 +105,9 @@
       mPasswdDirty = true;
     }
     setStorePasswd( storeInConfig );
+    if ( storeInConfig ) {
+      kmkernel->acctMgr()->writeConfig( true );
+    }
   }
 
   void NetworkAccount::clearPasswd() {
Comment 8 David Faure 2006-09-14 16:29:42 UTC
SVN commit 584361 by dfaure:

Move fix to right place, previous fix broke loading.
CCBUG: 97324, 98545


 M  +0 -3      networkaccount.cpp  
 M  +3 -0      popaccount.cpp  


--- trunk/KDE/kdepim/kmail/networkaccount.cpp #584360:584361
@@ -105,9 +105,6 @@
       mPasswdDirty = true;
     }
     setStorePasswd( storeInConfig );
-    if ( storeInConfig ) {
-      kmkernel->acctMgr()->writeConfig( true );
-    }
   }
 
   void NetworkAccount::clearPasswd() {
--- trunk/KDE/kdepim/kmail/popaccount.cpp #584360:584361
@@ -153,6 +153,9 @@
         return;
       } else {
         setPasswd( passwd, b );
+        if ( b ) {
+          kmkernel->acctMgr()->writeConfig( true );
+        }
         mAskAgain = false;
       }
     }
Comment 9 Marcel Berlau 2007-07-12 12:18:07 UTC
I think the bug is still there..

I have with KDE 3.5.7 the Problem that Kmail do not remember my Passwords after I close Kmail normal.