From: guillaume.quintard@gmail.com (Guillaume Quintard)
Subject: [sup-talk] Hook, again
Date: Sat, 26 Sep 2009 20:09:56 +0200 [thread overview]
Message-ID: <1253988011-sup-8497@altis> (raw)
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 <bar at site.org>"
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 <addr at site.org>" 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
next reply other threads:[~2009-09-26 18:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-26 18:09 Guillaume Quintard [this message]
2009-09-27 1:27 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1253988011-sup-8497@altis \
--to=guillaume.quintard@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox