From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6027 invoked from network); 5 Aug 2021 19:54:50 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 5 Aug 2021 19:54:50 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mBjS4-009iz6-Ff for ml@inbox.vuxu.org; Thu, 05 Aug 2021 14:54:48 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1mBjS3-00DNA9-W6 for ml@inbox.vuxu.org; Thu, 05 Aug 2021 14:54:48 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mBjS1-00DNA0-Ox for ding@lists.math.uh.edu; Thu, 05 Aug 2021 14:54:45 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mBjRz-00HRgz-1p for ding@lists.math.uh.edu; Thu, 05 Aug 2021 14:54:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: 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=DT7Fut3zZlgYxAXWsv5tPCsCRPd7boxW9Y5Zmw+SXM0=; b=kgvInbfGz77FxNW2LBlwnQLbb5 B1CQFLzhcvbyR3GLdOWh+xdDD4ALNnlvgNRJ79GpzS13jYhrQ3wHYlJgqGyUpuHD/MQt9Ukxn6xP+ cYKYT5bY8Cla1Oq26hfdl33xWB6CDqniANyZa/1UIRJesDCQWIhu6ODxfTzJvURmomCY=; Received: from mout01.posteo.de ([185.67.36.65]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBjRo-0000hv-9j for ding@gnus.org; Thu, 05 Aug 2021 21:54:35 +0200 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id AC37F240026 for ; Thu, 5 Aug 2021 21:54:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1628193270; bh=xPHf8cyc8l4QrjrPEk23qoEap7u2KKb9HE7mJHCSe4w=; h=From:To:Cc:Subject:Date:From; b=DvqR4nN5Hjq5h7ywHwaL+NbFwCYal91PKLTR5qqA6N/QVHhp+KYopZpz7zJv5prbU aATEMEgk7CPJ6e6xjrRBadMSpvGTXbpqxZZLePBh66CL5Pj4YTjZaUoYD2bb664EFI AcOxOgChG9iP4Pbpm8djGaqhkrgROe25lArIjQjLM1E8xBZoD7LQr4xNxa0x2ly6aC XQwlmhq+NmFeSN8RMKYZ1skp4rr/8GFfBh1htyXazbrqJdD4TRrnLJzBkNmBv6lao6 zv9yFWIz3/R3OBR7q+uew0COFvRUOnD7Q54m5sE80SfY0OBTunUY9xQZ7+EoV+fVQ5 3rglBYEiFJQUA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4GgfT03sgYz9rxL; Thu, 5 Aug 2021 21:54:28 +0200 (CEST) From: Alexandr Vityazev To: Eric Abrahamsen Cc: Joseph Mingrone , ding@gnus.org Subject: Re: Help testing gnus-search fixups References: <87sg12uejj.fsf@ericabrahamsen.net> <87fsx1g98n.fsf@tullinup.koldfront.dk> <877didvavo.fsf@ericabrahamsen.net> <87eeclnhl5.fsf@tullinup.koldfront.dk> <87a6n9ov0e.fsf@tullinup.koldfront.dk> <87zgv97x1u.fsf@ku.dk> <87pmw4ly9a.fsf@tullinup.koldfront.dk> <87k0mclxo8.fsf@tullinup.koldfront.dk> <87zgv7thls.fsf@ericabrahamsen.net> <87bl6tuqcb.fsf@posteo.org> <87mtqd83f7.fsf@ericabrahamsen.net> <87bl6sual8.fsf@posteo.org> <87h7gj9x2w.fsf@ericabrahamsen.net> <87fsw21w3k.fsf@posteo.org> <86bl6j650f.fsf@phe.ftfl.ca> <87r1ffoatn.fsf@posteo.org> <87lf5ntupj.fsf@ericabrahamsen.net> <87pmur4xuk.fsf@ericabrahamsen.net> Date: Thu, 05 Aug 2021 19:54:47 +0000 In-Reply-To: <87pmur4xuk.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Thu, 05 Aug 2021 10:15:15 -0700") Message-ID: <87a6lvu0oo.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain List-ID: Precedence: bulk On 2021-08-05, 10:15 -0700, Eric Abrahamsen wrote: > Eric Abrahamsen writes: > > > [...] > >> I'm getting to it! I just need to find a moment to sit down and set up >> some dummy data and test the various possible configurations. It >> shouldn't be to hard to unilaterally force prefixed group names where >> that's needed, and force unprefixed names elsewhere, I just need to >> find the time. I'd like to get this fixed once and for all. > > Okay, I think I've finally got it. The incoming group names are indeed > prefixed or not depending on whether the server is primary or not > (arguably this should be fixed to always unprefixed in nnselect, but > I'll worry about that later), so this patch enforces unprefixed group > names within the function body, and prefixed group names in the return > value. Please give it a shot! > > Eric > > The patch was applied to the master branch and it doesn't work for me. In my case because of line 1388 with the code: #+begin_src elisp (setq group (gnus-group-full-name group server)) #+end_src code on 1395 line: #+begin_src elisp (nnmaildir-base-name-to-article-number (substring article 0 (string-match ":" article)) group (string-remove-prefix "nnmaildir:" server)) #+end_src always return nil, because the group on line 1397 always gets something like "nnmaildir+gmail:Inbox" and not "Inbox". And in the code on 1400 line: #+begin_src elisp (member group groups) #+end_src also requires the group similar to "Inbox", so it can only be solved by deleting line 1388: #+begin_src elisp (setq group (gnus-group-full-name group server)) #+end_src -- Best regards, Alexandr Vityazev