--- /dev/null
+Return-Path: <alpine.art.de@gmail.com>\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 0CF0A431FCF\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41:25 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.639\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.639 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7] 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 D6NAtTGxSG-I for <notmuch@notmuchmail.org>;\r
+ Thu, 22 Jan 2015 12:41:21 -0800 (PST)\r
+Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com\r
+ [209.85.212.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id C7C3B431FCB\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41:20 -0800 (PST)\r
+Received: by mail-wi0-f170.google.com with SMTP id em10so24159949wid.1\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:41:19 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=date:from:to:cc:message-id:in-reply-to:references:subject\r
+ :mime-version:content-type:content-transfer-encoding:attach;\r
+ bh=ix4VF47cEzIYuVV3zrhc/TVLqwR+DOWt7jh9d950z0k=;\r
+ b=YHVyJno6ZnbLTcIgfoYETWctmKzthtteNCJ/uUYqYbttWTUTnb6AwyTSY+I551wUuo\r
+ QyX4CbZqzfTw+O0yPkhS+IlN9x2NWy/muE41Ke9dmuTUF3ZA5MF3gSS2aIuF50DHiAQx\r
+ BKEh0e3nBUr+2Rod6iCPMk4ri018Aon8fbCNlVV0y2fopVE/VyjC0IXjkLro2+Y8khm6\r
+ Geogn+ADvc6YP0Nu+weyxuQMDTZV63tA+anyCYoeVpPnE7mxpZCHpoJKVtlxOyFYCCQI\r
+ NJAScWb4mFmvpCnZAZCaSb0EQVUmnMDEr4iRY2EhAezi9UqsPqX8BY5RcUKlVpwD46lI\r
+ Yqww==\r
+X-Received: by 10.180.83.5 with SMTP id m5mr8757031wiy.74.1421959279543;\r
+ Thu, 22 Jan 2015 12:41:19 -0800 (PST)\r
+Received: from localhost (p579BA329.dip0.t-ipconnect.de. [87.155.163.41])\r
+ by mx.google.com with ESMTPSA id h8sm241893wiy.4.2015.01.22.12.41.17\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Thu, 22 Jan 2015 12:41:18 -0800 (PST)\r
+Date: Thu, 22 Jan 2015 21:41:47 +0100\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: Bartosz <telenczuk@unic.cnrs-gif.fr>\r
+Message-ID: <54c1608bd22a9_67b66d530832@TP_L520.notmuch>\r
+In-Reply-To: <1420891384-992-2-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
+References: <1420891384-992-1-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
+ <1420891384-992-2-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
+Subject: RE: [PATCH 1/4] VIM: implemented message folding in thread view\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Attach: \r
+Cc: notmuch@notmuchmail.org, Bartosz <telenczuk@unic.cnrs-gif.fr>\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 Jan 2015 20:41:25 -0000\r
+\r
+Hi Bartosz,\r
+\r
+We already had folding via syntax in Ians fork. It turned out to be not that great.\r
+https://github.com/imain/notmuch-vim/issues/3\r
+In short:\r
+Those syntax fold marks are for one specific notmuch-show-buffer. If you open a second show-buffer those\r
+new fold marks will overwrite the ones from the previous show-buffer. Switching between those two show-buffers\r
+will spin up CPU for quite some time and completely lock vim.\r
+The fix I worked out was to switch to manual folding. Manual folds get chached for each buffer.\r
+\r
+I could come up with a patch, but I think there are more important things, like attachments or storing sent mails.\r
+It also would help a lot if we could reoranize the sources as in Ians fork. Would simplify testing, coding (proper filetype) and backporting patches.\r
+\r
+Franz\r
+\r
+Bartosz wrote:\r
+> ---\r
+> vim/notmuch.vim | 6 ++++++\r
+> 1 file changed, 6 insertions(+)\r
+> \r
+> diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+> index cad9517..34d4f92 100644\r
+> --- a/vim/notmuch.vim\r
+> +++ b/vim/notmuch.vim\r
+> @@ -345,8 +345,13 @@ ruby << EOF\r
+> VIM::command("syntax region nmShowMsg#{i}Desc start='\\%%%il' end='\\%%%il' contains=@nmShowMsgDesc" % [msg.start, msg.start + 1])\r
+> VIM::command("syntax region nmShowMsg#{i}Head start='\\%%%il' end='\\%%%il' contains=@nmShowMsgHead" % [msg.start + 1, msg.body_start])\r
+> VIM::command("syntax region nmShowMsg#{i}Body start='\\%%%il' end='\\%%%dl' contains=@nmShowMsgBody" % [msg.body_start, msg.end])\r
+> + VIM::command("syntax region nmShowMsg#{i}Fold start='\\%%%il' end='\\%%%dl' contains=nmShowMsg#{i}Body,nmShowMsg#{i}Head,nmShowMsg#{i}Desc fold" % [msg.start, msg.end])\r
+> end\r
+> + VIM::command("g/^.*(.*unread.*)$/normal zo")\r
+> + VIM::command("nohl")\r
+> + VIM::command("normal gg/unread/1") \r
+> EOF\r
+> + set foldmethod=syntax\r
+> setlocal nomodifiable\r
+> call s:set_map(g:notmuch_show_maps)\r
+> endfunction\r
+> @@ -957,5 +962,6 @@ EOF\r
+> endfunction\r
+> \r
+> command -nargs=* NotMuch call s:NotMuch(<f-args>)\r
+> +set foldtext=v:folddashes.substitute(getline(v:foldstart),'{{{','','g')\r
+> \r
+> " vim: set noexpandtab:\r
+> -- \r
+> 1.9.3 (Apple Git-50)\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r