Bug 186843 - Template for Forward message ignored for some messages
Summary: Template for Forward message ignored for some messages
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: templates (show other bugs)
Version: 1.11.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-11 10:42 UTC by mps
Modified: 2009-07-24 16:05 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mps 2009-03-11 10:42:16 UTC
Version:            (using KDE 4.2.0)
OS:                Linux
Installed from:    Fedora RPMs


Kmail ignores templates when forwarding a message, works with reply, reply all.

This is my template for forwarded messages (in Configure kmail - Composer - Standard Templates):


Forwarded message:

----------------------------------------------------
From: %OFROMADDR
To: %OTOADDR
CC: %OCCADDR
Subject: %OFULLSUBJECT
Date: %ODATE

%QUOTE

However for some emails when forwarding a message inline the text of the message is not quoted but appears 'as is'. Even if I remove the %QUOTE completely from the template, the message is still forwarded 'as is'. I can't see any consistent reason why it works for some emails and not others. It is the same for plaintext email and for html mail. 

My reply-to-sender template is:

----------------------------------------------------
From: %OFROMADDR
To: %OTOADDR
Subject: %OFULLSUBJECT
Date: %ODATE

%QUOTE

and it works perfectly. Copying this template to the forward message template (and selecting ok) does not change the behaviour when forwarding.

My kdepim is 6:4.2.0-2.fc10. I can provide an email that does work and one that doesn't privately.

Thanks.

M.
Comment 1 Thomas McGuire 2009-03-18 23:50:59 UTC
It is probably enough if you tell me the message structure of the message (with the message structure viewer below the message display).

FYI, I fixed/rewrote parts of the forwarding logic, this bug might already be fixed in KDE 4.2.2.

It actually has nothing to do with the template used, I think.
Comment 2 Jonathan Armond 2009-07-24 16:05:20 UTC
SVN commit 1001922 by jarmond:

Reapply template on switching identity in composer. Respect custom
templates when forwarding inline.

BUG: 143199
BUG: 179754
BUG: 186843

 M  +18 -4     composer.h  
 M  +24 -17    kmcommands.cpp  
 M  +91 -9     kmcomposewin.cpp  
 M  +24 -2     kmcomposewin.h  
 M  +1 -1      kmkernel.cpp  
 M  +2 -2      kmmainwidget.cpp  
 M  +7 -0      templateparser.cpp  
 M  +2 -0      templateparser.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1001922