Gnus development mailing list
 help / color / mirror / Atom feed
* Finding to which server a group belongs
@ 2024-09-25 18:54 Bob Newell
  2024-09-26 12:36 ` Gijs Hillenius
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Bob Newell @ 2024-09-25 18:54 UTC (permalink / raw)
  To: ding

Aloha everyone,

I have a problem that puzzles me and I hope there is a simple
answer that I've overlooked.

Okay, I'm in a group summary buffer, say INBOX.  I poll
several IMAP servers.  I want to know from which server this
group was populated.

It's sometime possible to figure it out from the variable
gnus-summary-buffer, but not always; for instance
nnimap+fastmail:Archive is easy but INBOX is not, especially
as several servers provide INBOX with no further clues in the
name.

So how do I programmatically determine the 'parent' server of
the group?

Mahalo in advance for any ideas,

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU-Linux/Emacs/Gnus/BBDB


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-25 18:54 Finding to which server a group belongs Bob Newell
@ 2024-09-26 12:36 ` Gijs Hillenius
  2024-09-26 20:09 ` Björn Bidar
       [not found] ` <66f5bf81.250a0220.10a0c.7cecSMTPIN_ADDED_BROKEN@mx.google.com>
  2 siblings, 0 replies; 8+ messages in thread
From: Gijs Hillenius @ 2024-09-26 12:36 UTC (permalink / raw)
  To: Bob Newell; +Cc: ding

On 25 September 2024 08:54 Bob Newell, wrote:

> Aloha everyone,
>
> I have a problem that puzzles me and I hope there is a simple
> answer that I've overlooked.
>
> Okay, I'm in a group summary buffer, say INBOX.  I poll
> several IMAP servers.  I want to know from which server this
> group was populated.
>
> It's sometime possible to figure it out from the variable
> gnus-summary-buffer, but not always; for instance
> nnimap+fastmail:Archive is easy but INBOX is not, especially
> as several servers provide INBOX with no further clues in the
> name.
>
> So how do I programmatically determine the 'parent' server of
> the group?
>
> Mahalo in advance for any ideas,

I guess you don't want to browse the *server buffer*, but want to see
this instantly. Perhaps you can tweak gnus-group-line-format ?

the default has a (%g%) which will make gnus display the Qualified group
name. It will add nnimap+server to your INBOX.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-25 18:54 Finding to which server a group belongs Bob Newell
  2024-09-26 12:36 ` Gijs Hillenius
@ 2024-09-26 20:09 ` Björn Bidar
       [not found] ` <66f5bf81.250a0220.10a0c.7cecSMTPIN_ADDED_BROKEN@mx.google.com>
  2 siblings, 0 replies; 8+ messages in thread
From: Björn Bidar @ 2024-09-26 20:09 UTC (permalink / raw)
  To: Bob Newell; +Cc: ding

Bob Newell <bobnewell@bobnewell.net> writes:

> Aloha everyone,
>
> I have a problem that puzzles me and I hope there is a simple
> answer that I've overlooked.
>
> Okay, I'm in a group summary buffer, say INBOX.  I poll
> several IMAP servers.  I want to know from which server this
> group was populated.
>
> It's sometime possible to figure it out from the variable
> gnus-summary-buffer, but not always; for instance
> nnimap+fastmail:Archive is easy but INBOX is not, especially
> as several servers provide INBOX with no further clues in the
> name.

Hm for me the INBOX Group is tied the select method and thus the server
is belongs to.


For me the group is called nnimap+selectMethod:INBOX.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
       [not found] ` <66f5bf81.250a0220.10a0c.7cecSMTPIN_ADDED_BROKEN@mx.google.com>
@ 2024-09-27  4:26   ` Bob Newell
  2024-09-27  4:32     ` Adam Sjøgren
  0 siblings, 1 reply; 8+ messages in thread
From: Bob Newell @ 2024-09-27  4:26 UTC (permalink / raw)
  To: ding


> For me the group is called nnimap+selectMethod:INBOX.

