Re: [PATCH] notmuch new: add a --in-directory option

Subject: Re: [PATCH] notmuch new: add a --in-directory option

Date: Thu, 6 Mar 2014 14:16:21 -0700

To: Austin Clements

Cc: Notmuch Mail

From: Adam Wolfe Gordon


On Thu, Mar 6, 2014 at 2:06 PM, Austin Clements <amdragon@mit.edu> 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

Thread: