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 C95A0429E28
\r
6 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:03:39 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 qXcNUj56B3Hf for <notmuch@notmuchmail.org>;
\r
17 Sat, 2 Nov 2013 07:03:34 -0700 (PDT)
\r
18 Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com
\r
19 [209.85.214.182]) (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 36714429E3F
\r
22 for <notmuch@notmuchmail.org>; Sat, 2 Nov 2013 07:02:55 -0700 (PDT)
\r
23 Received: by mail-ob0-f182.google.com with SMTP id wn1so5653579obc.13
\r
24 for <notmuch@notmuchmail.org>; Sat, 02 Nov 2013 07:02:54 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=suHNzO5EdpohLmcbrZxQHqChN/dQf0pU2V/MdSnFO/g=;
\r
28 b=ng6SFmvbtPsuPBH2Z0EZRP5Gwj1qLlbKFxUWxOHnaj826eUkCAlLJLq8zjUP36QnAd
\r
29 JWIDLbFAhnYdB6QLSxd0WBz+OhSFjisKRvsGl/+Sd8fD0f4umvjRmel6ETbqM/X/eUSj
\r
30 7bIyhe2/R/ibFH/C7bLpnDR/+raJG8/nNcDqeufe/CX0Ie/z2lDbyFKYpqkba/yFjCnp
\r
31 /IzeyNNicfY9FVL3GZVyqyF+pAK9dcVoKABu+sA0Myw/IkQ4FqMhG9vkc38JxOLZ9sgP
\r
32 F+0Fof/cKYBX+r4oisF6lQOeJCfd6sXw0vo8kzU/kBiuZK906TXHHmq0RK/PdfdDapN6
\r
34 X-Received: by 10.182.153.226 with SMTP id vj2mr6585652obb.26.1383400974759;
\r
35 Sat, 02 Nov 2013 07:02:54 -0700 (PDT)
\r
36 Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])
\r
37 by mx.google.com with ESMTPSA id j9sm5190122oef.8.2013.11.02.07.02.53
\r
38 for <multiple recipients>
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
\r
40 Sat, 02 Nov 2013 07:02:54 -0700 (PDT)
\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 07/21] vim: add option to save the patches of a patch series
\r
44 Date: Sat, 2 Nov 2013 07:55:40 -0600
\r
45 Message-Id: <1383400554-1832-8-git-send-email-felipe.contreras@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4.2+fc1
\r
47 In-Reply-To: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
48 References: <1383400554-1832-1-git-send-email-felipe.contreras@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Sat, 02 Nov 2013 14:03:40 -0000
\r
63 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
65 vim/notmuch.vim | 15 +++++++++++++++
\r
66 1 file changed, 15 insertions(+)
\r
68 diff --git a/vim/notmuch.vim b/vim/notmuch.vim
\r
69 index a1c5e28..9cfa795 100644
\r
70 --- a/vim/notmuch.vim
\r
71 +++ b/vim/notmuch.vim
\r
72 @@ -34,6 +34,7 @@ let g:notmuch_rb_show_maps = {
\r
73 \ 'o': 'show_open_msg()',
\r
74 \ 'e': 'show_extract_msg()',
\r
75 \ 's': 'show_save_msg()',
\r
76 + \ 'p': 'show_save_patches()',
\r
77 \ 'r': 'show_reply()',
\r
78 \ '?': 'show_info()',
\r
79 \ '<Tab>': 'show_next_msg()',
\r
80 @@ -181,6 +182,20 @@ ruby << EOF
\r
84 +function! s:show_save_patches()
\r
86 + q = $curbuf.query($cur_thread)
\r
87 + t = q.search_threads.first
\r
89 + t.toplevel_messages.first.replies.each do |m|
\r
90 + next if not m['subject'] =~ /^\[PATCH.*\]/
\r
91 + file = "%04d.patch" % [n += 1]
\r
92 + system "notmuch show --format=mbox id:#{m.message_id} > #{file}"
\r
94 + vim_puts "Saved #{n} patches"
\r
98 function! s:show_tag(intags)
\r
100 let tags = input('tags: ')
\r