From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0HicEN7Wa2M9DQAAbAwnHQ (envelope-from ) for ; Wed, 09 Nov 2022 17:35:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QHmLEN7Wa2MfdQAA9RJhRA (envelope-from ) for ; Wed, 09 Nov 2022 17:35:42 +0100 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 BB5A31593F for ; Wed, 9 Nov 2022 17:35:41 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id ED5E45F963; Wed, 9 Nov 2022 16:28:20 +0000 (UTC) X-Greylist: delayed 580 seconds by postgrey-1.36 at yantan; Wed, 09 Nov 2022 16:28:17 UTC Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by mail.notmuchmail.org (Postfix) with ESMTPS id 5618C5F35E for ; Wed, 9 Nov 2022 16:28:17 +0000 (UTC) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id BC530240104 for ; Wed, 9 Nov 2022 17:18:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1668010716; bh=yAsl4dBgdA2qbUUAeM9ypgRy7mEUtzasRjkmZLzRAT4=; h=From:To:Cc:Subject:Date:From; b=CqZArUocLU3nNUJCaWIZtOZD4qlAhrWF1Mav1Ywmy5PcqYNE4U3zqSzCo2Fr1hKfh cLPcReDoksuUI3kykifXE3xULGLcolUpUw/Sdx2VgS44Q/JGcnhjQ766F9YNhf3e3H bH1pzMPSe/zj4e+LHdnkzIMY3h6+ZAuSkKWKO1XwYyVMoj8QLXRUkkcT6ps+NZ/gIp F0e8eoy3jsR6L6We/QGvXadZTvUDYdzlkBvXJfQpyw4r9Eq9TaSw3MdAoGlcLYE1Dm YEMbeWZwuSvNXLGYJ6J++oRe6paRPN+EAC2eTfTe3c/3RhVP4wq8e40sKehI+c4y0M 2rcKpo7zcCfTg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N6qs80hWBz6tnY; Wed, 9 Nov 2022 17:18:33 +0100 (CET) From: Dan =?utf-8?B?xIxlcm3DoWs=?= To: Jose A Ortega Ruiz , David Bremner Subject: Re: notmuch.el and replying to multiple emails at once In-Reply-To: <87o7thgvxq.fsf@mail.jao.io> References: <87k046ofcp.fsf@rfc20.org> <92326b6c8463cf91cee04cfe49155273@condition-alpha.com> <87o7thgvxq.fsf@mail.jao.io> Date: Wed, 09 Nov 2022 16:18:33 +0000 Message-ID: <87leok5cfa.fsf@cgc-instruments.com> MIME-Version: 1.0 Message-ID-Hash: Q7DBN2H5OF6FLDHP2HEQNQDINXMGS2DY X-Message-ID-Hash: Q7DBN2H5OF6FLDHP2HEQNQDINXMGS2DY X-MailFrom: dan.cermak@posteo.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 CC: Notmuch Mail 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668011742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc: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:dkim-signature; bh=Su26HzC+grnFF962Ihiijwt89XR2wTn45So1upFJeLQ=; b=e0+dtzAuMdYn4XDIBMaZfWkx9ulILUA8Eb+VaDZuaRLRulD3IJTuuEvQBFtg9UiroCML2F Ht7APaal630K9hWke5Clkj+X4pLzOgD4dKwPvHlZ7nJpaOSPN8O0M86YO4ylG+oX0gr9dg iNhy80dKki+V9nWBlEJr+VMrY3xkKVthnH1CNbjdNe8rS6PiybbtQRMCwqKX2y30DeyYn7 bRBermjd3fDav80wSc/hIeSb1+2SVs0tARQWrSOgidA5hecWrk3Z8qEDQaQXzmCevuiQBW VZAUZetTS5XsDNx6cYYMDp90s9zcg3VPL0URPoWZmGu8fjJAqa7gyWaVYs7Qrg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668011742; a=rsa-sha256; cv=none; b=b4/5NfBdK2yFKHVCCX7N4FmREX7F9UnID9I9QBW9tKkI2LbRChuvSVSpIyYxG8o55Pt/2Z LXpjpj/SuD97wE0c7n65uvAZj9Ov9WgbbDk8yGj4TWjS8QZPF+O+kMjF1EfbhOQQ5yemwn NdRjtmqJX7y4JYluK77LK1r6Ugyk9M/L2vN7PO4c+rS/J8Pcw17Ibxb9vsJZFME3Z/VJPC fcEQSwIxptcay4qZdynh6EHhxeu9l2pYmqiJrPN8x17felA+JeAUEi1dh9z4eD5WTUb+KH ICU3lwjmodD2rfRxyBkfRd64m+bV1KBA80uSrveRsYW0SsDSv1RaiZ8IDUX+0Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=CqZArUoc; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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 X-Migadu-Spam-Score: 6.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=posteo.net header.s=2017 header.b=CqZArUoc; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=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 X-Migadu-Queue-Id: BB5A31593F X-Spam-Score: 6.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: LfnqurxJGXyv Jose A Ortega Ruiz writes: > On Tue, Nov 08 2022, Alexander Adolf wrote: > >> Matt Armstrong writes: >> >>> A feature I miss from Gnus is being able to reply to multiple emails at >>> once. Has anyone else found to be a missing feature? >> >> I have, and support your request. >> >> But not only to reply, but more generally to act on (tag, reply, >> forward) multiple emails. >> >> Of course I can select multiple _contiguous_ lines in a search result >> list, or tree view, and do something with these messages >> (`notmuch-search-tag` being an obvious example). But not when my >> selection is (or would be) non-contiguous. >> >>> I wonder if it would be easy to add to notmuch's Emacs MUA. >>> [...] >>> Problem is, I can't think of an unobtrusive way to add this to notmuch >>> without adding a lot of machinery. >> >> Perhaps the problem can be split into smaller pieces? >> >> I think one piece could be to enable the user to select multiple regions >> (think e.g. zones.el [1]), which could be a problem entirely separate >> from notmuch.el? >> >> [1] https://www.emacswiki.org/emacs/Zones >> >> The second piece could be to extend notmuch.el to make use of multiple >> regions, and implement more functions that act on such regions. Since >> there doesn't seem to be a "standard way" of doing non-contiguous >> regions in Emacs, one third-party "multi-region package" (e.g. zones.el) >> would need to be picked, and notmuch.el made to detect it's availability >> and make use of it. > > In notmuch-tree at least, this can be implemented, i think, in a much > simpler way. There (and i guess in any other search list), every line > in the buffer represents a message, and there is already a record (as > text properties) describing the message (its id, subject, tags, > filename, even indentation level in my outline extension). It'd be > pretty easy to add a new "marked" flag to those properties, that could > be added by a simple key shortcut in the same way Gnus does (adding on > top of that addition of contiguous messages in a region is again > trivial). It's also not much more complicated to add things like > "select all messages in this thread". With that selection mechanism in > place, one could at any moment ask for the list of marked messages and > their properties, which contain all the information needed to perform > operations such as replies or tagging (the latter being much easier to > implement; the part about multiple replies needs a bit more work, but > possibly one could re-use whatever functions gnus is already providing > to compose the reply buffer--notmuch already uses some of those > facilities). FTR, David Bremner suggested a workaround along those lines in id:87o7z31iwp.fsf@tethera.net (email from Wed, 08 Jun 2022 08:41:58 -0300)