Bug 155513 - %CURSOR does not work in reply custom templates
Summary: %CURSOR does not work in reply custom templates
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: templates (show other bugs)
Version: enterprise
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-12 15:13 UTC by Maciej Pilichowski
Modified: 2008-01-13 19:20 UTC (History)
0 users

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 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.