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 =~ /[email protected]/) != nil
Person.from_address "Foo <[email protected]>"
end
}
But it doesn't seem to work.
If I reply to a mail addressed to [email protected], 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 <[email protected]>" 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
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk