Re: [PATCH] lib: provide _notmuch_database_log_append
[notmuch-archives.git] / 7e / a14ff86843609358d732a0eb4e097b2d954495
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 9E1FC429E37\r
6         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:39 -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.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 8JYAWLj6kCNe for <notmuch@notmuchmail.org>;\r
17         Wed,  4 May 2011 13:13:38 -0700 (PDT)\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
19         [209.85.215.181]) (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 94248429E31\r
22         for <notmuch@notmuchmail.org>; Wed,  4 May 2011 13:13:31 -0700 (PDT)\r
23 Received: by mail-ey0-f181.google.com with SMTP id 5so465261eyh.26\r
24         for <notmuch@notmuchmail.org>; Wed, 04 May 2011 13:13:31 -0700 (PDT)\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=FJrhQyFeo2wQeRIoce6aXOC9oDLYys/nsCI7F23xPf8=;\r
29         b=CU6hPJR1a0rGjCReptPT5klN+y7vP2050JFGc+P5bLEr64pOhiA8/X2WXs44f7IMoS\r
30         yrSdJBvz/ACb2rwXnA5iQh+dW34ty69xwPKg1CPUCYpnIkwDgrAGePrQNl3R2i7o1KyA\r
31         LRZKxYluGrLY7zWGcuGrKhWcAt4UfezARmm4Q=\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=WHU5sfey27QHOG5i6TA9Dpvul4wTPeGXVbuhCZjv2nAluA70sFlemmG9doTzP12vAE\r
35         X98N7lNxbOEV6luEwsfelUTNSdXXgX8XayQW+DP5JmfwxZWmoKO8+sE7gKTWtePICCFB\r
36         G1B/tyFQyHEZNMmKUWH/LQHRTL2pgpCfG8ei8=\r
37 Received: by 10.14.22.13 with SMTP id s13mr736658ees.89.1304540011178;\r
38         Wed, 04 May 2011 13:13:31 -0700 (PDT)\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\r
41         s49sm1098764eei.12.2011.05.04.13.13.29\r
42         (version=TLSv1/SSLv3 cipher=OTHER);\r
43         Wed, 04 May 2011 13:13:30 -0700 (PDT)\r
44 From: Felipe Contreras <felipe.contreras@gmail.com>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: [PATCH 4/4] vim: add delete commands\r
47 Date: Wed,  4 May 2011 23:13:16 +0300\r
48 Message-Id: <1304539996-6686-5-git-send-email-felipe.contreras@gmail.com>\r
49 X-Mailer: git-send-email 1.7.5\r
50 In-Reply-To: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.com>\r
51 References: <1304539996-6686-1-git-send-email-felipe.contreras@gmail.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: Wed, 04 May 2011 20:13:40 -0000\r
65 \r
66 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>\r
67 ---\r
68  vim/plugin/notmuch.vim |   12 ++++++++++++\r
69  1 files changed, 12 insertions(+), 0 deletions(-)\r
70 \r
71 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
72 index c49ada5..0b1e0a3 100644\r
73 --- a/vim/plugin/notmuch.vim\r
74 +++ b/vim/plugin/notmuch.vim\r
75 @@ -152,6 +152,8 @@ let g:notmuch_show_maps = {\r
76          \ 'I':          ':call <SID>NM_show_mark_read_thread()<CR>',\r
77          \ 'a':          ':call <SID>NM_show_archive_thread()<CR>',\r
78          \ 'A':          ':call <SID>NM_show_mark_read_then_archive_thread()<CR>',\r
79 +        \ 'D':          ':call <SID>NM_show_delete_thread()<CR>',\r
80 +        \ 'd':          ':call <SID>NM_show_delete_message()<CR>',\r
81          \ 'N':          ':call <SID>NM_show_mark_read_then_next_open_message()<CR>',\r
82          \ 'v':          ':call <SID>NM_show_view_all_mime_parts()<CR>',\r
83          \ '+':          ':call <SID>NM_show_add_tag()<CR>',\r
84 @@ -522,6 +524,16 @@ function! s:NM_show_mark_read_then_archive_thread()\r
85          call <SID>NM_show_next_thread()\r
86  endfunction\r
87  \r
88 +function! s:NM_show_delete_thread()\r
89 +        call <SID>NM_tag(b:nm_search_words, ['+delete', '-inbox', '-unread'])\r
90 +        call <SID>NM_show_next_thread()\r
91 +endfunction\r
92 +\r
93 +function! s:NM_show_delete_message()\r
94 +        let msg = <SID>NM_show_get_message_for_line(line('.'))\r
95 +        call <SID>NM_tag([msg['id']], ['+delete', '-inbox', '-unread'])\r
96 +endfunction\r
97 +\r
98  function! s:NM_show_mark_read_then_next_open_message()\r
99          echo 'not implemented'\r
100  endfunction\r
101 -- \r
102 1.7.5\r
103 \r