From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sun, 24 Feb 2008 14:58:00 -0800 Subject: [sup-talk] filter question In-Reply-To: <1203801642-sup-8748@altis> References: <1203801642-sup-8748@altis> Message-ID: <1203893761-sup-560@south> Reformatted excerpts from Guillaume Quintard's message of 2008-02-23: > I still have a little problem about filters though. they don't seem to > do anything. I have this in my before-add-message.rb : > > message.add_label "sent" if message.from =~ /guillaume.quintard at gmail.com/ > > but, when I send mail to myself, it doesn't label the mail. Yep, there was a bug where the before-add-message hook wasn't being called on sent messages. I've fixed this in git next. Update and try now. But you shouldn't have to write that hook, because the sent label is applied to all sent messages anyways! (Also, you'd need to use message.from.email because message.from is a Person object). -- William