Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 68 / 61bdbe65bcd6712d7798eb51d84da723de587c
1 Return-Path: <felipe.contreras@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 21A7E431FB6\r
6         for <notmuch@notmuchmail.org>; Thu,  9 Dec 2010 14:16:55 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, 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 zzQ54PhhQI2p for <notmuch@notmuchmail.org>;\r
17         Thu,  9 Dec 2010 14:16:54 -0800 (PST)\r
18 Received: from mail-bw0-f52.google.com (mail-bw0-f52.google.com\r
19         [209.85.214.52])\r
20         by olra.theworths.org (Postfix) with ESMTP id 40E9741A54B\r
21         for <notmuch@notmuchmail.org>; Thu,  9 Dec 2010 14:16:54 -0800 (PST)\r
22 Received: by mail-bw0-f52.google.com with SMTP id 4so3687965bwz.39\r
23         for <notmuch@notmuchmail.org>; Thu, 09 Dec 2010 14:16:54 -0800 (PST)\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
25         h=domainkey-signature:received:received:from:to:cc:subject:date\r
26         :message-id:x-mailer:in-reply-to:references;\r
27         bh=ktcaU4dbTGhnIO/pVBJYSnRPgXpa6JvWKcKyBDFu2jQ=;\r
28         b=fx6n2QD+/28Etfpa+t6p6Ptzb/cYINKSPpZO1+AoptlDyvEQE4kifxNDufrg4kNQzH\r
29         yH/msYKFu5AetSwA/8+hAh7brjWW9qLFegUGwkJC2LSminGqjcRiuSb/8B7keWUQbuW6\r
30         WAPT7Bm+cTnryHC5rzU8kxQ3ZwHfaAeoPDAxo=\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
32         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
33         b=W4uV89dA60l9XdY1ePaqm6kFIXw5SFW34yvQJ7xkUg7G2SIP9HsYQ1REHbRv9NPfq4\r
34         l3RFNGBgzALrlR/grVXRRmTtnnmPQGm2jzlZdthOVxZfItk17Lh7YdL4ieOPG+zLcG/F\r
35         nlX8oouM403szWgxSnTAoYrABKK3FMK1yxUXk=\r
36 Received: by 10.204.54.65 with SMTP id p1mr6132bkg.10.1291933013947;\r
37         Thu, 09 Dec 2010 14:16:53 -0800 (PST)\r
38 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])\r
39         by mx.google.com with ESMTPS id\r
40         d11sm1214933bkd.10.2010.12.09.14.16.52\r
41         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
42         Thu, 09 Dec 2010 14:16:52 -0800 (PST)\r
43 From: Felipe Contreras <felipe.contreras@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 2/3] vim: fix get_user_email()\r
46 Date: Fri, 10 Dec 2010 00:16:24 +0200\r
47 Message-Id: <1291932985-5220-3-git-send-email-felipe.contreras@gmail.com>\r
48 X-Mailer: git-send-email 1.7.3.2\r
49 In-Reply-To: <1291932985-5220-1-git-send-email-felipe.contreras@gmail.com>\r
50 References: <1291932985-5220-1-git-send-email-felipe.contreras@gmail.com>\r
51 Cc: Felipe Contreras <felipe.contreras@ngmail.com>\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Thu, 09 Dec 2010 22:16:55 -0000\r
65 \r
66 From: Felipe Contreras <felipe.contreras@ngmail.com>\r
67 \r
68 Signed-off-by: Felipe Contreras <felipe.contreras@ngmail.com>\r
69 ---\r
70  vim/plugin/notmuch.vim |    8 +++-----\r
71  1 files changed, 3 insertions(+), 5 deletions(-)\r
72 \r
73 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
74 index 6898d56..8815712 100644\r
75 --- a/vim/plugin/notmuch.vim\r
76 +++ b/vim/plugin/notmuch.vim\r
77 @@ -1027,11 +1027,9 @@ endfunction\r
78  " --- --- compose screen helper functions {{{2\r
79  \r
80  function! s:NM_compose_get_user_email()\r
81 -        let name = substitute(system('id -u -n'), '\v(^\s*|\s*$|\n)', '', 'g')\r
82 -        let fqdn = substitute(system('hostname -f'), '\v(^\s*|\s*$|\n)', '', 'g')\r
83 -\r
84 -        " TODO: do this properly\r
85 -        return name . '@' . fqdn\r
86 +        let rname = system("getent passwd $USER | cut -d ':' -f 5")\r
87 +        let rname = substitute(rname, '\n*$', '', '')\r
88 +        return printf("%s <%s>", rname, $EMAIL)\r
89  endfunction\r
90  \r
91  function! s:NM_compose_find_line_match(start, pattern, failure)\r
92 -- \r
93 1.7.3.2\r
94 \r