1 Return-Path: <BATV+bbc4756b788e67be553a+2433+infradead.org+hohndel@bombadil.srs.infradead.org>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id CE12F4196F2
\r
6 for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 20:57:20 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.8 tagged_above=-999 required=5
\r
12 tests=[BAYES_05=-0.5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 0WOumiqwf-3X for <notmuch@notmuchmail.org>;
\r
16 Wed, 21 Apr 2010 20:57:19 -0700 (PDT)
\r
17 Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34])
\r
18 by olra.theworths.org (Postfix) with ESMTP id D27CF431FC1
\r
19 for <notmuch@notmuchmail.org>; Wed, 21 Apr 2010 20:57:19 -0700 (PDT)
\r
20 Received: from localhost ([::1] helo=x200.gr8dns.org)
\r
21 by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux))
\r
22 id 1O4nXT-0006wL-Bw; Thu, 22 Apr 2010 03:57:19 +0000
\r
23 Received: by x200.gr8dns.org (Postfix, from userid 500)
\r
24 id C76F9C0212; Wed, 21 Apr 2010 20:57:18 -0700 (PDT)
\r
25 From: Dirk Hohndel <hohndel@infradead.org>
\r
26 To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch <notmuch@notmuchmail.org>
\r
27 Subject: Re: [RFC] reordering and cleanup of thread authors
\r
28 In-Reply-To: <m3wrwg6n9y.fsf@x200.gr8dns.org>
\r
29 References: <m31veru7vn.fsf@x200.gr8dns.org> <87zl1d5fc0.fsf@steelpick.2x.cz>
\r
30 <m3zl1cfsb4.fsf@x200.gr8dns.org>
\r
31 <87aatcysw8.fsf@wsheee.localdomain>
\r
32 <m3wrwg6n9y.fsf@x200.gr8dns.org>
\r
33 Date: Wed, 21 Apr 2010 20:57:18 -0700
\r
34 Message-ID: <m3aaswyw9t.fsf@x200.gr8dns.org>
\r
35 User-Agent: notmuch 0.2-52-ga28d2fe (Emacs 23.1.1/i386-redhat-linux-gnu)
\r
37 Content-Type: text/plain; charset=us-ascii
\r
38 X-SRS-Rewrite: SMTP reverse-path rewritten from <hohndel@infradead.org> by
\r
39 bombadil.infradead.org See http://www.infradead.org/rpr.html
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Thu, 22 Apr 2010 03:57:21 -0000
\r
54 On Fri, 09 Apr 2010 19:42:49 -0700, Dirk Hohndel <hohndel@infradead.org> wrote:
\r
55 > On Sat, 10 Apr 2010 03:53:59 +0200, Michal Sojka <sojkam1@fel.cvut.cz> wrote:
\r
56 > > I think that using | as a separator would help here. Let's say that
\r
57 > > initially we have "Matched Author, Non Matched, Matched Again" we can
\r
58 > > tranform this to "Matched Author, Matched Again| Non Matched". This way,
\r
59 > > the length of the string remains the same. If there is no | after
\r
60 > > transformation, we know that all authors matched because there is always
\r
61 > > at least one mathed author in the search results.
\r
63 > That's a great idea. I'll update the patch to do that.
\r
65 Since Carl just prompted me, I wrote an updated patch (will post in a
\r
66 separate message replying to this one).
\r
68 I made the change suggested by Michal, fixed a bug or two and removed
\r
69 the part of the patch that was trying to cleanup author names in "Last,
\r
70 First" format - on IRC it was pointed out to me that I was overlooking
\r
71 another use of the ',' in email addresses: accounts that are shared by
\r
72 multiple people. And it makes no sense to reorder email addresses of the
\r
73 form "Wife, Husband and child" <familyaccount@add.res>
\r
75 I haven't given up on this, though. Since Exchange and Outlook have this
\r
76 nasty habit of creating these "Last, First" <first.last@company.com> or
\r
77 "Last, First MI" <first.mi.last@company.com> from headers, I really want
\r
78 to add the option to clean those up. So I'll submit a separate patch
\r
79 that checks if we have exactly one of these two pattern shown here - and
\r
80 that then reorders things
\r
86 Intel Open Source Technology Center
\r