[PATCH] vim: fix regex after "notmuch show" output change
authorJakob <jakob@pipefour.org>
Thu, 22 Mar 2012 04:31:15 +0000 (21:31 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:41 +0000 (09:45 -0800)
89/dacc53a275d1009290fc27d21acfc511a32735 [new file with mode: 0644]

diff --git a/89/dacc53a275d1009290fc27d21acfc511a32735 b/89/dacc53a275d1009290fc27d21acfc511a32735
new file mode 100644 (file)
index 0000000..e0bab0d
--- /dev/null
@@ -0,0 +1,82 @@
+Return-Path: <jakob@pipefour.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 74622431FAE\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Mar 2012 21:32:57 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id lxYuR8QRLZWn for <notmuch@notmuchmail.org>;\r
+       Wed, 21 Mar 2012 21:32:55 -0700 (PDT)\r
+Received: from qmta08.westchester.pa.mail.comcast.net\r
+       (qmta08.westchester.pa.mail.comcast.net [76.96.62.80])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4922D431FAF\r
+       for <notmuch@notmuchmail.org>; Wed, 21 Mar 2012 21:32:55 -0700 (PDT)\r
+Received: from omta16.westchester.pa.mail.comcast.net ([76.96.62.88])\r
+       by qmta08.westchester.pa.mail.comcast.net with comcast\r
+       id oUVQ1i0071uE5Es58UYu3S; Thu, 22 Mar 2012 04:32:54 +0000\r
+Received: from dalek.condo.net ([67.170.34.167])\r
+       by omta16.westchester.pa.mail.comcast.net with comcast\r
+       id oUYt1i00G3cMnU33cUYtB6; Thu, 22 Mar 2012 04:32:54 +0000\r
+Received: from jakob by dalek.condo.net with local (Exim 4.77)\r
+       (envelope-from <jakob@dalek.hsd1.wa.comcast.net.>)\r
+       id 1SAZh1-00089S-EB; Wed, 21 Mar 2012 21:32:07 -0700\r
+From: Jakob <jakob@pipefour.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] vim: fix regex after "notmuch show" output change\r
+Date: Wed, 21 Mar 2012 21:31:15 -0700\r
+Message-Id: <1332390675-31273-1-git-send-email-jakob@pipefour.org>\r
+X-Mailer: git-send-email 1.7.9.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 22 Mar 2012 04:32:57 -0000\r
+\r
+The new field "excluded" was added to the output and made this regex fail.\r
+---\r
+ vim/plugin/notmuch.vim |    5 +++--\r
+ 1 files changed, 3 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
+index 21985c7..92e1b50 100644\r
+--- a/vim/plugin/notmuch.vim\r
++++ b/vim/plugin/notmuch.vim\r
+@@ -48,7 +48,7 @@ let s:notmuch_defaults = {\r
+         \ 'g:notmuch_show_part_end_regexp':          '\f\r
+part}'                   ,\r
+         \ 'g:notmuch_show_marker_regexp':            '\f\r
+\\(message\\|header\\|body\\|attachment\\|part\\)[{}].*$',\r
+         \\r
+-        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) filename:\(.*\)$',\r
++        \ 'g:notmuch_show_message_parse_regexp':     '\(id:[^ ]*\) depth:\([0-9]*\) match:\([0-9]*\) excluded:\([[0-9]*\) filename:\(.*\)$',\r
+         \ 'g:notmuch_show_tags_regexp':              '(\([^)]*\))$'               ,\r
+         \\r
+         \ 'g:notmuch_show_signature_regexp':         '^\(-- \?\|_\+\)$'           ,\r
+@@ -870,7 +870,8 @@ function! s:NM_cmd_show_parse(inlines)\r
+                                         let msg['id'] = m[1]\r
+                                         let msg['depth'] = m[2]\r
+                                         let msg['match'] = m[3]\r
+-                                        let msg['filename'] = m[4]\r
++                                        let msg['excluded'] = m[4]\r
++                                        let msg['filename'] = m[5]\r
+                                 endif\r
+ \r
+                                 let in_message = 1\r
+-- \r
+1.7.9.1\r
+\r