Bug 758206

Summary: KMail Header decoration can not be preselected
Product: [openSUSE] openSUSE 12.1 Reporter: Pi Ny <piny>
Component: KDE4 ApplicationsAssignee: E-mail List <kde-maintainers>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: albert.fischer, ctrippe
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 12.1   
URL: https://bugs.kde.org/show_bug.cgi?id=267022
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Pi Ny 2012-04-20 08:50:40 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0

This is a duplicate of the 2.5 years old (unprocessed?) Bug #543396 
I apologize for creating a duplicate bug but somehow i can not add a comment to this old bug.

I would like to suggest to raise the priority of this bug because with the current setting any E-Mail printout will NOT display the date of the E-Mail.
This causes multiple consumption of paper due to reprint with adjusted settings (green IT) and may even cause legal trouble if used within a productive environment (that's what we want, don't we?)



Reproducible: Always

Steps to Reproduce:
A: 
   1. Set preferred header within KMail (via View->Headers)
   2. The current and all further email WITHIN the current session are shown in the selected style, printouts display the correct header
B:
   1. Manually edit the ~/.kde4/share/config/kmailrc as suggested e.g. in 
      - Bug #543396 
      - <https://svn.torproject.org/svn/incognito/tags/first_import/root_overlay/var/lib/kdesession/kmailrc>
      - <http://forums.opensuse.org/english/get-technical-help-here/applications/415282-kmail-kde-displayed-mail-header-format.html>
   to read
    <code>
header-set-displayed=rich
header-style=fancy
    </code>
    (or similar different settings)
Actual Results:  
A.1. KMail did not write back this setting into kmailrc. There is still
   <code>
header-set-displayed=standard
header-style=plain
   </code>
B.1. Kmail ignores the header settings in kmailrc

2. After restart, the standard/plain header is displayed


Expected Results:  
1. Update of kmailrc after changes of header setting from within KMail
2. Reading of respective settings during startup of KMail

OS:      Linux 3.1.9-1.4-desktop x86_64
System:  openSUSE 12.1 (x86_64)
KDE:     4.7.2 (4.7.2) "release 5"
Comment 1 Pi Ny 2012-04-25 08:54:26 UTC
Half of the issue is reported wrongly - I apologize for this:

Since I am using Kmail2 the correct resource file is 
~/.kde4/share/config/kmail2rc !

Here the manual editing of    
 <code>
header-set-displayed=rich
header-style=fancy
 </code>
leads to the expected result!
Therefore issues labelled "B" are resolved.

Issues "A" remain open, however!
Comment 2 Christian Trippe 2012-07-14 19:01:26 UTC
Reading the old report, there seems to be a difference if you change the header in kontact/kmail directly or when you have opened an e-mail in a separat window.

I guess you have done the latter. Is this correct?
Comment 3 Pi Ny 2012-07-15 10:06:24 UTC
(In reply to comment #2)
> Reading the old report, there seems to be a difference if you change the header
> in kontact/kmail directly or when you have opened an e-mail in a separat
> window.
> 
> I guess you have done the latter. Is this correct?

Yes.
Actually I am not aware of another possibility (unless editing ~/.kde4/share/config/kmail2rc directly) to set such an option besides using the menu entry
"view->headers" from a separate email window.
This setting is effective for all separate windows in this session, however (even after closing the window that was used to effect the changes).

I am still running Contact 4.7.2 so ths might have changed in later revisions.
Comment 4 Christian Trippe 2012-07-15 17:18:46 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Reading the old report, there seems to be a difference if you change the header
> > in kontact/kmail directly or when you have opened an e-mail in a separat
> > window.
> > 
> > I guess you have done the latter. Is this correct?
> 
> Yes.
> Actually I am not aware of another possibility (unless editing
> ~/.kde4/share/config/kmail2rc directly) to set such an option besides using the
> menu entry
> "view->headers" from a separate email window.
> This setting is effective for all separate windows in this session, however
> (even after closing the window that was used to effect the changes).
> 
> I am still running Contact 4.7.2 so ths might have changed in later revisions.

No this ist still the same with KDE 4.8.3. However you can access the same menu entry form the main kontact/kmail window. There it is saved also between sessions.

I updated the corresponding upstream report https://bugs.kde.org/show_bug.cgi?id=267022

I'll close this bug as upstream. Please follow the upstream report an feel free to reopen, if a fix is available there.
Comment 5 Christian Trippe 2012-07-15 17:21:00 UTC
*** Bug 543396 has been marked as a duplicate of this bug. ***