Authentication-Results: mail-b.sr.ht; dkim=pass header.d=falsifian.org header.i=@falsifian.org Received: from exoco.falsifian.org (exoco.falsifian.org [168.235.109.198]) by mail-b.sr.ht (Postfix) with ESMTPS id 23A4F11F053 for <~rjarry/aerc-devel@lists.sr.ht>; Sat, 20 Aug 2022 16:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2020-07-31; bh=cLLIa3hC2 l2YB68k0m5valL3tnO+8wl4XvzR0Q4RvCg=; h=in-reply-to:references:from: subject:to:date; d=falsifian.org; b=qaoyCIX9mq2+eOKaMUUYRMM6GXrzcDltg5 /P0KttRuNUWshVuy/u/6g6ckLHO8sQmMwwMnkrg6f4+JeZp6it90OxX0l+TWHGUJCxOhTY iUnxsGwdEvmrvNsWvUinB6hsOf1LK/kVdi7zX+OSjxbmKIj1cjtiKID/Aj0dD4JGLnqYEI QulKqSty8w5nbKIHJTD10KK4dA6giLClq5fhqwYi1QwFMPTN0FM4b366oAmHXtKVoB4MhO XOkZa8YCdc1HjIXgFfACMdikFBw5XaPO5TYjbRUF/8svmr6EpKYqmuHOF+D5zPz6WHY+Ja nuTt4FZMuwbhEeVr8hFCLq0sWOHg== Received: from moth.falsifian.org (cpef81d0f9cb2f3-cmf81d0f9cb2f0.cpe.net.fido.ca [72.140.58.252]) by exoco.falsifian.org (OpenSMTPD) with ESMTPSA id 253ed8ca (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 20 Aug 2022 16:22:00 +0000 (UTC) Received: from localhost (moth.falsifian.org [local]) by moth.falsifian.org (OpenSMTPD) with ESMTPA id 476d37ae; Sat, 20 Aug 2022 16:21:55 +0000 (UTC) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Sat, 20 Aug 2022 16:21:54 +0000 Message-Id: To: "Tim Culverhouse" , "Moritz Poldrack" , <~rjarry/aerc-devel@lists.sr.ht> Subject: Re: [PATCH aerc] Use IMAP PEEK and allow not marking messages read. From: "James Cook" X-Mailer: aerc 0.11.0-92-g63096bb15528 References: <20220820002218.43914-1-falsifian@falsifian.org> In-Reply-To: > 1. Move store.Flag to worker because it's currently redundant for IMAP, > but needed for other workers > > 2. Add PEEK option to the worker message and all relevant function > calls, with the fix to the ones that should be true > > 3. Add the option to set peek on opening message > > This approach, at least to me, makes the imap worker more efficient than > it currently is, fixes some bugs, and gets this feature in. > > Tim I like this plan, except I wonder if #1 and #2 should be done in the same patch. If I understand you right, after #1, every message fetch would cause it to be marked as read, including e.g. running :pipe, so non-IMAP backends would get a little bit broken until step #2 is implemented. --=20 James