Version: kde4-kmail-4.2.4-2.9 (using KDE 4.2.4) OS: Linux Installed from: SuSE RPMs We are using cascading config directories (KIOSK) for company wide Kontact configuration. # kde4-config --path config /home/joergs/.kde4/share/config/:/var/lib/kde-profiles/vermkv_kontact/share/config/:/usr/share/kde4/config/:/etc/kde4/share/config/ Besides others, there we using following config files: /var/lib/kde-profiles/vermkv_kontact/share/config/kmailrc and /var/lib/kde-profiles/vermkv_kontact/share/config/emailidentities The kmailrc file looks like this: [General] Default domain[$ie]=$DEFDOMAIN [Account 1] login[$ie]=$USER and is handled correctly (means the environment variables are replaced by there values). kreadconfig --file kmailrc --group "Account 1" --key login joergs But the emailidentities causing trouble, because there variables are not replaced by there values: [Identity #0] Email Address[$ie]=$MAILADDR Name[$ie]=$FULLNAME Organization[$ie]=$ORGANAME Signature File[$ie]=$HOME/.signature Signature Type[$ie]=file This configuration is resulting in a identity with name "$FULLNAME" and Email-Address "$MAILADDR". kreadconfig returns the correct result: kreadconfig --file emailidentities --group "Identity #0" --key Name Jörg Steffens We are using a similar setup with KDE3, without these problems.
Created attachment 36687 [details] uses config.readEntry to get translated config entry fixes the described bug
recompiled package including bugfix is available under: http://download.opensuse.org/repositories/home:/steffens:/lvermgeo:/kde4/
SVN commit 1019799 by winterz: Fix "kmail: Kiosk-based [$e] config variables are not evaluated for file emailidentities" Thanks for the patch Jörg! BUG: 197523 MERGE: e4,4.3 M +1 -1 identity.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1019799
SVN commit 1019800 by winterz: Backport r1019799 by winterz from trunk to the 4.3 branch: Fix "kmail: Kiosk-based [$e] config variables are not evaluated for file emailidentities" Thanks for the patch Jörg! CCBUG: 197523 MERGE: e4,4.3 M +1 -1 identity.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1019800
SVN commit 1026793 by winterz: Backport r1019799 by winterz from trunk to the 4.3 branch: Fix "kmail: Kiosk-based [$e] config variables are not evaluated for file emailidentities" Thanks for the patch Jörg! CCBUG: 197523 MERGE: e4,4.3 M +12 -0 calendar.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1026793