[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-talk] reply-from.rb troubles



Philipp Überbacher, 2010-01-15 22:38:
>> Have you tried[1] what Person.from_address("<hollunder@lavabit.com>")
>> actually returns?
> 
> >> Person.from_address("<hollunder@lavabit.com>")
> => #<Redwood::Person:0x7f6d045b1ff8
>  @email="hollunder@lavabit.com",
>   @name="hollunder">

So no problem there.  Does your log show anything when replying?  If
not, you could add logging to your hook (logging things you do in your
hooks ain't a bad habit).

if message.has_label?(:mailinglists)
  info "Looks like replying to a mailinglist."
  Person.from_address("hollunder@lavabit.com")
elsif message.has_label?(:murks_lavabit)
  info "Looks like replying as murks."
  Person.from_address("murks@lavabit.com")
end

-- 
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
sup-talk mailing list
sup-talk@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-talk