From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 25811 invoked from network); 4 Apr 2020 15:54:16 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with UTF8ESMTPZ; 4 Apr 2020 15:54:16 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jKl7A-00061o-CU; Sat, 04 Apr 2020 10:53:44 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jKl76-0005z3-V9 for ding@lists.math.uh.edu; Sat, 04 Apr 2020 10:53:40 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jKl75-0001T6-JR for ding@lists.math.uh.edu; Sat, 04 Apr 2020 10:53:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=/5BqI4NnemV0tGdf+DpRS1o5DWxKswWDag2fhPLWMDE=; b=EeFjjqcX603QAfcmHeymxIJIXM RiXBXukjhIX+pTCc67Tni4H7aowCaCuG5sXxAiscZGIjuNEPMtqTe/T1fSLfByrLen6x2SVAkyCKE N5RPEJn6UpZFBFgPh9qf/DH3NaZlPSYJutyL6x4zf4E/5PLBfKUxN8W/83ROxHKY/AP4=; Received: from ericabrahamsen.net ([52.70.2.18] helo=mail.ericabrahamsen.net) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jKl6x-0002d4-Tp for ding@gnus.org; Sat, 04 Apr 2020 17:53:35 +0200 Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id A4C55FA059; Sat, 4 Apr 2020 15:53:29 +0000 (UTC) From: Eric Abrahamsen To: Eric S Fraga Cc: ding@gnus.org Subject: Re: using nnmairix References: <871rp3pdqn.fsf@ucl.ac.uk> <87mu7re2jq.fsf@ericabrahamsen.net> <874ktz5mnu.fsf@ucl.ac.uk> <87y2rb6zpx.fsf@ucl.ac.uk> Date: Sat, 04 Apr 2020 08:53:27 -0700 In-Reply-To: <87y2rb6zpx.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sat, 04 Apr 2020 16:24:26 +0100") Message-ID: <87a73rdz7s.fsf@ericabrahamsen.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Eric S Fraga writes: > On Saturday, 4 Apr 2020 at 15:51, Eric S Fraga wrote: >> Do I maybe need to tell gnus to automatically subscribe to new groups? >> gnus-auto-subscribed-groups is set to >> >> ,----[ C-h v gnus-auto-subscribed-groups RET ] >> | gnus-auto-subscribed-groups is a variable defined in =E2=80=98gnus-sta= rt.el=E2=80=99. >> | Its value is >> | "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap" >> `---- >> >> which includes nnml but should it include nnmairix? > > I've added that but it seems to have only a little difference. > > When I search, I do see my nnmairix group appear in my group buffer but > with "0" messages. If I navigate to the line in the group buffer and > hit M-G, it updates the count correctly and I can then enter the group. > > Rather clumsy... I'm obviously missing something. > > I have searched the mailing list etc. I have the nnmairix group in my > server buffer and I have this in my .gnus.el: > > #+begin_src emacs-lisp > (add-to-list 'gnus-secondary-select-methods > (quote (nnml "search" (nnml-get-new-mail nil)))) > #+end_src=20 > > where "search" is the name of my mairix server. Well I'm sort of guessing here, but the end of `nnmairix-search' first checks the active value of the new search group, and if it's equal to '(1 . 0), it doesn't enter the group. The fact that you have to M-g on the group to get the correct message count seems to confirm that the active count is not getting set correctly when the group is first created. The correct active value should be getting set in `nnmairix-update-and-clear-marks', which is called right before the group would be opened. So I guess something is going wrong in there? Maybe you can step through that function with edebug? Eric