From: bdwalton@gmail.com (Ben Walton)
Subject: [sup-talk] [PATCH] filter-person hook
Date: Tue, 17 Jun 2008 15:02:59 -0400 [thread overview]
Message-ID: <f96e0240806171202v64296c26s54b7c7386ed95dee@mail.gmail.com> (raw)
Hi All,
After being a little frustrated with the PersonManager machinery and
what it did to mail from our ticketing system, I decided to go in a
rip out that code (as William mentioned might be worthwhile some time
back). I did this but wasn't thrilled with the result...all threads
in the index are initially displayed without the 'proper' names on
them. In most cases, the PersonManager code was doing the right thing
(at least in my view) and I like the functionality overall.
In light of this I decided to add a hook instead that lets the user
determine on the fly whether or not to cache display names in the
PersonManager. The attached patch adds the filter-person hook to
accomplish this. The hook is passed a person object and should return
a boolean value. A true value indicates that the person object for
the specific piece of mail should be returned, thus giving sup the
name attached to the individual piece of mail. False indicates that
the 'best' name as cached by PersonManager will be used. I've been
running this patch for about a week and am happy with it. A colleague
has also been using it.
I hope you'll find it useful as well. I think it's a "best of both
worlds" type approach!
-Ben
--
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <bdwalton at gmail.com>
When one person suffers from a delusion, it is called insanity. When
many people suffer from a delusion it is called Religion.
Robert M. Pirsig, Zen and the Art of Motorcycle Maintenance
---------------------------------------------------------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Added-filter-person-hook.patch
Type: text/x-diff
Size: 2560 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/sup-talk/attachments/20080617/e858d40f/attachment.bin>
next reply other threads:[~2008-06-17 19:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-17 19:02 Ben Walton [this message]
2008-06-19 17:46 ` William Morgan
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=f96e0240806171202v64296c26s54b7c7386ed95dee@mail.gmail.com \
--to=bdwalton@gmail.com \
/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