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 1D6EC431FBC for ; Wed, 1 Aug 2012 12:28:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 F+3fk-70rifR for ; Wed, 1 Aug 2012 12:28:28 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 449D0431FAE for ; Wed, 1 Aug 2012 12:28:28 -0700 (PDT) Received: by lbbgk8 with SMTP id gk8so599201lbb.26 for ; Wed, 01 Aug 2012 12:28:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:x-gm-message-state; bh=lrruiLSiq7gsQIbyr/tpU/8iXkcf6Qt+c5MfiitwaKA=; b=VNmFs054GgQ+EGMWm1s8+7zAwLxaoroG5cWb2gt6AioGuiad2ocnaC/kTh5LZRucBZ JF+iwRmXXCjphVNjjqoRaGLQlP6xMOucrC/0Efp8zgNQ78LvPs/nSX94zLcqVUBZikpf ICJwX0PwPKWKiyKF9jhxV1qK2UcnRuBNj67nIf+TC132ObO7Yodf+SJiIDSX07BQMwnR lhOXJB8qDAFYD3oQjPSjAfymr9LMyjNsl3lrMs+e/hrH0BBwWtNMqK2+81d5s/XGWFAS XUFnRWoSsFXTCfub/DLvx02fbLtZ2qrMCCH4uCdQF6+xbI/3bmQg2Ouw7Xt5LAzCf1ff pF8w== Received: by 10.112.11.38 with SMTP id n6mr8296820lbb.82.1343849306601; Wed, 01 Aug 2012 12:28:26 -0700 (PDT) Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. [80.223.81.27]) by mx.google.com with ESMTPS id hg4sm3715193lab.11.2012.08.01.12.28.24 (version=SSLv3 cipher=OTHER); Wed, 01 Aug 2012 12:28:25 -0700 (PDT) From: Jani Nikula To: "Kevin J. McCarthy" Subject: Re: notmuch-mutt: support for duplicate message removal In-Reply-To: <20120801175426.GA14470@zaogao.lan> References: <1343808582-9519-1-git-send-email-zack@upsilon.cc> <87pq7aam8n.fsf@nikula.org> <20120801175426.GA14470@zaogao.lan> User-Agent: Notmuch/0.13.2+104~gaee3080 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Wed, 01 Aug 2012 22:28:23 +0300 Message-ID: <87a9yev2co.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQnnOXS5TdkzxPrz6pKF7FwxFXsNTI8znZHY92KG4UddTBDF23coryEPowYml/KWyt7MgwFB 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 19:28:30 -0000 On Wed, 01 Aug 2012, "Kevin J. McCarthy" wrote: > 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. Sounds reasonable, especially considering [1]. I have no comments on the patches; I'm not a notmuch-mutt (or perl) user. >> 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. Apart from [1], the hardest part will be bikeshedding about the option name. ;) BR, Jani. [1] id:"87d33av2sg.fsf@nikula.org"