From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87431 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus nnmaildir and notmuch Date: Thu, 23 Mar 2017 08:25:37 -0700 Message-ID: <878tnwt3pq.fsf@ericabrahamsen.net> References: <87poh8nwxj.fsf@ecocode.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1490282828 7546 195.159.176.226 (23 Mar 2017 15:27:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Mar 2017 15:27:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+m35652@lists.math.uh.edu Thu Mar 23 16:27:04 2017 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from mxfilter-048034.atla03.us.yomura.com ([107.189.48.34]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cr4dj-0001P2-KO for ding-account@gmane.org; Thu, 23 Mar 2017 16:27:03 +0100 X-Yomura-MXScrub: 1.0 Original-Received: from lists1.math.uh.edu (unknown [129.7.128.208]) by mxfilter-048034.atla03.us.yomura.com (Halon) with ESMTPS id 2c843918-0fdd-11e7-8ed1-b499baa2b07a; Thu, 23 Mar 2017 15:27:07 +0000 (UTC) Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.87) (envelope-from ) id 1cr4cz-0006An-9O; Thu, 23 Mar 2017 10:26:17 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1cr4cw-0006AC-Ne for ding@lists.math.uh.edu; Thu, 23 Mar 2017 10:26:14 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.87) (envelope-from ) id 1cr4cv-00013s-MO for ding@lists.math.uh.edu; Thu, 23 Mar 2017 10:26:14 -0500 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1cr4cs-0003V7-K8 for ding@gnus.org; Thu, 23 Mar 2017 16:26:10 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1cr4cc-0003gQ-CN for ding@gnus.org; Thu, 23 Mar 2017 16:25:54 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:0RoANzJnX5e499OlBtNSyVwQTX8= List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87431 Archived-At: Erik Colson writes: > Hi, > > I've setup gnus with nnmaildir as a secondary mail source and using > notmuch as indexer/search. > Searching with the notmuch nnir backend works very well, and I nicely > get a gnus summary buffer of the corresponding results. In that buffer I > can select and move messages to other maildir folders and the articles > are then effectively moved. I can also mark messages flagged or > expirable etc, but when I exit the buffer and relaunch the query, the > marks are _not_ saved. > > How come? Is this expected behavior ? Can it be changed ? nnir sort of caches its results -- if the group hasn't been killed between searches, you'll just see the same results again. nnir doesn't support re-scanning, otherwise it seems like it would be reasonable to use M-g in an nnir group to refresh the results. I don't know if it's possible to implement `nnir-request-scan', or if it simply won't work for any ephemeral groups. To be honest, I just did a little testing, and I couldn't even get marks to propagate: I flagged a message (the "real" backend was nnimap), exited the group, and the flag wasn't there in the real group, nor in the nnir group when I re-ran the search. Sorry I don't have anything more helpful! Eric