unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] Stay out of tmp to respect the Maildir spec.
@ 2009-11-23 20:57 Jed Brown
  2009-11-24  2:33 ` Carl Worth
  0 siblings, 1 reply; 2+ messages in thread
From: Jed Brown @ 2009-11-23 20:57 UTC (permalink / raw)
  To: notmuch

---
 notmuch-new.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/notmuch-new.c b/notmuch-new.c
index 8172b49..e32b92a 100644
--- a/notmuch-new.c
+++ b/notmuch-new.c
@@ -159,6 +159,7 @@ add_files_recursive (notmuch_database_t *notmuch,
 	 * user specify files to be ignored. */
 	if (strcmp (entry->d_name, ".") == 0 ||
 	    strcmp (entry->d_name, "..") == 0 ||
+	    strcmp (entry->d_name, "tmp") == 0 ||
 	    strcmp (entry->d_name, ".notmuch") ==0)
 	{
 	    continue;
-- 
1.6.5.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Stay out of tmp to respect the Maildir spec.
  2009-11-23 20:57 [PATCH] Stay out of tmp to respect the Maildir spec Jed Brown
@ 2009-11-24  2:33 ` Carl Worth
  0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2009-11-24  2:33 UTC (permalink / raw)
  To: Jed Brown, notmuch

On Mon, 23 Nov 2009 21:57:33 +0100, Jed Brown <jed@59A2.org> wrote:
>  	if (strcmp (entry->d_name, ".") == 0 ||
>  	    strcmp (entry->d_name, "..") == 0 ||
> +	    strcmp (entry->d_name, "tmp") == 0 ||
>  	    strcmp (entry->d_name, ".notmuch") ==0)

Thanks, Jed!

I've pushed this now.

And sorry about any "file not found" errors anybody is stuck with
now. We'll need to add support for cleaning those up soon, (which is the
same as supporting deleted mail).

-Carl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-24  2:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 20:57 [PATCH] Stay out of tmp to respect the Maildir spec Jed Brown
2009-11-24  2:33 ` Carl Worth

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).