Bug 203576 - Message composer mixes up signatures of different profiles
Summary: Message composer mixes up signatures of different profiles
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-12 15:50 UTC by Andreas Pietzowski
Modified: 2018-09-04 18:16 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 Andreas Pietzowski 2009-08-12 15:50:32 UTC
Version:            (using KDE 4.3.0)
Installed from:    Ubuntu Packages

I have several profiles defines in KMail and for every email address I have different signatures (work, personal, etc...). Before KDE 4.3 I was able to open a new email windows and switch my profile to the one I want to use. And always the signature of the specific profile was replaced in the new composer window.

Now with KDE 4.3 the first profile which has a signature defined sets the signature in the text field below the "-- ". Every change of the profile in the combo box doens't change the signature anymore.

I also figured out that a fast random switch between the profiles (with a crazy mouse wheel behavior) results in messing up some signatures and combines two or more signatures...

I hope you can reproduce the bug and find a fix soon - Thanks ;)
Comment 1 FiNeX 2009-08-12 16:30:19 UTC
This bug could be related to bug #203302.
Comment 2 Martin Koller 2009-08-17 22:19:24 UTC
I can not reproduce this here on 4.3.0.
Is your signature coming from the "textfield below" in the identity configuration or do you read it from a file or from a program's output ?
Comment 3 Andreas Pietzowski 2009-11-01 02:02:03 UTC
No, my signature comes out of a shell script which always chooses a different text out of shell script. I also strongly guess this is the problem. You are maybe comparing the previous text and erase it at the end.

Can you reproduce it with some profiles with text defined below and one with a shell script like

echo $RANDOM

Open composer and switch through profiles. Signatures get duplicated on and on.

Maybe a solution would be to check for the signature separator ("-- ") which should be the beginning of every signature and cut off from the separator downwards before inserting the new signature at the end. For the case the signature has no such separator, use the implementation as before. Maybe you have an even better solution?
Comment 4 Andreas Pietzowski 2010-04-02 16:51:10 UTC
This bug is still present in KDE 4.4.2. I can reproduce it. If you have more questions please ask!
Comment 5 Andrew Crouthamel 2018-09-04 18:16:46 UTC
Hello! Sorry to be the bearer of bad news, but this version of Kmail has been unmaintained for many years so I am closing this bug. Please try using the latest version of Kmail to see if your issue persists. If it does, please submit a new bug in "kmail2". Thank you!