Bug 283109 - Identity signature added twice in kmail
Summary: Identity signature added twice in kmail
Status: RESOLVED FIXED
Alias: None
Product: kmail2
Classification: Applications
Component: composer (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-30 18:10 UTC by Ilia K.
Modified: 2012-08-28 12:10 UTC (History)
2 users (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 Ilia K. 2011-09-30 18:10:30 UTC
Version:           unspecified (using KDE 4.7.1) 
OS:                Linux

I experience a bug similar to apparently fixed bug #261016 under KDE 4.7.1 (Kubuntu backports).
I have multiple kmail identities. I have chosen "Automatically insert signature" in composer settings. The signature (human, not cryptographic) for the default identity is not defined, while the signature for the second one is defined. In composer window I choose the second identity as "sticky". Now when I start a composer (new email/reply/forward) two signatures of the second identity are added.

Workarounds to have signature appear only once (any of below):
1. Manually chose other identity in composer window and then choose back identity 2. This is the same as disabling "sticky" identity, so another identity is displayed first when composer starts.
2. Define any signature for the identity 1
3. Make identity 2 default. It also makes identity 2 be the first choice in identity list in composer.

It looks like the necessary conditions to trigger the bug are
1) composer must chose non-first identity upon window creation and
2) first identity does not have a signature

Reproducible: Always

Steps to Reproduce:
Open Settings->Configure KMail->Identities and define 2 identities Id1, Id2.
- Id1 must be default and has no signature defined.
- Id2 has a signature defined.

Open Settings->Configure KMail->Composer and set "Automatically insert signature" checkbox.

Start composer (e.g. File->New->New Message).
Choose View->Identity.
Choose Id2 in a combobox (must be the second option, not the first one, I guess) and click "Sticky" checkbox on the right.
Close composer window.

Start composer (new email/reply/forward).

Actual Results:  
Id2 signature inserted twice.

Expected Results:  
Id2 signature inserted once.

OS: Linux (x86_64) release 2.6.38-11-generic
Compiler: gcc
Comment 1 Ilia K. 2011-09-30 18:26:36 UTC
During my fiddling with kmail composer decided to make Id2 the first choice in identity combobox (oh, it's actually a drop-down list, not a combobox, but this doesn't matter here), even though default identity was Id1 and the bug disappeared. After a little bit more fiddling composer restored the list order and now bug appears again. This support my guess about the necessary conditions to trigger the bug (see the original post).
Comment 2 maxime.haselbauer 2012-04-10 10:17:30 UTC
I can confirm this bug with kde 4.8.2 and kubuntu 11.10

Moreover I could add a lot more bug
The whole "template" part of the software is simply rubbish and does never work as it should 

e.g
Signature might be added twice


OR

click answer to a mail
 it will look like 

Monday 10 april 


My_signature

switch to identitty 2
switch back to identity 1
you then have 
MY_signature Monday 10 april ...


OR
update from 4.8.1 to 4.8.2 and see kmail telling you "kmail can not find the own-defined template for this identity anymore" (or something like that  in German)



I won't report all bugs I find here, i would not now where to start.
This whole part of the software has to be re-designed then re-write then re-reviewd and then we can start with reporting bugs...


thks
Comment 3 Laurent Montel 2012-08-28 12:10:26 UTC
was fixed long time ago