--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 0E453431FBF\r
+ for <notmuch@notmuchmail.org>; Fri, 9 May 2014 02:58:23 -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 tests=[none]\r
+ 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 yMPUGkfYLMYS for <notmuch@notmuchmail.org>;\r
+ Fri, 9 May 2014 02:58:15 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by olra.theworths.org (Postfix) with ESMTP id D1F86431FAE\r
+ for <notmuch@notmuchmail.org>; Fri, 9 May 2014 02:58:14 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 04CCE1000E5;\r
+ Fri, 9 May 2014 12:58:09 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Istvan Marko <notmuch@kismala.com>, sfischme@uwaterloo.ca,\r
+ notmuch@notmuchmail.org\r
+Subject: Re: Log of tagging actions\r
+In-Reply-To: <m3fvkj1j88.fsf@zsu.kismala.com>\r
+References: <871tw5n0ml.fsf@uwaterloo.ca> <m3fvkj1j88.fsf@zsu.kismala.com>\r
+User-Agent: Notmuch/0.18+11~gbc95cc5 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Fri, 09 May 2014 12:58:08 +0300\r
+Message-ID: <m2ppjnw9xr.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Fri, 09 May 2014 09:58:23 -0000\r
+\r
+On Fri, May 09 2014, Istvan Marko <notmuch@kismala.com> wrote:\r
+\r
+> Sebastian Fischmeister <sfischme@uwaterloo.ca> writes:\r
+>\r
+>> Is there a possibility to log all tagging actions done in notmuch?\r
+>\r
+> I use a shell wrapper around notmuch to get this:\r
+>\r
+> #! /bin/sh\r
+> echo "notmuch $@" >>$HOME/logs/notmuch.log\r
+> /usr/local/bin/notmuch "$@"\r
+\r
+You could make the last line 'exec /usr/local/bin/notmuch "$@"' :D\r
+(and if you use debian, #!/bin/dash...)\r
+\r
+I use a C wrapper to do the same (with date prefixes like \r
+2014-05-09 (Fri) 12:47:19) -- I originally did it to do argument\r
+conversions around .. to have date-based searches before those came\r
+to notmuch (and I am still using it, as I don't have to type date: prefix)\r
+\r
+> Would be nice to be able to log all operations done via libnotmuch too\r
+> though.\r
+\r
+IIRC someone suggested/asked whether we'd get logs where all Message-ID:s\r
+affected were logged. That could be useful (and produce lot of log when\r
+one does notmuch tag +foobar '*')\r
+\r
+That means to do logging with this granularity may prove problematic...\r
+\r
+> -- \r
+> Istvan\r
+\r
+Tomi\r