* [sup-devel] [PATCH] show (recipients) instead of lone "me"
@ 2010-01-21 15:36 Eric Sherman
2010-01-21 21:34 ` Tero Tilus
2010-02-27 7:54 ` Rich Lane
0 siblings, 2 replies; 5+ messages in thread
From: Eric Sherman @ 2010-01-21 15:36 UTC (permalink / raw)
To: sup-devel
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 j<CR>x 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sup-devel] [PATCH] show (recipients) instead of lone "me"
2010-01-21 15:36 [sup-devel] [PATCH] show (recipients) instead of lone "me" Eric Sherman
@ 2010-01-21 21:34 ` Tero Tilus
2010-01-21 23:56 ` Ben Walton
2010-02-27 7:54 ` Rich Lane
1 sibling, 1 reply; 5+ messages in thread
From: Tero Tilus @ 2010-01-21 21:34 UTC (permalink / raw)
To: sup-devel
Eric Sherman, 2010-01-21 17:36:
> 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.
+1
Patched my daily-sup right away. I'd like to see this in mainline.
--
Tero Tilus ## 050 3635 235 ## http://tero.tilus.net/
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sup-devel] [PATCH] show (recipients) instead of lone "me"
2010-01-21 21:34 ` Tero Tilus
@ 2010-01-21 23:56 ` Ben Walton
2010-03-01 14:58 ` William Morgan
0 siblings, 1 reply; 5+ messages in thread
From: Ben Walton @ 2010-01-21 23:56 UTC (permalink / raw)
To: sup-devel
[-- Attachment #1.1: Type: text/plain, Size: 436 bytes --]
Excerpts from Tero Tilus's message of Thu Jan 21 16:34:57 -0500 2010:
> Patched my daily-sup right away. I'd like to see this in mainline.
I didn't get a chance today, but I'd also give this a +1. It makes a
good deal of sense.
-Ben
--
Ben Walton
Systems Programmer - CHASS
University of Toronto
C:416.407.5610 | W:416.978.4302
GPG Key Id: 8E89F6D2; Key Server: pgp.mit.edu
Contact me to arrange for a CAcert assurance meeting.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sup-devel] [PATCH] show (recipients) instead of lone "me"
2010-01-21 15:36 [sup-devel] [PATCH] show (recipients) instead of lone "me" Eric Sherman
2010-01-21 21:34 ` Tero Tilus
@ 2010-02-27 7:54 ` Rich Lane
1 sibling, 0 replies; 5+ messages in thread
From: Rich Lane @ 2010-02-27 7:54 UTC (permalink / raw)
To: Eric Sherman; +Cc: sup-devel
Applied to master.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [sup-devel] [PATCH] show (recipients) instead of lone "me"
2010-01-21 23:56 ` Ben Walton
@ 2010-03-01 14:58 ` William Morgan
0 siblings, 0 replies; 5+ messages in thread
From: William Morgan @ 2010-03-01 14:58 UTC (permalink / raw)
To: sup-devel
Reformatted excerpts from Ben Walton's message of 2010-01-21:
> I didn't get a chance today, but I'd also give this a +1. It makes a
> good deal of sense.
I'm really digging this too.
--
William <wmorgan-sup@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-03-01 14:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-21 15:36 [sup-devel] [PATCH] show (recipients) instead of lone "me" Eric Sherman
2010-01-21 21:34 ` Tero Tilus
2010-01-21 23:56 ` Ben Walton
2010-03-01 14:58 ` William Morgan
2010-02-27 7:54 ` Rich Lane
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox