[Bug 292454] New: Configuration of custom headers writes wrong section header in config file

Shai shai at platonix.com
Thu Jan 26 11:54:06 GMT 2012


https://bugs.kde.org/show_bug.cgi?id=292454

           Summary: Configuration of custom headers writes wrong section
                    header in config file
           Product: kmail2
           Version: 4.7
          Platform: Ubuntu Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: config dialog
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: shai at platonix.com


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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list