On Tuesday 17 September 2002 19:38, Christopher Mahmood wrote:
- James Mohr (suse_mailing_list@jimmo.com) [020917 09:53]:
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.
mmj has a handy little program named biabam (it's in the distribution) that can do this for you. I don't know if kmail can write to a pipe but if so something like
| (>spam;biabam spam someone@spamcop.net)
should work.
If it can't write to a pipe you probably should get a more user-friendly mailer.
What I was getting at was a filter action which is actually called "pipe through". You give it the name of a program and kmail actually takes care of setting up as the end of the pipe. My test script was really simple: #!/usr/bin/perl open(OUT,">/tmp/filter.out"); while(<STDIN>){ print OUT $_; } close OUT; Email that matched the filter was simply written to /tmp/filter.out and at this point you can do whatever you wanted with it. 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.