[PATCH v3 0/2] notmuch hooks
authorJani Nikula <jani@nikula.org>
Tue, 6 Dec 2011 13:22:36 +0000 (15:22 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:40:37 +0000 (09:40 -0800)
33/3aa9647b55712e752255727a2d757c45fcea5f [new file with mode: 0644]

diff --git a/33/3aa9647b55712e752255727a2d757c45fcea5f b/33/3aa9647b55712e752255727a2d757c45fcea5f
new file mode 100644 (file)
index 0000000..8530e4d
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <jani@nikula.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 B9F77429E27\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 05:22:47 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 aQcHjigKGSyJ for <notmuch@notmuchmail.org>;\r
+       Tue,  6 Dec 2011 05:22:47 -0800 (PST)\r
+Received: from mail-bw0-f53.google.com (mail-bw0-f53.google.com\r
+       [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0FBF5429E26\r
+       for <notmuch@notmuchmail.org>; Tue,  6 Dec 2011 05:22:46 -0800 (PST)\r
+Received: by bkbzu5 with SMTP id zu5so7357457bkb.26\r
+       for <notmuch@notmuchmail.org>; Tue, 06 Dec 2011 05:22:42 -0800 (PST)\r
+Received: by 10.180.88.66 with SMTP id be2mr17073309wib.54.1323177762658;\r
+       Tue, 06 Dec 2011 05:22:42 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi.\r
+       [80.220.92.23]) by mx.google.com with ESMTPS id\r
+       fw16sm33516851wbb.13.2011.12.06.05.22.40\r
+       (version=SSLv3 cipher=OTHER); Tue, 06 Dec 2011 05:22:41 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 0/2] notmuch hooks\r
+Date: Tue,  6 Dec 2011 15:22:36 +0200\r
+Message-Id: <cover.1323176771.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.5.4\r
+In-Reply-To:\r
+ <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org>\r
+References:\r
+ <7fbe6befcf31881a9bca672f55b93501249a220c.1322859389.git.jani@nikula.org>\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: Tue, 06 Dec 2011 13:22:47 -0000\r
+\r
+Hi all, this is v3 of the notmuch hooks patches. I think this is nearing\r
+completion apart from final review and, most notably, tests.\r
+\r
+Changes in v3:\r
+\r
+* Incorporate Austin's review comments (id:"20111204034210.GA16405@mit.edu" and\r
+  id:"20111204040047.GB16405@mit.edu"), the biggest change being the switch from\r
+  system() to fork()/execl().\r
+\r
+* Rename notmuch-hook.c to hooks.c (reserving notmuch- prefixed files to notmuch\r
+  commands).\r
+\r
+* Add "notmuch help" documentation.\r
+\r
+* Add NEWS.\r
+\r
+I've been using this for some days now, and (subjective as it is) I have to say\r
+I like offlineimap being run from notmuch new "pre-new" hook much better than\r
+vice versa. Even more so for "post-new" tagging scripts.\r
+\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (2):\r
+  cli: introduce the concept of user defined hooks\r
+  cli: add support for pre and post notmuch new hooks\r
+\r
+ Makefile.local   |    1 +\r
+ NEWS             |   10 ++++++\r
+ hooks.c          |   93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++\r
+ notmuch-client.h |    3 ++\r
+ notmuch-new.c    |   12 +++++++\r
+ notmuch.1        |   50 ++++++++++++++++++++++++++++-\r
+ notmuch.c        |   39 ++++++++++++++++++++++-\r
+ 7 files changed, 206 insertions(+), 2 deletions(-)\r
+ create mode 100644 hooks.c\r
+\r
+-- \r
+1.7.5.4\r
+\r