Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 71 / 326cd44d0b05431b9c2e84a2c67119a9948801
1 Return-Path: <noodles@earth.li>\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 945D5431FBC\r
6         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 14:10:47 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id k-m1DJ2O56PI for <notmuch@notmuchmail.org>;\r
11         Mon, 30 Nov 2009 14:10:46 -0800 (PST)\r
12 Received: from mout.perfora.net (mout.perfora.net [74.208.4.194])\r
13         by olra.theworths.org (Postfix) with ESMTP id CF1B9431FAE\r
14         for <notmuch@notmuchmail.org>; Mon, 30 Nov 2009 14:10:46 -0800 (PST)\r
15 Received: from the.earth.li (the.earth.li [217.147.81.2])\r
16         by mx.perfora.net (node=mxus2) with ESMTP (Nemesis)\r
17         id 0LiEbD-1NtqGD0nf1-00n0Vt for notmuch@notmuchmail.org;\r
18         Mon, 30 Nov 2009 17:10:46 -0500\r
19 Received: from noodles by the.earth.li with local (Exim 4.69)\r
20         (envelope-from <noodles@earth.li>)\r
21         id 1NFESA-00021D-Rn; Mon, 30 Nov 2009 22:10:42 +0000\r
22 Date: Mon, 30 Nov 2009 22:10:42 +0000\r
23 From: Jonathan McDowell <noodles@earth.li>\r
24 To: Bart Trojanowski <bart@jukie.net>\r
25 Message-ID: <20091130221042.GZ15144@earth.li>\r
26 MIME-Version: 1.0\r
27 Content-Type: text/plain; charset=us-ascii\r
28 Content-Disposition: inline\r
29 User-Agent: Mutt/1.5.18 (2008-05-17)\r
30 X-Mailman-Approved-At: Mon, 30 Nov 2009 23:41:13 -0800\r
31 Cc: notmuch@notmuchmail.org\r
32 Subject: [notmuch] [PATCH] Allow empty name for thread author with vim plugin\r
33 X-BeenThere: notmuch@notmuchmail.org\r
34 X-Mailman-Version: 2.1.12\r
35 Precedence: list\r
36 List-Id: "Use and development of the notmuch mail system."\r
37         <notmuch.notmuchmail.org>\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
39         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
41 List-Post: <mailto:notmuch@notmuchmail.org>\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
45 X-List-Received-Date: Mon, 30 Nov 2009 22:10:47 -0000\r
46 \r
47 Hi.\r
48 \r
49 I've been playing with notmuch + the vim plugin and been getting "ERROR\r
50 PARSING" displayed. Turns out this is due to lines like:\r
51 \r
52 thread:55334d46382493cd49226a1a20ad335f   2000-11-20 [1/1] ; New Enquiry (inbox unread)\r
53 \r
54 where the author of the mail is empty. The simple patch below seems to\r
55 make things happier for me.\r
56 \r
57 Signed-Off-By: Jonathan McDowell <noodles@earth.li>\r
58 \r
59 -----\r
60 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim\r
61 index b415f50..728adaa 100644\r
62 --- a/vim/plugin/notmuch.vim\r
63 +++ b/vim/plugin/notmuch.vim\r
64 @@ -249,7 +249,7 @@ function! s:NM_cmd_search(words)\r
65          setlocal nowrap\r
66  endfunction\r
67  function! s:NM_cmd_search_fmtline(line)\r
68 -        let m = matchlist(a:line, '^\(thread:\S\+\)\s\([^]]\+\]\) \([^;]\+\); \(.*\) (\([^(]*\))$')\r
69 +        let m = matchlist(a:line, '^\(thread:\S\+\)\s\([^]]\+\]\) \([^;]*\); \(.*\) (\([^(]*\))$')\r
70          if !len(m)\r
71                  return 'ERROR PARSING: ' . a:line\r
72          endif\r
73 -----\r
74 \r
75 \r
76 J.\r
77 \r
78 -- \r
79 ] http://www.earth.li/~noodles/ [] "Why 'maybe' for everything?" "I'm  [\r
80 ]  PGP/GPG Key @ the.earth.li   []        using fluffy logic."         [\r
81 ] via keyserver, web or email.  []                                     [\r
82 ] RSA: 4096/2DA8B985            []                                     [\r