From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kPdOK4cSGGVqVAAA9RJhRA:P1 (envelope-from ) for ; Sat, 30 Sep 2023 14:20:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kPdOK4cSGGVqVAAA9RJhRA (envelope-from ) for ; Sat, 30 Sep 2023 14:20:23 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6C9A250FB1 for ; Sat, 30 Sep 2023 14:20:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696076423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=gtjPxMYDGrGhTFNgTmWteQGE+MehnoihjMaz89VC0yI=; b=OEegKXAO6CLcp1/qN5FXKeJ8o+Kwqz/46Vd+65y0KPpLhxtKUP9LWXgqz8IsLxOOeVTjNB dM0Vbg+RoaY4M1b/D5U60adR+kVb+ddfFSY3AO8NLb6uvZuSarLqbybTD3m7fjIYWcwOeW VgnGHV+a95FvUWHLPpxhm9sqFHmT+WDST7WVVmEOI/l4pvSw+ChEFZzc27paekx6Qyp1gS I7nsSGLAx4kjTC2xXsU7iz3t7WbLl7TGcMHmT9ImLj2Bc2un+SjE7ECle7STNidbc4alP7 fkGXDUCCBSEBV3R1lIseYpVsaBI3sr7gko/i9+FQPnK4yhebFt8YsMglZC5idw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696076423; a=rsa-sha256; cv=none; b=a9j0c9epaIuVXOly68hSVCvBvE538KoqzPwAz7Ka6cXxIvQQa9Qq0bEZHYYGkO1xeYYLrc E/JRTE6ffdGEOjQDRKiI1ZPELtK5kVo/FulDl2z3ZK9hMc1rOFFemRcfANI08J8+NCWbkE miir2MUgHYYj5ppCQFJ2KVJkzN595UEbsYXS09VHWoYpDaOrUe/SdkT1+oZhMPZoseenAp yFnkMwhvrplf7lgBqG6EcJtRfdK7tRxtsvANOP25zx+JKKKazmFoAfsZTK7kTySSUtHEcy Zy4gr67ZAa4feaa5gzQQam3+Lz4VW1ztkZWPyao0YCBxKAMuwAtbnTQjKTw9Jg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org; dmarc=none Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A832D60A85; Sat, 30 Sep 2023 12:20:18 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [192.99.9.157]) by mail.notmuchmail.org (Postfix) with ESMTPS id 0A46160A7F for ; Sat, 30 Sep 2023 12:20:16 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-210-253.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.210.253]) by phubs.tethera.net (Postfix) with ESMTPS id 79075180066; Sat, 30 Sep 2023 09:20:14 -0300 (ADT) Received: (nullmailer pid 1575376 invoked by uid 1000); Sat, 30 Sep 2023 12:20:13 -0000 From: David Bremner To: Jesse Rosenthal , notmuch@notmuchmail.org Subject: Re: Change duplicate priority? In-Reply-To: <87h6neie25.fsf@jhu.edu> References: <87h6neie25.fsf@jhu.edu> Date: Sat, 30 Sep 2023 09:20:13 -0300 Message-ID: <874jjbdf9e.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TSA6A775OOSUUESUUGDVETILLWDSNU3Y X-Message-ID-Hash: TSA6A775OOSUUESUUGDVETILLWDSNU3Y X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: 0.05 X-Spam-Score: 0.05 X-Migadu-Queue-Id: 6C9A250FB1 X-TUID: /x3LQmtdNJzN Jesse Rosenthal writes: > > Depending on how long the scan takes, getmail might pull down both of > these emails. The second duplicate is available through the emacs change > index command, but the attachment is not available (since it tries to > pull the first attachment from the first version, which is just an html > part). Hmm. That seems like a bug, the attachement should be drawn from the "current" version. I will see if I can replicate this with a simple test case. > I can usually solve this by deleting the first one by hand, something > like: > > notmuch search --output=files id: | head -1 | xargs rm > > This has a couple of problems, though. (1) It's relying on the Maildir file > name being a time stamp to get rid of the earlier file, and (2) it > doesn't actually reindex the file when I run notmuch new, just treating > it as a rename, so I still get the search results for the older deleted > file. What if you use notmuch-reindex instead of notmuch-new after the deletion?