Bug 98393

Summary: Wish: Pipe mail body through program
Product: [Unmaintained] kmail Reporter: Dirk Heinrichs <dirk.heinrichs.ext>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WAITINGFORINFO    
Severity: wishlist CC: bjoern, luigi.toscano
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Dirk Heinrichs 2005-02-02 09:53:26 UTC
Version:            (using KDE KDE 3.3.2)
Installed from:    Gentoo Packages

I know it's already possible to pipe an entire mail through a program. I tried to use this function to create a filter that encrypts unencrypted mails for storage on an imap server. Unfortunately, since the headers are also encrypted, there's nothing remaining for kmail to display.

So I think a filter action "pipe body through program" would be quite useful.
Comment 1 Thiago Macieira 2005-02-02 11:06:13 UTC
Add a pipe before your program:
  awk 'BEGIN {body = 0}; /^%/ {body = 1}; body { print };'
Comment 2 Thiago Macieira 2005-02-02 11:07:09 UTC
Sorry, where you see /^%/, make that /^$/
Comment 3 Dirk Heinrichs 2005-02-02 11:52:50 UTC
Nice tip, this encrypts the body only, but it still destroys (rewrites?) the message headers. After I apply the filter, the only headers remaining are:

X-UID: 111
Status: RO
X-Status: OGC
X-KMail-EncryptionState: N
X-KMail-SignatureState: N
X-KMail-MDN-Sent: 

Hmm, maybe instead of implementing this as a filter it would be better to add that functionality for encrypting selected _received_ messages to kmail directly.
Comment 4 Myriam Schweingruber 2012-08-18 07:55:55 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 5 Luigi Toscano 2012-08-19 00:44:10 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.