Re: How to debug 'ignoring non-mail file' issues
authorDavid Bremner <david@tethera.net>
Sun, 31 Aug 2014 16:46:12 +0000 (09:46 +1700)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:04:21 +0000 (10:04 -0800)
fb/bd9c905dae16f47b5489d0a430449e53af4bb8 [new file with mode: 0644]

diff --git a/fb/bd9c905dae16f47b5489d0a430449e53af4bb8 b/fb/bd9c905dae16f47b5489d0a430449e53af4bb8
new file mode 100644 (file)
index 0000000..7ead51d
--- /dev/null
@@ -0,0 +1,71 @@
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 195C6431FBD\r
+       for <notmuch@notmuchmail.org>; Sun, 31 Aug 2014 09:46:31 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id AZhrhNxy8pZ4 for <notmuch@notmuchmail.org>;\r
+       Sun, 31 Aug 2014 09:46:21 -0700 (PDT)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+       (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 4F82E431FAE\r
+       for <notmuch@notmuchmail.org>; Sun, 31 Aug 2014 09:46:21 -0700 (PDT)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+       (envelope-from <david@tethera.net>)\r
+       id 1XO8Ge-0001Vc-Pu; Sun, 31 Aug 2014 13:46:16 -0300\r
+Received: (nullmailer pid 19200 invoked by uid 1000); Sun, 31 Aug 2014\r
+       16:46:12 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: Perttu Luukko <perttu.luukko@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: How to debug 'ignoring non-mail file' issues\r
+In-Reply-To: <20140831074059.GA13399@rakuuna.dhcp.inet.fi>\r
+References: <20140831074059.GA13399@rakuuna.dhcp.inet.fi>\r
+User-Agent: Notmuch/0.18.1+72~g028c560 (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sun, 31 Aug 2014 09:46:12 -0700\r
+Message-ID: <87oav0sj3f.fsf@maritornes.cs.unb.ca>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 31 Aug 2014 16:46:31 -0000\r
+\r
+Perttu Luukko <perttu.luukko@iki.fi> writes:\r
+\r
+\r
+> I understand that the list of non-mail files is stored in the notmuch\r
+> database and the files are completely ignored from there on. This\r
+> actually makes it harder to debug these kind of issues since the list of\r
+> ignored mails is only visible on the first invocation of 'notmuch new',\r
+> unless the files are moved around. Is there some way to extract the list\r
+> of ignored files from the database for inspection? Maybe 'notmuch new'\r
+> could have some kind of --unignore-non-mail switch that would reconsider\r
+> previously ignored files.\r
+\r
+I _think_ it should suffice to do something like\r
+\r
+   find Maildir -type d -exec touch {} \;\r
+\r
+to force a rescan\r
+\r
+d\r
+\r