Reformatted excerpts from guillaume.quintard's message of 2008-02-24:
> message.add_label "test" if message.from.email =~ /[EMAIL PROTECTED]/
> 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 =~ /[EMAIL PROTECTED]/
  log "match is #{match.inspect}"
  message.add_label :test if match
  log "message labels now #{message.labels.inspect}"


-- 
William <[EMAIL PROTECTED]>
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to