Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
From: Robin Burchell <viroteck@viroteck.net>
To: sup-devel@rubyforge.org
Cc: Robin Burchell <robin.burchell@collabora.co.uk>
Subject: [sup-devel] [PATCH] Fetch the account found from the to/cc info, don't just use it as-is.
Date: Sat, 10 Jul 2010 19:53:20 +0100	[thread overview]
Message-ID: <1278788000-23738-1-git-send-email-robin.burchell@collabora.co.uk> (raw)

This prevents people's To: info screwing up my replies to them which is
immensely irritating to me.
---
 lib/sup/modes/reply-mode.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/modes/reply-mode.rb b/lib/sup/modes/reply-mode.rb
index bbac922..294bcfa 100644
--- a/lib/sup/modes/reply-mode.rb
+++ b/lib/sup/modes/reply-mode.rb
@@ -76,7 +76,7 @@ EOS
     ## otherwise, try and find an account somewhere in the list of to's
     ## and cc's.
     elsif(b = (@m.to + @m.cc).find { |p| AccountManager.is_account? p })
-      b
+      AccountManager.account_for(b.email)
     ## if all else fails, use the default
     else
       AccountManager.default_account
-- 
1.7.0.4

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


                 reply	other threads:[~2010-07-13 14:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1278788000-23738-1-git-send-email-robin.burchell@collabora.co.uk \
    --to=viroteck@viroteck.net \
    --cc=robin.burchell@collabora.co.uk \
    --cc=sup-devel@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