From mboxrd@z Thu Jan 1 00:00:00 1970 From: guillaume.quintard@gmail.com (Guillaume Quintard) Date: Sat, 26 Sep 2009 20:09:56 +0200 Subject: [sup-talk] Hook, again Message-ID: <1253988011-sup-8497@altis> Sorry to come back again with that issue, but I'm having trouble with the reply-from hook. Here's what I have: message.recipients.each { |person| if (person.email =~ /addr at site.com/) != nil Person.from_address "Foo " end } But it doesn't seem to work. If I reply to a mail addressed to addr at site.com, the log says nothing, but the from field isn't changed. If I reply to any other mail, le log complains I didn't return a Person And if I just put Person.from_address "Foo " in the hook, the from field is correctly changed. I'm a bit lost on that one (still not knowing alot of ruby doesn't help I must say). Am I missing the obvious here? Cheers. -- Guillaume