This is true for many but not all, notably gmail for which
it's just INBOX.  (It may be something is wrong with my setup
but I've seen other discussion online of this very thing.)

However I do have a (terrible) workaround.  Since the problem
is only with gmail, when I find INBOX with no selectmethod
identifier, I just assume the server is imap.gmail.com.  This
works for my use case but it's hardly to be recommended in
general.

In any event thanks for the replies.

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU-Linux/Emacs/Gnus/BBDB


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-27  4:26   ` Bob Newell
@ 2024-09-27  4:32     ` Adam Sjøgren
  2024-09-27 18:18       ` Bob Newell
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Sjøgren @ 2024-09-27  4:32 UTC (permalink / raw)
  To: ding

Bob writes:

>> For me the group is called nnimap+selectMethod:INBOX.
>
> This is true for many but not all, notably gmail for which
> it's just INBOX.

Do you, by any chance, have gmail configured as your primary select
method?


  Best regards,

    Adam

-- 
 "Tonight there's a glimmershow                             Adam Sjøgren
  Tonight there's a golden globe"                      asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-27  4:32     ` Adam Sjøgren
@ 2024-09-27 18:18       ` Bob Newell
  2024-09-27 18:50         ` Adam Sjøgren
  0 siblings, 1 reply; 8+ messages in thread
From: Bob Newell @ 2024-09-27 18:18 UTC (permalink / raw)
  To: Gnus



On Thu, Sep 26, 2024, at 6:32 PM, Adam Sjøgren wrote:
> Bob writes:
>
>>> For me the group is called nnimap+selectMethod:INBOX.
>>
>> This is true for many but not all, notably gmail for which
>> it's just INBOX.
>
> Do you, by any chance, have gmail configured as your primary select
> method?

Yes, gmail primary, fastmail secondary but I'm reversing those soon.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-27 18:18       ` Bob Newell
@ 2024-09-27 18:50         ` Adam Sjøgren
  2024-09-27 19:57           ` Bob Newell
  0 siblings, 1 reply; 8+ messages in thread
From: Adam Sjøgren @ 2024-09-27 18:50 UTC (permalink / raw)
  To: ding

Bob writes:

> Yes, gmail primary, fastmail secondary but I'm reversing those soon.

One of the peculiarities of the primary method is that the server name
isn't shown, I think that's why you just get the mailbox name.

I recommend configuring all your servers as secondary methods and
setting the primary method to nnnil:

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

The split between primary method and secondary methods is more
confusing than helpful these days, I think.


  Best regards,

    Adam

-- 
 "This cyber parachute jumper has now reached the           Adam Sjøgren
  ground"                                              asjo@koldfront.dk



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Finding to which server a group belongs
  2024-09-27 18:50         ` Adam Sjøgren
@ 2024-09-27 19:57           ` Bob Newell
  0 siblings, 0 replies; 8+ messages in thread
From: Bob Newell @ 2024-09-27 19:57 UTC (permalink / raw)
  To: Adam Sjøgren; +Cc: ding


Adam Sjøgren <asjo@koldfront.dk> writes:

> I recommend configuring all your servers as secondary methods and
> setting the primary method to nnnil:
>
>     (setq gnus-select-method '(nnnil))

An excellent idea, thanks, I will try this.

Meanwhile I did come up with this, which is promising:

(gnus-group-server (format "%s" gnus-summary-buffer))

-- 
Bob Newell
Honolulu, Hawai`i

- Via GNU-Linux/Emacs/Gnus/BBDB


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-09-27 19:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-25 18:54 Finding to which server a group belongs Bob Newell
2024-09-26 12:36 ` Gijs Hillenius
2024-09-26 20:09 ` Björn Bidar
     [not found] ` <66f5bf81.250a0220.10a0c.7cecSMTPIN_ADDED_BROKEN@mx.google.com>
2024-09-27  4:26   ` Bob Newell
2024-09-27  4:32     ` Adam Sjøgren
2024-09-27 18:18       ` Bob Newell
2024-09-27 18:50         ` Adam Sjøgren
2024-09-27 19:57           ` Bob Newell

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).