From: "Philipp Überbacher" <hollunder@lavabit.com>
To: sup-talk <sup-talk@rubyforge.org>
Subject: Re: [sup-talk] reply-from.rb troubles
Date: Fri, 15 Jan 2010 21:38:23 +0100 [thread overview]
Message-ID: <1263587689-sup-3094@tw> (raw)
In-Reply-To: <1263580522-sup-1905@tilus.net>
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("<hollunder@lavabit.com>")
> > elsif message.has_label?(:murks_lavabit)
> > Person.from_address("<murks@lavabit.com>")
> > end
> >
> > Yet it replies to messages with label mailinglists using murks@.
>
> Have you tried[1] what Person.from_address("<hollunder@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("<hollunder@lavabit.com>")
=> #<Redwood::Person:0x7f6d045b1ff8
@email="hollunder@lavabit.com",
@name="hollunder">
> Iirc #from_address expects plain email address. Try
>
> if message.has_label?(:mailinglists)
> Person.from_address("hollunder@lavabit.com")
> elsif message.has_label?(:murks_lavabit)
> Person.from_address("murks@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
next prev parent reply other threads:[~2010-01-15 20:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 16:03 Philipp Überbacher
2010-01-15 18:41 ` Tero Tilus
2010-01-15 20:38 ` Philipp Überbacher [this message]
2010-01-16 21:38 ` Tero Tilus
2010-01-17 2:01 ` Philipp Überbacher
2010-01-17 15:24 ` William Morgan
2010-01-17 15:43 ` Philipp Überbacher
2010-01-17 16:01 ` William Morgan
2010-01-17 16:40 ` Philipp Überbacher
2010-01-17 18:30 ` Cameron Matheson
2010-01-17 19:23 ` Philipp Überbacher
2010-01-17 19:45 ` William Morgan
2010-01-17 20:08 ` Philipp Überbacher
2010-01-17 20:36 ` William Morgan
2010-01-20 21:50 ` hollunder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1263587689-sup-3094@tw \
--to=hollunder@lavabit.com \
--cc=sup-talk@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox