Excerpts from Philipp Überbacher's message of Sun Jan 17 09:40:36 -0700 2010:
> Now I did:
> if message.has_label? :mailinglists
>   info "Looks like replying to a mailinglist."
>   Person.from_address "<[email protected]>"
>   a = Person.from_address "<[email protected]>"
>   info 'This is Person.from_address "<[email protected]>": '
> elsif message.has_label? :murks_lavabit
>   info "Looks like replying with default."
>   Person.from_address "<[email protected]>"
> end
> 
> Which is probably not clever, but I got:
> [Sun Jan 17 17:38:17 +0100 2010] Looks like replying to a mailinglist.
> [Sun Jan 17 17:38:17 +0100 2010] This is Person.from_address
> "<[email protected]>":
> [Sun Jan 17 17:38:17 +0100 2010] reply-from returned non-Person, using
> default from.
> 
> It seems this is trying to tell me what's wrong..

It looks like your hook is now returning the output of info instead of a
person.  Try this:

if message.has_label? :mailinglists
  info "Looks like replying to a mailinglist."
  Person.from_address "<[email protected]>"
  p = Person.from_address "<[email protected]>"
  info "This is person #{p.full_address}"
  p
elsif message.has_label? :murks_lavabit
  info "Looks like replying with default."
  Person.from_address "<[email protected]>"
end
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to