Bug 155513

Summary: %CURSOR does not work in reply custom templates
Product: [Applications] kmail Reporter: Maciej Pilichowski <bluedzins>
Component: templatesAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: enterprise   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Maciej Pilichowski 2008-01-12 15:13:18 UTC
Version:            (using KDE KDE 3.5.8)

I have template
=========
A

B%CURSOR

C
==========

but when I use it, cursor is placed before A.
Comment 1 Thomas McGuire 2008-01-12 15:58:28 UTC
I can not reproduce this, neither with enterprise 20070904 nor with trunk.
I added your example template to Settings->Configure KMail->Composer->Custom Templates, choosing "Reply" as template type.
Then I selected a message, right-clicked it and chose Reply->Reply with Custom Template->[template I just created].
That worked fine for me.
Did you do something else?
Comment 2 Maciej Pilichowski 2008-01-12 18:09:09 UTC
Hah! Nailed. Cursor only works properly if you don't use signature (in this case). I use signature (I mean configured in KMail) and immediately %CURSOR behaves like I described above -- it is ignored. Can you confirm it?

Sorry for omission, but I use signature by default almost for all my accounts.

And one more thing, === denotes template limits, so the template contains only ABC and %CURSOR.
Comment 3 Thomas McGuire 2008-01-13 19:20:35 UTC
Ah, I see. This is fixed in trunk already.