Excerpts from Tero Tilus's message of Fri Jan 15 19:41:15 +0100 2010:
> Philipp Überbacher, 2010-01-15 18:03:
> > It currently looks like this:
> > 
> > if message.has_label?(:mailinglists)
> >   Person.from_address("<hollun...@lavabit.com>")
> > elsif message.has_label?(:murks_lavabit)
> >   Person.from_address("<mu...@lavabit.com>")
> > end
> > 
> > Yet it replies to messages with label mailinglists using mu...@.
> 
> Have you tried[1] what Person.from_address("<hollun...@lavabit.com>")
> actually returns?  I bet its nil and thus sup uses default address.
> You can try it interactively for example using sup console, it is your
> dearest friend when you debug.

>> Person.from_address("<hollun...@lavabit.com>")
=> #<Redwood::Person:0x7f6d045b1ff8
 @email="hollun...@lavabit.com",
  @name="hollunder">

> Iirc #from_address expects plain email address.  Try
> 
> if message.has_label?(:mailinglists)
>   Person.from_address("hollun...@lavabit.com")
> elsif message.has_label?(:murks_lavabit)
>   Person.from_address("mu...@lavabit.com")
> end

Changing that changed nothing, as I'm writing this it's at default
again and I have to edit it manually.
I usually restarted sup, this time I did clear_hooks tough, which
returned nil.

_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk

Reply via email to