From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EI/6CzDDuGDbwAAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 13:55:28 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WG1vBzDDuGBjXwAAB5/wlQ (envelope-from ) for ; Thu, 03 Jun 2021 11:55:28 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 D660D25B5C for ; Thu, 3 Jun 2021 13:55:27 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0E6642B241; Thu, 3 Jun 2021 07:55:15 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 135FE2B22F for ; Thu, 3 Jun 2021 07:55:08 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 3577D5FD25; Thu, 3 Jun 2021 07:55:06 -0400 (EDT) Received: (nullmailer pid 987718 invoked by uid 1000); Thu, 03 Jun 2021 11:55:04 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: Handle long threads in unthreaded-view Date: Thu, 3 Jun 2021 08:54:57 -0300 Message-Id: <20210603115500.987504-1-david@tethera.net> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Message-ID-Hash: FBWRVPLVPB46QXJVGASLEV4DZP4TN7SI X-Message-ID-Hash: FBWRVPLVPB46QXJVGASLEV4DZP4TN7SI X-MailFrom: bremner@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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622721328; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=hscL4eWaXDKuh3/O6k8phnOHmrcxZuV6kyqcnXsNJ3M=; b=NxWzH9GAP96gTsGxz/6sCBzBZW13p3nXmBUcv1WtoBu76S8VT/8gdwMq/PoRHKeClYhbrI gSA38UPs3W9FKb/rFKSBfeADU3fshXbfkoSweRG2p4xTmz0ihvPZYOrKqEj/AWN0+n+A5Q 15YffTttYu1kwtNLS3NLDNQri2y2a2ucBHAkJxPRNdFZpgYNS5zuyLCES5jkw8UBrxve3P TA7YYPXy3HKj48dK2B6S4AnK3EFBukCOvVSE8wxwQaVyPwqBFX2hZ7+OtW7RaUB5FgIUiu soXt7LebrFR/IGiG66fe634vrtxTpimRq1X73abuAawgyupHzojDOrtIL7B3DQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622721328; a=rsa-sha256; cv=none; b=LS89+K75IEZvXeI3FVgWVoaymAaWayB7bFCpW63jy30FIEo/hN+VQTkPiSfcCAe5afxX5N lcW3qCDeH1H5zuDQzII6/ToyC5ogKw8kE3VAz1gKS/KgyYtK9FqMDTaVZ9cP+zRlIX2CXY 7Grbd513JSijlWY0BW6JPDyavptxwQvSuFydkFO6dgdsCNKHFaASF8HVD3qxDpcHSWvArr zQUNnF1tkagBWOc43Gn2XyA1FfxWs3V2Qbg9UVeJsZehJzCR3ALLbuJDd26nscQKHFD9HQ WW2kqYN1EI9PDDEk9peYy98GLQmkZ1IKWVHemouECbv6B+NQFi395MC2yzxPyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: D660D25B5C X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5qlKLkB/4gbF This obsolete the series starting at id:20210602233108.855449-1-david@tethera.net Alan reported that this fix worked for him in tree-mode, which is great. In my tests, there is actually an uncaught exception that makes me think the tree / subject window is not quite working in tree-mode, but according to my tests (included in the new series), it _is_ working in unthreaded view. The other change since the initial series is that both invocations of notmuch-show are now wrapped in a let-binding of notmuch-show-single-message. >From an API point of view, the thing we have to decide is if we are going to support notmuch-show-single-message for the forseeable future, or if we should namespace it to indicate it is internal.