Gnus development mailing list
 help / color / mirror / Atom feed
* New nnimap and auto-subscribe
@ 2010-09-20 20:47 Julien Danjou
  2010-09-21 16:04 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Danjou @ 2010-09-20 20:47 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 471 bytes --]

Hi,

I have the following settings:

(setq gnus-subscribe-newsgroup-method 'gnus-subscribe-alphabetically)
(setq gnus-default-subscribed-newsgroups t)
(setq gnus-auto-subscribed-groups
      "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap")

So that when a new box appears on my nnimap server, it gets subscribed
automagically. It seems to not work anymore.

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: New nnimap and auto-subscribe
  2010-09-20 20:47 New nnimap and auto-subscribe Julien Danjou
@ 2010-09-21 16:04 ` Lars Magne Ingebrigtsen
  2010-10-01 15:52   ` Julien Danjou
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-09-21 16:04 UTC (permalink / raw)
  To: ding

Julien Danjou <julien@danjou.info> writes:

> (setq gnus-subscribe-newsgroup-method 'gnus-subscribe-alphabetically)
> (setq gnus-default-subscribed-newsgroups t)
> (setq gnus-auto-subscribed-groups
>       "^nnml\\|^nnfolder\\|^nnmbox\\|^nnmh\\|^nnbabyl\\|^nnmaildir\\|^nnimap")
>
> So that when a new box appears on my nnimap server, it gets subscribed
> automagically. It seems to not work anymore.

Hm...  I wonder whether that's true for all methods.  Gnus doesn't issue
`gnus-request-list' on all the methods any more, so how does it get new
groups?

I don't think it does.  Only `F' triggers loading of the complete group
lists from servers now.  That means that Gnus handles IMAP and NNTP
groups consistently now, which it probably didn't do before.  But it
would be nice if it did discover IMAP groups more automatically than
NNTP groups...  hm...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: New nnimap and auto-subscribe
  2010-09-21 16:04 ` Lars Magne Ingebrigtsen
@ 2010-10-01 15:52   ` Julien Danjou
  2010-10-01 17:30     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Danjou @ 2010-10-01 15:52 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 819 bytes --]

On Tue, Sep 21 2010, Lars Magne Ingebrigtsen wrote:

> Hm...  I wonder whether that's true for all methods.  Gnus doesn't issue
> `gnus-request-list' on all the methods any more, so how does it get new
> groups?
>
> I don't think it does.  Only `F' triggers loading of the complete group
> lists from servers now.  That means that Gnus handles IMAP and NNTP
> groups consistently now, which it probably didn't do before.  But it
> would be nice if it did discover IMAP groups more automatically than
> NNTP groups...  hm...

'F' does not work either. When I go in the server buffer with ^ from
*Group*, I see new groups (new IMAP folders) but 'F' did not find them.

I hope 'F' does not use LSUB to discover new folders…?

-- 
Julien Danjou
// ᐰ <julien@danjou.info>   http://julien.danjou.info

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: New nnimap and auto-subscribe
  2010-10-01 15:52   ` Julien Danjou
@ 2010-10-01 17:30     ` Lars Magne Ingebrigtsen
  2010-10-01 17:49       ` Ted Zlatanov
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-01 17:30 UTC (permalink / raw)
  To: ding

Julien Danjou <julien@danjou.info> writes:

> 'F' does not work either. When I go in the server buffer with ^ from
> *Group*, I see new groups (new IMAP folders) but 'F' did not find them.

Yeah, I wasn't sure how to implement this.  What I really want is a
command that says "give me the new IMAP mailboxes since <date>", but
that doesn't seem to exist.

I've now implemented a `nnimap-request-newgroups' that should work OK,
though, but isn't blindingly fast...

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: New nnimap and auto-subscribe
  2010-10-01 17:30     ` Lars Magne Ingebrigtsen
@ 2010-10-01 17:49       ` Ted Zlatanov
  2010-10-01 17:59         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Ted Zlatanov @ 2010-10-01 17:49 UTC (permalink / raw)
  To: ding

On Fri, 01 Oct 2010 19:30:45 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Julien Danjou <julien@danjou.info> writes:
>> 'F' does not work either. When I go in the server buffer with ^ from
>> *Group*, I see new groups (new IMAP folders) but 'F' did not find them.

LMI> Yeah, I wasn't sure how to implement this.  What I really want is a
LMI> command that says "give me the new IMAP mailboxes since <date>", but
LMI> that doesn't seem to exist.

You could store the set of groups in .newsrc.eld with a timestamp.

Ted




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

* Re: New nnimap and auto-subscribe
  2010-10-01 17:49       ` Ted Zlatanov
@ 2010-10-01 17:59         ` Lars Magne Ingebrigtsen
  2010-10-01 18:27           ` Ted Zlatanov
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-01 17:59 UTC (permalink / raw)
  To: ding

Ted Zlatanov <tzz@lifelogs.com> writes:

> You could store the set of groups in .newsrc.eld with a timestamp.

That's sort of what happens now.  Kinda.  When you kill groups, they're
still registered there, so I think the current way of doing it should
work.

I wanted to avoid a "LIST" command, because it's slow-ish on some
servers, but I don't think there's a way to avoid that.  Anyway, it's
only called on Gnus startup and on `F', so it should be no big deal.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




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

* Re: New nnimap and auto-subscribe
  2010-10-01 17:59         ` Lars Magne Ingebrigtsen
@ 2010-10-01 18:27           ` Ted Zlatanov
  0 siblings, 0 replies; 7+ messages in thread
From: Ted Zlatanov @ 2010-10-01 18:27 UTC (permalink / raw)
  To: ding

On Fri, 01 Oct 2010 19:59:17 +0200 Lars Magne Ingebrigtsen <larsi@gnus.org> wrote: 

LMI> Ted Zlatanov <tzz@lifelogs.com> writes:
>> You could store the set of groups in .newsrc.eld with a timestamp.

LMI> That's sort of what happens now.  Kinda.  When you kill groups, they're
LMI> still registered there, so I think the current way of doing it should
LMI> work.

Oh, I thought killed groups were removed from the list.  That will work then.

LMI> I wanted to avoid a "LIST" command, because it's slow-ish on some
LMI> servers, but I don't think there's a way to avoid that.  Anyway, it's
LMI> only called on Gnus startup and on `F', so it should be no big deal.

It's reasonable IMO and users can turn it off.

Ted




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

end of thread, other threads:[~2010-10-01 18:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-20 20:47 New nnimap and auto-subscribe Julien Danjou
2010-09-21 16:04 ` Lars Magne Ingebrigtsen
2010-10-01 15:52   ` Julien Danjou
2010-10-01 17:30     ` Lars Magne Ingebrigtsen
2010-10-01 17:49       ` Ted Zlatanov
2010-10-01 17:59         ` Lars Magne Ingebrigtsen
2010-10-01 18:27           ` Ted Zlatanov

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