Bug 197523

Summary: kmail: Kiosk-based [$e] config variables are not evaluated for file emailidentities
Product: [Applications] kdepimlibs Reporter: Jörg Steffens <joerg.steffens>
Component: kpimidentitiesAssignee: Tom Albers <toma>
Status: RESOLVED FIXED    
Severity: normal CC: joerg.steffens, kdepim-bugs
Priority: NOR    
Version: 4.2   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: uses config.readEntry to get translated config entry

Description Jörg Steffens 2009-06-22 18:48:35 UTC
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.
Comment 1 Jörg Steffens 2009-09-04 13:11:46 UTC
Created attachment 36687 [details]
uses config.readEntry to get translated config entry

fixes the described bug
Comment 2 Jörg Steffens 2009-09-04 13:15:47 UTC
recompiled package including bugfix is available under: http://download.opensuse.org/repositories/home:/steffens:/lvermgeo:/kde4/
Comment 3 Allen Winter 2009-09-04 14:16:28 UTC
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
Comment 4 Allen Winter 2009-09-04 14:17:26 UTC
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
Comment 5 Allen Winter 2009-09-22 18:18:44 UTC
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