Bug 104380

Summary: kmail_fprot.sh adds header lines on the wrong place (before 'From ')
Product: [Applications] kmail Reporter: Tom Anheyer <tom.anheyer>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Tom Anheyer 2005-04-22 17:21:44 UTC
Version:           1.8 (3.4.0 level "b") (using KDE KDE 3.4.0)
Installed from:    SuSE RPMs
OS:                Linux

kmail_fprot.sh adds the X-Virus Header before the From line. If you bounce such a mail kmail splits the header just before the From line. The old header is now a part of the mail body. The receiver sees a mail without subject, from, to etc. lines and the raw old mail code as body.

Replacing the echo "X-Virus: ..." lines with HEADER="X-Virus: ..." and the cat on the end with:

formail -a "${HEADER}" < $TEMPFILE

fixes the problem for me.
Comment 1 Till Adam 2005-05-16 23:57:58 UTC
Andreas, do we maintain that one ourselves?
Comment 2 Laurent Montel 2015-04-12 10:00:30 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.