Bug 289820

Summary: Reply using HTML deforms templates
Product: [Applications] kmail2 Reporter: Bernd Oliver Sünderhauf <pancho.s>
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bernd Oliver Sünderhauf 2011-12-26 02:59:13 UTC
Version:           4.8 (using Devel) 
OS:                Linux

With the new "Reply using HTML" feature turned on, default (or custom) templates are severely deformed both for replies and inline-forwards.

E.g. with the following reply template:
  On %ODATE %OTIMELONG %OFROMNAME wrote:
  %QUOTE
  %CURSOR
only the filled placeholders %ODATE %OTIMELONG %OFROMNAME are displayed, while "On", the spaces and "wrote:" is missing.
Also, the Cursor is not set to the requested position.

Another example: With the following a inline-forward template:
  ----------  Forwarded Message  ----------
  
  Subject: %OFULLSUBJECT
  Date: %ODATE, %OTIMELONG
  From: %OFROMADDR
  %OADDRESSEESADDR
  
  %TEXT
  -----------------------------------------
all header field names are stripped off (except for "To:", "Cc:" etc. which is provided via the placeholder.

Reproducible: Always

Steps to Reproduce:
1. Turn on "Reply using HTML if present".
2. Select a HTML message
3. Hit "Reply" or "Forward inline"

Actual Results:  
just the substituted placeholders

Expected Results:  
the full template with the placeholders being substituted
Comment 1 Torgny Nyblom 2011-12-26 06:37:52 UTC
Fixed in commit: bc19958546af49921bc85aae59936353ec572e69
Comment 2 Torgny Nyblom 2011-12-26 06:38:10 UTC

*** This bug has been marked as a duplicate of bug 288834 ***