From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.213.28.69 with SMTP id l5cs557913ebc; Thu, 21 Jan 2010 07:37:19 -0800 (PST) Received: by 10.224.72.153 with SMTP id m25mr1084912qaj.35.1264088238736; Thu, 21 Jan 2010 07:37:18 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 8si3864239qwj.23.2010.01.21.07.37.18; Thu, 21 Jan 2010 07:37:18 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id B598315B802B; Thu, 21 Jan 2010 10:36:51 -0500 (EST) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by rubyforge.org (Postfix) with ESMTP id 4B82718582AC for ; Thu, 21 Jan 2010 10:36:33 -0500 (EST) Received: by pxi12 with SMTP id 12so58695pxi.33 for ; Thu, 21 Jan 2010 07:36:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:content-type:subject:from:to :date:message-id:user-agent:content-transfer-encoding; bh=YgUTro3HEMwXilWYoshQNckiDiyFbavz+Lgwi1F82mg=; b=VZsKefhDi4isWyFJ9WQU+b0EptBIZ7VLe37xvaTcUSzWG5qOpvmN9UMOqq090bas7z 5Z8+57+v0lCwF7P/h61NomhgHUPTX1+n1/Oc3U1pmPAsYkUf3OheLeSwTuUfGAkjbgfY 2ja9HVWLYKwY1TWXjfjFYq+ZoWocsbVlMZfFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=content-type:subject:from:to:date:message-id:user-agent :content-transfer-encoding; b=Is5XEftL/U1ab7hQxw9jk5hfDsBax+WB9hYC+mjJkDkRN/ZsvdhCQIu4agkN3vO7AO Fi1/yg+ZIAso3xN6X7KKT76uJWNJTb3oX7kMwx9Sb0OAIW4UhbllRUrSKsAaWwUggUkE 7nblpYo4K14VCDGfZrrBNJ7vKWd9yq+RiqSLY= Received: by 10.141.106.8 with SMTP id i8mr1132928rvm.130.1264088192312; Thu, 21 Jan 2010 07:36:32 -0800 (PST) Received: from localhost (c-76-98-110-216.hsd1.nj.comcast.net [76.98.110.216]) by mx.google.com with ESMTPS id 21sm1172921pzk.11.2010.01.21.07.36.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 Jan 2010 07:36:31 -0800 (PST) From: Eric Sherman To: sup-devel Date: Thu, 21 Jan 2010 10:36:28 -0500 Message-Id: <1264087996-sup-5125@changeling.local> User-Agent: Sup/git Subject: [sup-devel] [PATCH] show (recipients) instead of lone "me" X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org I've changed thread-index-mode to show recipients in () parens instead of "me" in the From field for threads from me with no replies. I've developed the habit of archiving a new thread as soon as I send it, so until I receive a reply it's effectively non-existent. When checking on emails I may want to follow up on with a search like "is:sent AND after:(14 days ago) AND before:(3 days ago)" I would get a pile of lone "me"'s in the From field. I would then open each of them to decide whether or not to follow up based on who it was sent to. So this helps me cut down on the jx loops in that scenario. I'm not sure if this is something that is universally desirable, but here's the patch anyway. --- lib/sup/modes/thread-index-mode.rb | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/lib/sup/modes/thread-index-mode.rb b/lib/sup/modes/thread-index-mode.rb index a6bb2b9..0774aa8 100644 --- a/lib/sup/modes/thread-index-mode.rb +++ b/lib/sup/modes/thread-index-mode.rb @@ -793,6 +793,16 @@ protected result << [name, new[a]] end + if result.size == 1 && (author_and_newness = result.assoc("me")) + unless (recipients = t.participants - t.authors).empty? + result = recipients.collect do |r| + break if limit && result.size >= limit + name = (recipients.size == 1) ? r.mediumname : r.shortname + ["(#{name})", author_and_newness[1]] + end + end + end + result end -- 1.6.6 _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel