[kdepim-users] kmail: various questions of a new user

Erik Quaeghebeur kdepim-users at equaeghe.nospammail.net
Thu Nov 20 11:57:32 GMT 2014

> 3. Is it possible to directly edit the source of a message? (I am aware that I can use filters for most mail modification purposes, but sometimes just quickly editing the source is much more efficient; I did not manage to create a filter that passes the message content to kate and outputs what kate saves, but this may be because I am new to filters.)

Ok, with the 'Pipe Through' filter action, I have already managed to do what I want, inelegantly:

	kate --stdin --startanon && cat kmail-edited.txt	

That opens kate with the source of the message I'm filtering.
I manually have to save to the file named 'kmail-edited.txt' and close kate (which is why I open a new kate session with the 'startanon' option).

To make this more elegant, I would of course want to avoid using a fixed file such as kmail-edited.txt, but rather a temporary file. I've played a bit with `mktemp`, but not managed to get things working. I didn't find an option to directly "save to stdout" with kate. I've tried using the vipe program <http://unix.stackexchange.com/a/125586/26980>, but without success.

KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users

More information about the kdepim-users mailing list