--- /dev/null
+Return-Path: <telenczuk@unic.cnrs-gif.fr>\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 263B4431E84\r
+ for <notmuch@notmuchmail.org>; Sat, 10 Jan 2015 04:03:26 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 2.438\r
+X-Spam-Level: **\r
+X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
+ tests=[DNS_FROM_AHBL_RHSBL=2.438] 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 hzyCPZ2pYu4X for <notmuch@notmuchmail.org>;\r
+ Sat, 10 Jan 2015 04:03:19 -0800 (PST)\r
+Received: from smtp.webfaction.com (mail6.webfaction.com [74.55.86.74])\r
+ by olra.theworths.org (Postfix) with ESMTP id EB400431E64\r
+ for <notmuch@notmuchmail.org>; Sat, 10 Jan 2015 04:03:18 -0800 (PST)\r
+Received: from localhost (87-231-242-54.rev.numericable.fr [87.231.242.54])\r
+ by smtp.webfaction.com (Postfix) with ESMTP id BCB9359A3AB9\r
+ for <notmuch@notmuchmail.org>; Sat, 10 Jan 2015 12:03:14 +0000 (UTC)\r
+From: Bartosz <telenczuk@unic.cnrs-gif.fr>\r
+To: notmuch@notmuchmail.org\r
+Subject: [DRAFT] New features in Vim interface\r
+Date: Sat, 10 Jan 2015 13:03:00 +0100\r
+Message-Id: <1420891384-992-1-git-send-email-telenczuk@unic.cnrs-gif.fr>\r
+X-Mailer: git-send-email 1.9.3 (Apple Git-50)\r
+X-Mailman-Approved-At: Sat, 10 Jan 2015 10:22:22 -0800\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: Sat, 10 Jan 2015 12:03:26 -0000\r
+\r
+Hi,\r
+\r
+I really like to use notmuch for organising my emails. However, I noticed that vim interface is slightly lagging behind emacs. Some of the most important features still missing are:\r
+\r
+- adding attachments (PATCH 4)\r
+- saving sent emails to "Sent" box in maildir (PATCH 3)\r
+- forwarding messages (not implemented yet)\r
+- folding read messages in thread view (PATCH 1 and 2)\r
+\r
+This patch series attempts to implement some of the features. It is not a finished product, but rather a prototype of the interface. If you consider it worthwhile I will try to polish the patches.\r
+\r
+[PATCH 1/4] VIM: implemented message folding in thread view\r
+\r
+This patch automatically folds all read messages in thread view and jumps to the first unread message (if present). It uses vim folding mechanisms (based on syntax definition), so folds can be easily opened/closed.\r
+\r
+[PATCH 2/4] VIM: move backward trough messages in thread mode\r
+\r
+Currently, vim frontend allows to jump forward through messages in a thread using Tab key. This patch introduces Shift-Tab shortcut to move backwards. In addition, jumping to a new message automatically unfolds it.\r
+\r
+[PATCH 3/4] VIM: save sent message to maildir\r
+\r
+This patch uses "notmuch insert" for adding a message to a sent folder in mail archives after it is sent. The path to "sent" folder is configurable through .notmuch-config, by defining a section called [vim]. So far there is a single parameter in the section "sent_dirs" that should define a mapping between email addresses and folders. For example:\r
+\r
+ [vim]\r
+ sent_dirs=telenczb@hu-berlin.de=>HU/Sent;telenczuk@unic.cnrs-gif.fr=>CNRS/Sent\r
+\r
+Email address is parsed from the "From" header of the sent email.\r
+\r
+[PATCH 4/4] VIM: adding attachments\r
+\r
+Paths to files to be attached should be listed as the final lines of the composed message and prefixed by "Attachment:" (one line per file). For example:\r
+ \r
+ <HEADER>\r
+\r
+ <MESSAGE BODY>\r
+\r
+ Attachment: /home/bartosz/test.pdf\r
+ Attachment: /home/bartosz/test.txt\r
+\r
+I will be glad to hear your opinion about the design and implementation.\r
+\r
+Yours,\r
+\r
+Bartosz\r
+\r