Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] filter question
Date: Sun, 24 Feb 2008 21:13:11 -0800	[thread overview]
Message-ID: <1203916279-sup-3593@south> (raw)
In-Reply-To: <1203898237-sup-1505@altis>

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 <wmorgan-sup at masanjin.net>


  reply	other threads:[~2008-02-25  5:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-23 21:34 Guillaume Quintard
2008-02-24 22:58 ` William Morgan
2008-02-25  0:12   ` Guillaume Quintard
2008-02-25  5:13     ` William Morgan [this message]
2008-02-25  6:28       ` shivan
2008-02-25 17:02         ` William Morgan
2008-02-25 17:42           ` Guillaume Quintard
2008-02-28 17:43             ` 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=1203916279-sup-3593@south \
    --to=wmorgan-sup@masanjin.net \
    /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