From: Mark Walters Date: Sun, 23 Feb 2014 01:08:10 +0000 (+0000) Subject: Weird behaviour in notmuch new X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0ef6721294a2803cddf799cc49dbb3416f70e7e0;p=notmuch-archives.git Weird behaviour in notmuch new --- diff --git a/65/a316875b0e1de44de4110f6386fbef191c8a56 b/65/a316875b0e1de44de4110f6386fbef191c8a56 new file mode 100644 index 000000000..86cc7242e --- /dev/null +++ b/65/a316875b0e1de44de4110f6386fbef191c8a56 @@ -0,0 +1,97 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 00266431FCF + for ; Sat, 22 Feb 2014 17:08:20 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id 982dqIjLjbDg for ; + Sat, 22 Feb 2014 17:08:15 -0800 (PST) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id F1E77431FBF + for ; Sat, 22 Feb 2014 17:08:14 -0800 (PST) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1WHNYC-0005rC-8V; Sun, 23 Feb 2014 01:08:12 +0000 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1WHNYC-000123-15; Sun, 23 Feb 2014 01:08:12 +0000 +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: Weird behaviour in notmuch new +User-Agent: Notmuch/0.15.2+484~gfb59956 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sun, 23 Feb 2014 01:08:10 +0000 +Message-ID: <87siray6th.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-Geographic: According to ripencc, + this message was delivered by a machine in Britain (UK) (GB). +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: e31def657201e6b3eb79ed52beb6d56b (of first 20000 bytes) +X-SpamAssassin-Score: 0.0 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored 0.0 points. Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * 0.0 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Sun, 23 Feb 2014 01:08:21 -0000 + + +Hi + +I was experimenting with letting notmuch new take an argument to tell it +to scan only a particular directory (and sub-directories) for new +messages. I came across the following strange behaviour which is also +present in master (with a fresh database) + +I have a bunch of maildirs in /home/mail: so folders .mail.foo/ +.mail.bar/ each of which has cur/new/tmp and all the messages are in +cur. + +If I do mv .mail.foo .mail.bar/ and run notmuch new I get the expected +lots of renames (900 or so in the case I was trying). But if I then do +mv .mail.bar/.mail.foo . and run notmuch new almost all the messages get +removed (but 30 renames do get detected). If I then do touch .mail.foo/* +the messages get found again + +I am guessing the 30 renames might be because those 30 have duplicates +somewhere else. + +But the other behaviour has me puzzled. + +Best wishes + +Mark + + +