From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0E7E06DE0F72 for ; Fri, 19 Apr 2019 16:46:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.699 X-Spam-Level: X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[AWL=-0.198, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xGFRCKgwjZFl for ; Fri, 19 Apr 2019 16:46:35 -0700 (PDT) Received: from ra.horus-it.com (ra.horus-it.com [94.130.34.199]) by arlo.cworth.org (Postfix) with ESMTPS id 2412E6DE0ED0 for ; Fri, 19 Apr 2019 16:46:35 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ra.horus-it.com (Postfix) with ESMTP id DF36A48C1480 for ; Sat, 20 Apr 2019 01:46:34 +0200 (CEST) X-Virus-Scanned: at horus-it.com From: Ralph Seichter DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monksofcool.net; s=k1; t=1555717590; bh=HyYcX/nVCpe+Rlz6IDPdlXkcYdFF2tLxfJPpPzlk8vg=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: Content-Type; b=E/LPiKm6hfQGHPe7sOEDd+cI1c6TMIkuGXGcnKilr43OwUs82Ttu5qTqj5mNspyij iVEI6nsjX5zRyW10NZ8LycES+xb7bBQZEgYLQMwzZVf8ewLnTSwv1/MTgoKimFwBKB S4raUPPaII6tAX5c7lLXp9r5ArsyVViMeA7rmrB2GnI59xRiLNgBkwP5TQQncMm+67 l7ZTY9RQxnFodT93nBpKxTQ6HBjvD4LQgr+pt+SYWLEI9Lh7ysw2jE9D5eI4iAPSA0 U0SW/S/zW88w7EKE//X9iOOPaPLkxCRJSPaXFSFzeKLtVAauEHG7m3kQQu41TeXLD6 cQddaIjnRDvsg== To: notmuch@notmuchmail.org Subject: Re: Unexpected output of "notmuch new --quiet" In-Reply-To: <87ftqex9tb.fsf@fifthhorseman.net> References: <87imvc5pvg.fsf@ra.horus-it.com> <87bm14gqib.fsf@tethera.net> <87y3471ml9.fsf@ra.horus-it.com> <87d0ljfnlz.fsf@tethera.net> <87ftqfctf0.fsf@ra.horus-it.com> <87zhomxyrg.fsf@fifthhorseman.net> <87a7gmdrqo.fsf@ra.horus-it.com> <87ftqex9tb.fsf@fifthhorseman.net> Mail-Followup-To: notmuch@notmuchmail.org Date: Sat, 20 Apr 2019 01:46:30 +0200 Message-ID: <87v9z9h82x.fsf@ra.horus-it.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Fri, 19 Apr 2019 23:46:36 -0000 * Daniel Kahn Gillmor: > as far as maildir goes, i think notmuch probably *shouldn't* be > looking at stuff in =E2=80=A6/tmp/ -- right? You're right, I don't see why Notmuch would peek into "tmp". > I'd be sad if those files went away, but perhaps you're right that > we should only be looking at are things within any cur/ and new/ > subfolders within the message archive. I don't mean to reduce Notmuch usability to get rid of a few unwanted messages on stderr. What I suggest is to consider all files outside of "cur" and "new" to be legitimate non-mail files by default. If Notmuch chooses to inspect them and detects valid messages, then fine, but the default assumption should be non-mail. Think about how the files get there. You manually dumping some *.eml files in a directory is not exactly typical, IMO. ;-) I expect that in the majority of cases there is some MTA or fetchmail-like process storing mail files in a Maildir structure (flat, tree, or mixed like Dovecot does). I think that altering Notmuch's expectations about files outside of well-known subdirectories should be possible without sacrificing its flexibility. -Ralph