From mboxrd@z Thu Jan 1 00:00:00 1970 From: rgh@roughage.com.au (Richard Heycock) Date: Thu, 10 Apr 2008 07:08:46 +1000 Subject: [sup-talk] Spam hooks. In-Reply-To: <1207771005-sup-8074@tomsk> References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk> Message-ID: <1207775231-sup-6370@wrasse> Excerpts from Marcus Williams's message of Thu Apr 10 06:00:38 +1000 2008: > On 9.4.2008, Richard Heycock wrote: > > Is it possible to add a hook so that when I press 'S' to mark the > > message as spam that it then forward the email to the appropriate > > address. > > Note that 'S' is actually marking a thread as a spam _not_ a message > as a spam so any hook would be working on (potentially) a set of > messages. Yeah, ok. > In my local edits I have a hook that allows for this, but its not > going to forward anything for you - it leaves it up to you to do what > you want with the thread. It wouldnt be that hard to iterate over the > thread and forward all messages to an address in ruby though. > > I can clean it up and post it if its any help. That would be great. I just need the basic idea and I should be able to take it form there. rgh > Marcus -- +61 (0) 410 646 369 rgh at neoss.com.au You're worried criminals will continue to penetrate into cyberspace, and I'm worried complexity, poor design and mismanagement will be there to meet them - Marcus Ranum !DSPAM:47fd305e198721115333888!