From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 93C2B431FAF for ; Wed, 1 Aug 2012 10:54:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 1R377PjVsf6o for ; Wed, 1 Aug 2012 10:54:30 -0700 (PDT) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 117E9431FAE for ; Wed, 1 Aug 2012 10:54:30 -0700 (PDT) Received: from compute2.internal (compute2.nyi.mail.srv.osa [10.202.2.42]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 474AB20268; Wed, 1 Aug 2012 13:54:29 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 01 Aug 2012 13:54:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=8t8.us; h=date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=mesmtp; bh=VasT2jirgyxU6jX4i01cbM1d t0o=; b=RkxS1WcP0mZoN7vy8pIG+4XjeUXZ2JcLRPdizPOguJxJErkrU5fmZZEo Ry1FcvET3KfMh9N73tixXC9OobVRNWgqXs4mjkg5ATp5z0vBtgA5a3X1Uoz/LVao DN7ltpoa8MLV0vn3p4mDGU4bZyt2yVUrZkXRyiku725uRr8cpaw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:in-reply-to; s=smtpout; bh=VasT2jirgyxU6jX4i01cbM1dt0o=; b=Y0q0zZqs2uUQQrlsQLc6EbvgBfDm K7YKCfmIZ95WH6sOh0f0k2t0NT052mVhk17TK9UJVXKgUzvSoZdE6qwbJXX2im67 UDhHZ1fRj2PE2F5f4lvOsQZUuTChp93Cu4yBDRUKd6I2GPKAFA2htovsurwnLLc6 oPjxnQoNuLeeoP8= X-Sasl-enc: 6XcJaIzcpF5pVi0DPiLl7yDm2Q+0rDa4eyPOWFItdbZh 1343843668 Received: from localhost (unknown [71.220.203.171]) by mail.messagingengine.com (Postfix) with ESMTPA id A9E378E0105; Wed, 1 Aug 2012 13:54:28 -0400 (EDT) Date: Wed, 1 Aug 2012 10:54:26 -0700 From: "Kevin J. McCarthy" To: Jani Nikula Subject: Re: notmuch-mutt: support for duplicate message removal Message-ID: <20120801175426.GA14470@zaogao.lan> References: <1343808582-9519-1-git-send-email-zack@upsilon.cc> <87pq7aam8n.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87pq7aam8n.fsf@nikula.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Mailman-Approved-At: Wed, 01 Aug 2012 13:02:31 -0700 Cc: notmuch@notmuchmail.org, Stefano Zacchiroli 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: Wed, 01 Aug 2012 17:54:31 -0000 Jani Nikula wrote: > I'm guessing you get the duplicates because you have dupes in the mail > store, and 'notmuch search --output=files' prints all the filenames > associated with each matching message, rather than any other reason. The > presented approach will only remove identical files, and will leave > behind files that are basically the same message, but have differing > headers, e.g. due to being received through different channels. Is this > what you want? This method was something we felt comfortable enabling by default. Stefano and I discussed adding a (by default off) option to remove duplicates by message-id, but wanted to get this patch merged first and then think about it. > Perhaps an option to 'notmuch search --output=files' to print only one > filename (even if there are many) per message would be interesting. This would be useful for the second approach. If it's easy to do, that would be great. -Kevin