[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 81 / 7acdcfc4f622b479f6f0a578c3712eab64d491
1 Return-Path: <jasonwoof@gmail.com>\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 A9272429E2A\r
6         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 22:40:41 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.699\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id 1mYGFpzx0VO8 for <notmuch@notmuchmail.org>;\r
17         Sun, 10 Jul 2011 22:40:39 -0700 (PDT)\r
18 Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com\r
19         [209.85.212.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 81C57429E27\r
22         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 22:40:37 -0700 (PDT)\r
23 Received: by vws13 with SMTP id 13so2781812vws.26\r
24         for <notmuch@notmuchmail.org>; Sun, 10 Jul 2011 22:40:36 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=sender:from:to:subject:date:message-id:x-mailer:in-reply-to\r
27         :references; bh=sVK5KqEekVhhZkWl7UzNKL9lNA2Uksq373pCP0O2bFU=;\r
28         b=AKMD9neOcLg0E7NmJQaULTpdbdZW0EhWNBAAjCOGzjj4Nu12B1+zcXIZVWaFqIFawU\r
29         3V4/oTFn5rkwNjGw+0Gq4/5PRyZrzdmLH/CVaOlwKQcCfjHVurBEYPKsIccV7ceuQhgl\r
30         BG+Np8z9SiRgksM3YtK3OYElyvCuxFcdZqC+Y=\r
31 Received: by 10.52.94.46 with SMTP id cz14mr1808980vdb.501.1310362836908;\r
32         Sun, 10 Jul 2011 22:40:36 -0700 (PDT)\r
33 Received: from localhost.localdomain (c-98-216-100-90.hsd1.ma.comcast.net\r
34         [98.216.100.90])\r
35         by mx.google.com with ESMTPS id bl2sm5324172vbb.9.2011.07.10.22.40.36\r
36         (version=SSLv3 cipher=OTHER); Sun, 10 Jul 2011 22:40:36 -0700 (PDT)\r
37 Sender: Jason Woofenden <jasonwoof@gmail.com>\r
38 From: Jason Woofenden <jason@jasonwoof.com>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 2/5] vim: fix from list reformatting in search view\r
41 Date: Mon, 11 Jul 2011 01:40:07 -0400\r
42 Message-Id: <1310362810-10926-3-git-send-email-jason@jasonwoof.com>\r
43 X-Mailer: git-send-email 1.7.5.4\r
44 In-Reply-To: <1310362810-10926-1-git-send-email-jason@jasonwoof.com>\r
45 References: <1310362810-10926-1-git-send-email-jason@jasonwoof.com>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Mon, 11 Jul 2011 05:40:42 -0000\r
59 \r
60 This patch rewrites the reformatting of the from list so it shows full\r
61 capitalized names when available (without truncating them as the old code did)\r
62 and removes the pipe characters that appear between some names.\r
63 \r
64 The old code appears to assume from list (the list of senders in the thread)\r
65 coming from notmuch would be e-mail addresses, but in this version it is mostly\r
66 full names. Also in this version, the names are sometimes separated by pipe\r
67 instead of comma.\r
68 \r
69 For consistency with old versions, names are still truncated at the first\r
70 period. Perhaps they shouldn't be though.\r
71 ---\r
72  vim/plugin/notmuch.vim |   10 +++++-----\r
73  1 files changed, 5 insertions(+), 5 deletions(-)\r
74 \r
75 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
76 index d493580..e4b22d3 100644\r
77 --- a/vim/plugin/notmuch.vim\r
78 +++ b/vim/plugin/notmuch.vim\r
79 @@ -262,12 +262,12 @@ function! s:NM_cmd_search_fmtline(line)\r
80                  return 'ERROR PARSING: ' . a:line\r
81          endif\r
82          let max = g:notmuch_search_from_column_width\r
83 -        let flist = []\r
84 -        for at in split(m[4], ", ")\r
85 -                let p = min([stridx(at, "."), stridx(at, "@")])\r
86 -                call insert(flist, tolower(at[0:p - 1]))\r
87 +        let flist = {}\r
88 +        for at in split(m[4], '[|,] ')\r
89 +                let p = split(at, '[@.]')\r
90 +                let flist[p[0]] = 1\r
91          endfor\r
92 -        let from = join(flist, ", ")\r
93 +        let from = join(keys(flist), ", ")\r
94          return printf("%-12s %3s %-20.20s | %s (%s)", m[2], m[3], from, m[5], m[6])\r
95  endfunction\r
96  \r
97 -- \r
98 1.7.5.4\r
99 \r