* Primary select method switch
@ 2023-09-25 9:47 Didier Verna
2023-09-25 9:59 ` Adam Sjøgren
2023-09-25 11:52 ` Andrew Cohen
0 siblings, 2 replies; 16+ messages in thread
From: Didier Verna @ 2023-09-25 9:47 UTC (permalink / raw)
To: Gnus Beta Testers
Hello,
for several decades, I had an nntp select method as the primary one. Now
the server is dead and I wanted to make my gmail account the main one.
So I (naively) set gnus-select-method to the nnimap server, removed it
from gnus-secondary-select-methods, and restarted Gnus.
Now I have all my gmail groups duplicated. The old ones (named
nnimap+gmail:***) with all their marks are still here, but for each one,
I now also have a *** (no prefix) one, without any marks.
Is there a way to recover from this mess ?
Thank you !
--
Resistance is futile. You will be jazzimilated.
Jazz site: http://www.didierverna.com
Other sites: http://www.didierverna.info
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-25 9:47 Primary select method switch Didier Verna
@ 2023-09-25 9:59 ` Adam Sjøgren
2023-09-25 11:52 ` Andrew Cohen
1 sibling, 0 replies; 16+ messages in thread
From: Adam Sjøgren @ 2023-09-25 9:59 UTC (permalink / raw)
To: ding
Didier writes:
> Now I have all my gmail groups duplicated. The old ones (named
> nnimap+gmail:***) with all their marks are still here, but for each one,
> I now also have a *** (no prefix) one, without any marks.
>
> Is there a way to recover from this mess ?
I'm not sure, what I would try is setting:
(setq gnus-select-method '(nnnil))
and then keeping it that way, so every method is secondary and
prefixed, and no method is special (primary).
That's what I have been doing for decades :-)
Best regards,
Adam
--
"However, it sometimes fails for the unknown reason Adam Sjøgren
so far." asjo@koldfront.dk
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-25 9:47 Primary select method switch Didier Verna
2023-09-25 9:59 ` Adam Sjøgren
@ 2023-09-25 11:52 ` Andrew Cohen
2023-09-25 13:32 ` dick
` (2 more replies)
1 sibling, 3 replies; 16+ messages in thread
From: Andrew Cohen @ 2023-09-25 11:52 UTC (permalink / raw)
To: ding
>>>>> "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
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-25 11:52 ` Andrew Cohen
@ 2023-09-25 13:32 ` dick
2023-09-25 14:06 ` Didier Verna
2023-09-30 11:59 ` Arash Esbati
2 siblings, 0 replies; 16+ messages in thread
From: dick @ 2023-09-25 13:32 UTC (permalink / raw)
Cc: ding
dvl> Now I have all my gmail groups duplicated. The old ones (named
Yeah, "total fails" like this are commonplace. It's what happens when
your mail reader is the culmination of thirty years of cruft. The
"wut?" of adding a secondary "select methods" variable instead of
vectorizing the first is what you did as a 22-yo in the 1990s. To this
day I've only a vague idea of what a "select method" is, and I probably
spent more time rewriting gnus than anyone here.
Gnus's persistence model is and was 1990s flat files. We didn't think
too hard at that time. If something went wrong, we just went into our
.newsrc.eld, intuited its layout, deleted the offending entries, and
restarted. I'd advise the same in 2023.
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-25 11:52 ` Andrew Cohen
2023-09-25 13:32 ` dick
@ 2023-09-25 14:06 ` Didier Verna
2023-09-30 11:59 ` Arash Esbati
2 siblings, 0 replies; 16+ messages in thread
From: Didier Verna @ 2023-09-25 14:06 UTC (permalink / raw)
To: Andrew Cohen; +Cc: ding
Andrew Cohen <acohen@ust.hk> wrote:
> (setq gnus-select-method '(nnnil ""))
I've restored everything back to a previous state and did that. Much
simpler, thanks.
--
Resistance is futile. You will be jazzimilated.
Jazz site: http://www.didierverna.com
Other sites: http://www.didierverna.info
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-25 11:52 ` Andrew Cohen
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
2 siblings, 2 replies; 16+ messages in thread
From: Arash Esbati @ 2023-09-30 11:59 UTC (permalink / raw)
To: Andrew Cohen; +Cc: ding
Andrew Cohen <acohen@ust.hk> writes:
> 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 ""))
Sorry if I'm missing the obvious, but is it possible to adjust the
prefix shown in the Group buffer with this setup? Say, I want to have
my local nntp server in secondary, but don't want to see the
'nntp+localhost' prefix all over the place?
Best, Arash
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-09-30 11:59 ` Arash Esbati
@ 2023-10-04 19:59 ` Adam Sjøgren
2023-10-05 7:58 ` Eric S Fraga
1 sibling, 0 replies; 16+ messages in thread
From: Adam Sjøgren @ 2023-10-04 19:59 UTC (permalink / raw)
To: ding
Arash writes:
> Andrew Cohen <acohen@ust.hk> writes:
>> (setq gnus-select-method '(nnnil ""))
> Sorry if I'm missing the obvious, but is it possible to adjust the
> prefix shown in the Group buffer with this setup? Say, I want to have
> my local nntp server in secondary, but don't want to see the
> 'nntp+localhost' prefix all over the place?
Yes, the server name is used as the prefix - for example I have these:
,----[ C-h v gnus-secondary-select-methods RET ]
|
| Value:
| ((nnml "" (gnus-search-engine gnus-search-notmuch))
| (nntp "gm" (nntp-address "news.gmane.io"))
| (nntp "fb" (nntp-open-connection-function nntp-open-tls-stream)
| (nntp-port-number 563) (nntp-address "feedbase.org"))
| ...
`----
which gives me names in the *Group* buffer like this:
nnml:normal
nntp+gm:gmane.emacs.gnus.general
nntp+fb:feedbase.news.songkick.copenhagen
(The nntp-address defaults to the server name, so when shortening it I
had to explicitly set nntp-address.)
And this archive method:
,----[ C-h v gnus-message-archive-method RET ]
| (nnml "archive" (nnml-directory "~/Mail/archive")
| (nnml-active-file "~/Mail/archive/active")
| (nnml-get-new-mail nil) (gnus-search-engine gnus-search-notmuch)
| (nnml-inhibit-expiry t))
|
`----
so I have archive groups like:
nnml+archive:mail-2023
nnml+archive:news-2023
Best regards,
Adam
--
"Girl, you thought he was a man Adam Sjøgren
But he was a muffin" asjo@koldfront.dk
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
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 8:51 ` Adam Sjøgren
1 sibling, 2 replies; 16+ messages in thread
From: Eric S Fraga @ 2023-10-05 7:58 UTC (permalink / raw)
To: ding
On Saturday, 30 Sep 2023 at 13:59, Arash Esbati wrote:
> Sorry if I'm missing the obvious, but is it possible to adjust the
> prefix shown in the Group buffer with this setup? Say, I want to have
> my local nntp server in secondary, but don't want to see the
> 'nntp+localhost' prefix all over the place?
Adam has given you one answer.
An alternative is to change/customise how each individual group is
displayed in the Group buffer by setting the "comment" attribute. Check
out "G c" and look for the comment entry. I've renamed almost all of my
groups.
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-06-19) on Debian 12.0
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
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
1 sibling, 2 replies; 16+ messages in thread
From: Adam Sjøgren @ 2023-10-05 8:41 UTC (permalink / raw)
To: ding
Eric writes:
> An alternative is to change/customise how each individual group is
> displayed in the Group buffer by setting the "comment" attribute. Check
> out "G c" and look for the comment entry. I've renamed almost all of my
> groups.
Ah, cool, I didn't know you could do that!
Even after 20+ years there are still things to learn.
:-),
Adam
--
"It's my chainsaw Adam Sjøgren
Division is mine" asjo@koldfront.dk
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-10-05 7:58 ` Eric S Fraga
2023-10-05 8:41 ` Adam Sjøgren
@ 2023-10-05 8:51 ` Adam Sjøgren
2023-10-05 9:01 ` Eric S Fraga
1 sibling, 1 reply; 16+ messages in thread
From: Adam Sjøgren @ 2023-10-05 8:51 UTC (permalink / raw)
To: ding
Eric writes:
> An alternative is to change/customise how each individual group is
> displayed in the Group buffer by setting the "comment" attribute.
Did you also change gnus-group-line-format or similar for this to work?
Best regards,
Adam
--
"I used to feel Emacs' way strange. Maybe updating Adam Sjøgren
the copyright years of Walt Disney's works every asjo@koldfront.dk
year is nonsense. But Emacs' way is alike to it."
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
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 12:18 ` Andrew Cohen
0 siblings, 2 replies; 16+ messages in thread
From: Eric S Fraga @ 2023-10-05 9:01 UTC (permalink / raw)
To: ding
On Thursday, 5 Oct 2023 at 10:51, Adam Sjøgren wrote:
> Eric writes:
>
>> An alternative is to change/customise how each individual group is
>> displayed in the Group buffer by setting the "comment" attribute.
>
> Did you also change gnus-group-line-format or similar for this to work?
Ah, good point. I have so many settings for gnus, and so many that were
actually incorporated possibly decades ago, that I forget. Yes, I have
(setq gnus-group-line-format "%m%B%S%p%5y %(%-20C%) %3{%42G [%1L]%}\n")
I guess the important entry is %C which is the "Group comment (string)"
according to the description of gnus-group-line-format. And, note, I
have the full group name also displayed to the far right.
Thank you,
eric
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-07-11) on Debian bullseye/sid
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-10-05 8:41 ` Adam Sjøgren
@ 2023-10-05 9:02 ` Eric S Fraga
2023-10-13 15:36 ` Steinar Bang
1 sibling, 0 replies; 16+ messages in thread
From: Eric S Fraga @ 2023-10-05 9:02 UTC (permalink / raw)
To: ding
On Thursday, 5 Oct 2023 at 10:41, Adam Sjøgren wrote:
> Even after 20+ years there are still things to learn.
Yeah, me too, both in gnus and Emacs more generally. Keeps the level of
interest high!
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-07-11) on Debian bullseye/sid
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
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
1 sibling, 1 reply; 16+ messages in thread
From: Gijs Hillenius @ 2023-10-05 9:33 UTC (permalink / raw)
To: ding
On 5 October 2023 10:01 Eric S Fraga, wrote:
> On Thursday, 5 Oct 2023 at 10:51, Adam Sjøgren wrote:
>> Eric writes:
>>
>>> An alternative is to change/customise how each individual group is
>>> displayed in the Group buffer by setting the "comment" attribute.
>>
>> Did you also change gnus-group-line-format or similar for this to work?
>
> Ah, good point. I have so many settings for gnus, and so many that were
> actually incorporated possibly decades ago, that I forget. Yes, I have
>
> (setq gnus-group-line-format "%m%B%S%p%5y %(%-20C%) %3{%42G [%1L]%}\n")
>
> I guess the important entry is %C which is the "Group comment (string)"
> according to the description of gnus-group-line-format. And, note, I
> have the full group name also displayed to the far right.
Could you share an example of what that looks like?
My Group buffer has tens of "nnimap+servername:INBOX.folder" and
"nntp+news.gmane.io", "nntp+news.gmane.io"
--
The farther you go, the less you know.
-- Lao Tsu, "Tao Te Ching"
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-10-05 9:01 ` Eric S Fraga
2023-10-05 9:33 ` Gijs Hillenius
@ 2023-10-05 12:18 ` Andrew Cohen
1 sibling, 0 replies; 16+ messages in thread
From: Andrew Cohen @ 2023-10-05 12:18 UTC (permalink / raw)
To: ding
Just an FYI you might try simply replacing the %g spec in
'gnus-group-line-format with %G. This should display the group name
without the unwanted prefix.
--
Andrew Cohen
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-10-05 9:33 ` Gijs Hillenius
@ 2023-10-05 13:02 ` Eric S Fraga
0 siblings, 0 replies; 16+ messages in thread
From: Eric S Fraga @ 2023-10-05 13:02 UTC (permalink / raw)
To: ding
[-- Attachment #1: Type: text/plain, Size: 241 bytes --]
On Thursday, 5 Oct 2023 at 11:33, Gijs Hillenius wrote:
> Could you share an example of what that looks like?
not sure if image attachments work but here goes...
--
Eric S Fraga via gnus (Emacs 30.0.50 2023-07-11) on Debian bullseye/sid
[-- Attachment #2: screendump-20231005140157.png --]
[-- Type: image/png, Size: 35886 bytes --]
^ permalink raw reply [flat|nested] 16+ messages in thread
* Re: Primary select method switch
2023-10-05 8:41 ` Adam Sjøgren
2023-10-05 9:02 ` Eric S Fraga
@ 2023-10-13 15:36 ` Steinar Bang
1 sibling, 0 replies; 16+ messages in thread
From: Steinar Bang @ 2023-10-13 15:36 UTC (permalink / raw)
To: ding
>>>>> Adam Sjøgren <asjo@koldfront.dk>:
> Even after 20+ years there are still things to learn.
+1
^ permalink raw reply [flat|nested] 16+ messages in thread
end of thread, other threads:[~2023-10-13 15:36 UTC | newest]
Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 9:47 Primary select method switch Didier Verna
2023-09-25 9:59 ` Adam Sjøgren
2023-09-25 11:52 ` Andrew Cohen
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
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).