From mboxrd@z Thu Jan 1 00:00:00 1970 From: marcus-sup@bar-coded.net (Marcus Williams) Date: Thu, 10 Apr 2008 12:04:32 +0100 Subject: [sup-talk] Spam hooks. In-Reply-To: <1207823540-sup-3480@tomsk> References: <1207735298-sup-7690@wrasse> <1207771005-sup-8074@tomsk> <1207775231-sup-6370@wrasse> <1207823540-sup-3480@tomsk> Message-ID: <1207825216-sup-4659@tomsk> On 10.4.2008, I wrote: > On 9.4.2008, Richard Heycock wrote: > > That would be great. I just need the basic idea and I should be able > > to take it form there. > > ... patch is winging its way to sup-talk as I write this. Its against > next but it should patch cleanly against master. Some quick pointers > for the mark-as-spam.rb: Note that perhaps I should also add that this hook gets run on "toggle" of the spam flag. So you probably want to check which way its been toggled by looking for the :spam flag in the labels set if you want to be extra careful. I think you can probably just use the thread object's labels to do this. Marcus