From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6603C4196F2 for ; Mon, 12 Apr 2010 06:45:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] autolearn=ham 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 KAyRuAZjLnSf for ; Mon, 12 Apr 2010 06:45:32 -0700 (PDT) Received: from julia.quadhome.com (quadhome.xen.prgmr.com [68.68.99.250]) by olra.theworths.org (Postfix) with ESMTP id B3DB2431FC1 for ; Mon, 12 Apr 2010 06:45:32 -0700 (PDT) Received: from elise.quadhome.com (216.214.148.190.dsl.intelnet.net.gt [190.148.214.216]) by julia.quadhome.com (Postfix) with ESMTPSA id A75D65FBC2 for ; Mon, 12 Apr 2010 13:45:31 +0000 (UTC) Content-Type: text/plain; charset=utf8 Subject: Re: [PATCH] notmuch new --new-tags=tags... From: Scott Robinson To: notmuch In-reply-to: <4BC31133.6000105@dbservice.com> References: <871velp0be.fsf@SSpaeth.de> <87y6gseval.fsf@servo.finestructure.net> <4BC31133.6000105@dbservice.com> Date: Mon, 12 Apr 2010 07:45:27 -0600 Message-Id: <1271079754-sup-3860@elise> User-Agent: Sup/0.10.2 Content-Transfer-Encoding: 8bit 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: Mon, 12 Apr 2010 13:45:34 -0000 Excerpts from Tomas Carnecky's message of Mon Apr 12 06:25:23 -0600 2010: > I have a patch which adds support for hooks which are run when tags are > added, removed or new messages added to notmuch. But perhaps the > fork/exec overhead of running the hooks would slow the processing down > too much. Rather than a fork/exec for every message, why not have a persistent subprocess that receives message IDs (+ filenames?) and can then do arbitrary work and return back the proper tags?