[PATCH 4/4] Update NEWS for user.other_name
[notmuch-archives.git] / e4 / a8dd357b42c3a709d9b147ea3a6f59220852d1
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 B381F429E2A\r
6         for <notmuch@notmuchmail.org>; Sun,  6 Feb 2011 05:29:19 -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 2jYLVPc9kae8 for <notmuch@notmuchmail.org>;\r
17         Sun,  6 Feb 2011 05:29:18 -0800 (PST)\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
19         [209.85.161.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id E4236429E21\r
22         for <notmuch@notmuchmail.org>; Sun,  6 Feb 2011 05:29:15 -0800 (PST)\r
23 Received: by mail-fx0-f53.google.com with SMTP id 11so4326160fxm.26\r
24         for <notmuch@notmuchmail.org>; Sun, 06 Feb 2011 05:29:15 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer\r
27         :in-reply-to:references;\r
28         bh=Jgpb9no4joNKLYErn59+ka/01UoS2reOi2E2ijI1icE=;\r
29         b=p96dXq9E/0bC/3zZsy2HrEB/3P9GCPCoap8fHdVjssN2iwU+snake8UoQJEbY60WiN\r
30         g5nmdxrancAnWxAqRwgz+D0SBGA+PVVR5Ov09pYGAIH4IdtBhMj/wdPzYp1B7lwuNDiI\r
31         9r+0dGnAsTgXF0xg/2rWBxKo2MuOrKeEke1FA=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
34         b=qyCYApGrnW0SS5n3BeM/thlhqtTgdK5f97bBCIZTMaHeFaA0ZHNku690/CKNsFDZn1\r
35         o0v1jxtX3A02g1n/cQVzSSArSOqwSNQ9CNdsWncHslnnxDZb933jRI0gsb98jDg9nrnq\r
36         WeOJhsO0l5wT/hELSEunEwl6kqPeK8gnGXQbA=\r
37 Received: by 10.223.96.66 with SMTP id g2mr5594279fan.61.1296998955561;\r
38         Sun, 06 Feb 2011 05:29:15 -0800 (PST)\r
39 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])\r
40         by mx.google.com with ESMTPS id l3sm561284fan.2.2011.02.06.05.29.14\r
41         (version=TLSv1/SSLv3 cipher=OTHER);\r
42         Sun, 06 Feb 2011 05:29:15 -0800 (PST)\r
43 From: Felipe Contreras <felipe.contreras@gmail.com>\r
44 To: notmuch@notmuchmail.org\r
45 Subject: [PATCH 2/2] vim: parse 'from' address\r
46 Date: Sun,  6 Feb 2011 15:29:07 +0200\r
47 Message-Id: <1296998947-13683-3-git-send-email-felipe.contreras@gmail.com>\r
48 X-Mailer: git-send-email 1.7.4.1.g4f7e4.dirty\r
49 In-Reply-To: <1296998947-13683-1-git-send-email-felipe.contreras@gmail.com>\r
50 References: <1296998947-13683-1-git-send-email-felipe.contreras@gmail.com>\r
51 X-BeenThere: notmuch@notmuchmail.org\r
52 X-Mailman-Version: 2.1.13\r
53 Precedence: list\r
54 List-Id: "Use and development of the notmuch mail system."\r
55         <notmuch.notmuchmail.org>\r
56 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
58 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
59 List-Post: <mailto:notmuch@notmuchmail.org>\r
60 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
61 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
63 X-List-Received-Date: Sun, 06 Feb 2011 13:29:20 -0000\r
64 \r
65 In order to pass it to sendmail.\r
66 \r
67 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
68 ---\r
69  vim/plugin/notmuch.vim |   11 ++++++++++-\r
70  1 files changed, 10 insertions(+), 1 deletions(-)\r
71 \r
72 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
73 index 002b771..08832cc 100644\r
74 --- a/vim/plugin/notmuch.vim\r
75 +++ b/vim/plugin/notmuch.vim\r
76 @@ -961,7 +961,16 @@ function! s:NM_compose_send()\r
77          exec printf(':0,%dd', hdr_starts)\r
78          write\r
79  \r
80 -        let cmdtxt = g:notmuch_sendmail . ' -t < ' . fname\r
81 +        let line = getline(1)\r
82 +        let m = matchlist(line, '^From:\s*\(.*\)\s*<\(.*\)>$')\r
83 +        if (len(m) >= 2)\r
84 +                let from = m[2]\r
85 +        else\r
86 +                let m = matchlist(line, '^From:\s*\(.*\)$')\r
87 +                let from = m[1]\r
88 +        endif\r
89 +\r
90 +        let cmdtxt = g:notmuch_sendmail . ' -t -f ' . from . ' < ' . fname\r
91          let out = system(cmdtxt)\r
92          let err = v:shell_error\r
93          if err\r
94 -- \r
95 1.7.4.1.g4f7e4.dirty\r
96 \r