Philipp Überbacher, 2010-01-15 18:03:
> It currently looks like this:
>
> if message.has_label?(:mailinglists)
> Person.from_address("<[email protected]>")
> elsif message.has_label?(:murks_lavabit)
> Person.from_address("<[email protected]>")
> end
>
> Yet it replies to messages with label mailinglists using mu...@.
Have you tried[1] what Person.from_address("<[email protected]>")
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.
Iirc #from_address expects plain email address. Try
if message.has_label?(:mailinglists)
Person.from_address("[email protected]")
elsif message.has_label?(:murks_lavabit)
Person.from_address("[email protected]")
end
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/sup-talk