Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0E453431FBF for ; Fri, 9 May 2014 02:58:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yMPUGkfYLMYS for ; Fri, 9 May 2014 02:58:15 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by olra.theworths.org (Postfix) with ESMTP id D1F86431FAE for ; Fri, 9 May 2014 02:58:14 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 04CCE1000E5; Fri, 9 May 2014 12:58:09 +0300 (EEST) From: Tomi Ollila To: Istvan Marko , sfischme@uwaterloo.ca, notmuch@notmuchmail.org Subject: Re: Log of tagging actions In-Reply-To: References: <871tw5n0ml.fsf@uwaterloo.ca> User-Agent: Notmuch/0.18+11~gbc95cc5 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 May 2014 09:58:23 -0000 On Fri, May 09 2014, Istvan Marko wrote: > Sebastian Fischmeister writes: > >> Is there a possibility to log all tagging actions done in notmuch? > > I use a shell wrapper around notmuch to get this: > > #! /bin/sh > echo "notmuch $@" >>$HOME/logs/notmuch.log > /usr/local/bin/notmuch "$@" You could make the last line 'exec /usr/local/bin/notmuch "$@"' :D (and if you use debian, #!/bin/dash...) I use a C wrapper to do the same (with date prefixes like 2014-05-09 (Fri) 12:47:19) -- I originally did it to do argument conversions around .. to have date-based searches before those came to notmuch (and I am still using it, as I don't have to type date: prefix) > Would be nice to be able to log all operations done via libnotmuch too > though. IIRC someone suggested/asked whether we'd get logs where all Message-ID:s affected were logged. That could be useful (and produce lot of log when one does notmuch tag +foobar '*') That means to do logging with this granularity may prove problematic... > -- > Istvan Tomi