Bug 152197

Summary: not possible to use system variables in setting of KMail
Product: [Applications] kmail Reporter: Daniel Moyne <dmoyne>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: no mime type

Description Daniel Moyne 2007-11-12 11:42:52 UTC
Version:           1.9.6 (enterprise 0.20070907.709405) (using KDE 3.5.8, Kubuntu (gutsy) 4:3.5.8-0ubuntu3.1)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.22-14-generic

very strange as in .../config/kmailrc :
folders=...
does not accept system variable such as :
folders=$KMAIL_HOME
where of course such variable has been initialized up front (in .bashrc for example)

The only variable accepted is $HOME

Can this be fixed ?
Comment 1 Pino Toscano 2007-11-12 11:51:45 UTC
> Can this be fixed ?

http://techbase.kde.org/KDE_System_Administration/Configuration_Files

In short,
folders[$e]=${KMAIL_HOME}
Comment 2 Daniel Moyne 2007-11-12 22:59:31 UTC
Pino thanks it works ; funny because the $HOME variable does not needs this.
Daniel.
Comment 3 Daniel Moyne 2007-11-13 10:10:34 UTC
Pino unfortunately Pino I have to back-up on this because within the same session if I modify as suggested it works but then after a re-boot it does no more as the folders variable is switched back to default :
folders=$HOME/.kde/......

I think it may have to do with a fresh new instability of KMail as now regularly :
- I loose signature feature,
- my local mail box target folder is switched back to something wrong.


This may have to do with a wrong "save"  run on kmailrc this happens before.

I take also this opportunity to report something minor :
- all icones in config folder are supposed to be text mimed except a few like kmailrc (look at snapshot) ; can this be fixed and how. 
Comment 4 Daniel Moyne 2007-11-13 10:13:38 UTC
Created attachment 22043 [details]
no mime type

Some of the files (like kmailrc) in config folders do no have text mime type
attached.
Comment 5 Daniel Moyne 2007-11-26 13:02:24 UTC
To coclude on this :
What I had to do :
(1) in kmailrc file :
folders[$ie]=${KMAIL_HOME}
to avoid replacement by absolute path of $KMAIL_HOME value

(2) in my .profile file this addition :
export KMAIL_HOME=my_directory_path_of_kmail_data