Bug 292454 - Configuration of custom headers writes wrong section header in config file
Summary: Configuration of custom headers writes wrong section header in config file
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: config dialog (show other bugs)
Version: 4.7
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 11:54 UTC by Shai
Modified: 2012-01-26 12:53 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 Shai 2012-01-26 11:54:06 UTC
Version:           4.7 (using KDE 4.7.4) 
OS:                Linux

After migration from KMail 1 (kde 4.6, Ubuntu), where I had my custom header set.

The behavior I saw was: "Configure KMail..." -> composer -> headers => shows no headers. If I add a header, it appears to put it in the list of headers, but if the settings dialog is closed and reopened then the header is missing again; and of course, it does not show up in messages sent.

When I checked the kmail2rc file, I found this section in it:

[Mime #]
name=<my header name>
value=<my header value>

When I compared this to the old kmailrc, I saw that the section header is wrong -- there, it was "[Mime #0]" (notice added "0").

I closed Kontact, fixed the file by manually editing it and now it works as advertised.





Reproducible: Didn't try

Steps to Reproduce:
(a guess, based on my experience -- haven't really tried it)
(steps a-b optional, presumably created broken config file)

a. Use kmail 1, define a custom Mime header
b. Migrate to KMail2

Now you have a config file with an invalid "[Mime #]" section.

1. Settings -> Configre KMail -> choose Composer component -> Choose "headers" tab

2. Add a header.
3. Confirm the change and close the configuration dialog

Actual Results:  
The header is not added; when you reopen the configuration dialog, it isn't there, and it isn't added to sent messages.

Expected Results:  
The header is added -- shows up in configuration dialog and added to messages.

OS: Linux (x86_64) release 3.0.0-15-generic
Compiler: gcc

Workaround: Fix configuration file manually
Comment 1 Laurent Montel 2012-01-26 12:53:12 UTC
Fixed in 4.8