From: Alex Riesen Date: Mon, 05 Nov 2007 22:52:58 GMT Subject: Re: [PATCH] git-mailsplit: with maildirs try to process new/ if cur/ is empty Message-ID: <20071105225258.GC4208@steel.home> In-Reply-To: <20071105124920.17726.qmail@746e9cce42b49f.315fe32.mid.smarden.org> Gerrit Pape, Mon, Nov 05, 2007 13:49:20 +0100: > + for (i = 0; i < 2; ++i) { > + snprintf(name, sizeof(name), "%s/%s", path, sub[i]); > + if ((dir = opendir(name)) == NULL) { > + error("cannot opendir %s (%s)", name, strerror(errno)); > + return -1; > + } Why is missing "cur" (or "new", for that matter) a fatal error? Why is it error at all? How about just ignoring the fact?