Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: ding@gnus.org
Subject: Re: More on the new nnimap
Date: Mon, 04 Oct 2010 21:48:23 +0200	[thread overview]
Message-ID: <m3k4lxwxh4.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <m3sk0lal9r.fsf@jhcloos.com>

James Cloos <cloos@jhcloos.com> writes:

> LMI> What is your gnus-subscribe-newsgroup-method exactly? 
>
> (add-hook 'gnus-startup-hook
> 	  '(lambda ()
> 	     (setq gnus-subscribe-newsgroup-method
> 		   '(lambda (newsgroup)
> 		      (if (string-match "^nn.+:" newsgroup)
> 			  (gnus-subscribe-alphabetically newsgroup))))))
>
> The format must have come from a suggestion either here, in the manual
> or on one of the other emacs lists.  It goes back too many years to remember.

Right.  That should work.  Does `F' subscribe you to new nnimap groups,
or do you never see new nnimap groups?

> Oh.  Figured it out.  You have:
>
> (defun nnimap-open-shell-stream (name buffer host port)
>   (let ((process-connection-type nil))
> ...
>
> process-connection-type has to be t or pty to use a pty.

The ChangeLog message for this is:

	(nnimap-open-shell-stream): Bind `process-connection-type' to nil, so
	that CRLF doesn't get translated to \n.

So binding it to nil fixes a real bug.  Is there no way to get rid of
stderr without using a pty?        

> Creating the group, though, is to allow gnus access.

The create group command is really meant to create the group on the
backend.  You can subscribe groups in Gnus, but if this has worked
before, it was probably an accident.  All the other backends create
groups in response to that command.

So you'll have to adjust your code to have Gnus subscribe the group
instead of calling out `*-request-create-group' to the backend.

> LMI> Why is `F' slow?  Which backends take long to respond?
>
> Getting the list of groups over imap takes minutes.  Even tens of
> minutes.  Doing a single sql query to get the new groups taks less
> than 10 ms, according to explain analyze.

You use IMAP as the interface to a SQL-based mail storage?

Anyway, for nnimap `F' just issues a LIST command.  Does a LIST in your
setup take minutes?

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




  reply	other threads:[~2010-10-04 19:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-02 18:23 James Cloos
2010-10-04 16:36 ` Lars Magne Ingebrigtsen
2010-10-04 18:02   ` James Cloos
2010-10-04 19:48     ` Lars Magne Ingebrigtsen [this message]
2010-10-04 21:14       ` James Cloos
2010-10-05 16:39         ` Lars Magne Ingebrigtsen
2010-10-05 22:01           ` Dan Christensen
2010-10-07 19:11             ` Lars Magne Ingebrigtsen
2010-10-08 15:47               ` James Cloos
2010-10-06  9:05           ` James Cloos
2010-10-07 19:22             ` Lars Magne Ingebrigtsen
2010-10-08 16:00               ` James Cloos
2010-10-09 16:06                 ` Lars Magne Ingebrigtsen

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=m3k4lxwxh4.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    --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).