On Tuesday 17 September 2002 15:19, Lennart Börjeson wrote:
Concerning the recent threads on spam handling:
I would like to have a KMail filter action which would enable me to forward a message (i.e. spam) to an address (i.e. SpamCop) *as an attachment*. By default, there's only a "forward" action, no "forward as attachment" filter action.
How would one go about creating such an action, if at all possible (apart from modifying KMail source)?
The only way I see it being possible is to set the filter to pipe through a command. You could use a perl script that writes the email to a file. That's the easy part (for me, anyway). You can then use that file as the attachment. This worked for me, but I don't know how you would get it as an attachment to an email other than building mime components yourself. Regards, jimmo -- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others think you are." -- John Wooden --------------------------------------- Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info --------------------------------------- NOTE: All messages sent to me in response to my posts to newsgroups or forums are subject to reposting.