Gnus development mailing list
 help / color / mirror / Atom feed
From: Andrew Cohen <acohen@ust.hk>
To: ding@gnus.org
Subject: Re: Primary select method switch
Date: Mon, 25 Sep 2023 19:52:43 +0800	[thread overview]
Message-ID: <87il7yii5w.fsf@ust.hk> (raw)
In-Reply-To: <m1zg1ar3du.fsf@didierverna.net>

>>>>> "dvl" == Didier Verna <didier@didierverna.net> writes:

    dvl>   Hello, for several decades, I had an nntp select method as
    dvl> the primary one. Now the server is dead and I wanted to make my
    dvl> gmail account the main one.  So I (naively) set
    dvl> gnus-select-method to the nnimap server, removed it from
    dvl> gnus-secondary-select-methods, and restarted Gnus.

    dvl> Now I have all my gmail groups duplicated. The old ones (named
    dvl> nnimap+gmail:***) with all their marks are still here, but for
    dvl> each one, I now also have a *** (no prefix) one, without any
    dvl> marks.

    dvl> Is there a way to recover from this mess ?

Depends a bit on what you want.  One big difference between primary and
secondary is the prefixing (as you  discovered). Mostly there isn't much
reason to have a primary select method. A common configuration is to
eliminate the primary, and then put everything in secondary. To
eliminate the primary just set it to 'nnil:

     (setq gnus-select-method '(nnnil ""))


You should be able to do this (and put your gmail groups back in
secondary) and remove the unwanted unprefixed (i.e. primary) groups.


-- 
Andrew Cohen



  parent reply	other threads:[~2023-09-25 11:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-25  9:47 Didier Verna
2023-09-25  9:59 ` Adam Sjøgren
2023-09-25 11:52 ` Andrew Cohen [this message]
2023-09-25 13:32   ` dick
2023-09-25 14:06   ` Didier Verna
2023-09-30 11:59   ` Arash Esbati
2023-10-04 19:59     ` Adam Sjøgren
2023-10-05  7:58     ` Eric S Fraga
2023-10-05  8:41       ` Adam Sjøgren
2023-10-05  9:02         ` Eric S Fraga
2023-10-13 15:36         ` Steinar Bang
2023-10-05  8:51       ` Adam Sjøgren
2023-10-05  9:01         ` Eric S Fraga
2023-10-05  9:33           ` Gijs Hillenius
2023-10-05 13:02             ` Eric S Fraga
2023-10-05 12:18           ` Andrew Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87il7yii5w.fsf@ust.hk \
    --to=acohen@ust.hk \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).