Re: kmail: various questions of a new user

Erik Quaeghebeur <[email protected]>
Newsgroups gmane.comp.kde.users.pim
Message-ID <4661485.JTNu8Xzlrg@jeje>
> 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.


Erik
_______________________________________________
KDE PIM users mailing list
Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.