From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Sun, 24 Feb 2008 21:13:11 -0800 Subject: [sup-talk] filter question In-Reply-To: <1203898237-sup-1505@altis> References: <1203801642-sup-8748@altis> <1203893761-sup-560@south> <1203898237-sup-1505@altis> Message-ID: <1203916279-sup-3593@south> Reformatted excerpts from guillaume.quintard's message of 2008-02-24: > message.add_label "test" if message.from.email =~ /guillaume.quintard at gmail.com/ > doesn't seem to do a thing either :-( That should work. What if you add some logging information, like: log "called" log "email is #{message.from.email.inspect}" match = message.from.email =~ /guillaume\.quintard at gmail\.com/ log "match is #{match.inspect}" message.add_label :test if match log "message labels now #{message.labels.inspect}" -- William