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 798BF431FAF for ; Thu, 6 Mar 2014 13:16:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 rcxmK4ky9ZuU for ; Thu, 6 Mar 2014 13:16:24 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 22B04431FAE for ; Thu, 6 Mar 2014 13:16:24 -0800 (PST) Received: by mail-we0-f181.google.com with SMTP id q58so3853627wes.40 for ; Thu, 06 Mar 2014 13:16:21 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=FWQEY+EP1j19el9xSFs1TlTAMHSslkUpsGh9yZQ7AxA=; b=W8qWyMRM2ialI0KOIfgF4P/IYL4a/+Cl/yk36B69sZ7rwGAKbcmg8fOT9x8pJtnpyR MnZgr527XdqecXafd3XqY0IOWSdNpP9L8r670lkSKrfChvFck4t81cT09MvBETz+WTLk oEhoCCZqBH6rtuYU/UP2VEXH52m+SZtp/CkQ6JXu32qk7BVTxILrCpaG3HWQ8Q7KLjEm Nnr5UKxlyLokfVuDYiM1LI9Mwk7aC1bhOhnJjSWyc8WbbdMwnEg6GJtrMDP6xFYZcEmz ZAHsNYvcLWS2PUVvp0ciQgqt0yBHe1i1J/bnndxs6H8fznd6hNO8OilOsLw5bNUU9rur tF0w== X-Gm-Message-State: ALoCoQkDTwFMAbVLFUaaZAzu9YIXKZw/svgIroZ4fAbVKMi6sc/uZtx6beN7kF1U8Lho0R0jAyio MIME-Version: 1.0 X-Received: by 10.194.234.106 with SMTP id ud10mr13942322wjc.0.1394140581636; Thu, 06 Mar 2014 13:16:21 -0800 (PST) Sender: awg@xvx.ca Received: by 10.194.186.177 with HTTP; Thu, 6 Mar 2014 13:16:21 -0800 (PST) X-Originating-IP: [68.150.39.45] In-Reply-To: <20140306210622.GI4709@mit.edu> References: <1394139507-15324-1-git-send-email-markwalters1009@gmail.com> <20140306210622.GI4709@mit.edu> Date: Thu, 6 Mar 2014 14:16:21 -0700 X-Google-Sender-Auth: WooC6pjmvqqJVdqEia4Vt2ScUxo Message-ID: Subject: Re: [PATCH] notmuch new: add a --in-directory option From: Adam Wolfe Gordon To: Austin Clements Content-Type: text/plain; charset=ISO-8859-1 Cc: Notmuch Mail 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: Thu, 06 Mar 2014 21:16:31 -0000 On Thu, Mar 6, 2014 at 2:06 PM, Austin Clements wrote: > That aside, I'm curious what the use case for this is. My usecase for this is the same as for the similar patch I worked on previously (id:1373762746-22308-1-git-send-email-awg+notmuch@xvx.ca): I use inotify to watch for new messages in my maildir. When I receive a new message, I run notmuch new (after waiting a couple of seconds since messages sometimes arrive in batches). But since I already know exactly what changed, there's no need for notmuch new to scan the whole directory tree. I'm not sure whether this patch lets me specify a file, or only a directory: the former would be preferable for my usecase, but either way it's probably an enhancement for me. -- Adam