emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eden Cardim <edencardim@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-gnus-follow-link and nnimap-request-scan
Date: Mon, 11 Apr 2011 18:51:14 -0300	[thread overview]
Message-ID: <87oc4cihil.fsf@gmail.com> (raw)


After switching to using gnus mail splitting, following links to nnimap
messages has become very slow. I'm fairly familiar with the gnus source,
but not org-mode's as much, after wading a bit in the source I landed on 
,----[ org-gnus-follow-link ]
| 	 (gnus-activate-group group t)
`----
,----[ C-h f gnus-activate-group RET ]
| gnus-activate-group is a compiled Lisp function in `gnus-start.el'.
| 
| (gnus-activate-group GROUP &optional SCAN DONT-CHECK METHOD DONT-SUB-CHECK)
| 
| Check whether a group has been activated or not.
| If SCAN, request a scan of that group as well.
| 
| [back]
`----
which ends up invoking
,----
| (deffoo nnimap-request-scan (&optional group server)
|   (when (and (nnimap-possibly-change-group nil server)
| 	     nnimap-inbox
| 	     nnimap-split-methods)
|     (nnheader-message 7 "nnimap %s splitting mail..." server)
|     (nnimap-split-incoming-mail)))
`----
Which is certainly dispensable for visiting articles via nnimap.
Switching to
,----[ org-gnus-follow-link ]
| 	 (gnus-activate-group group nil)
`----
Makes the linked articles appear nearly instantly.

Am I missing something here?

-- 
Eden Cardim
Software Engineer
edencardim.com
+55 73 9986-3963

             reply	other threads:[~2011-04-12  1:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-11 21:51 Eden Cardim [this message]
2011-04-12  7:26 ` org-gnus-follow-link and nnimap-request-scan Tassilo Horn
2011-04-12  7:57   ` Eden Cardim
2011-04-12 18:30     ` Tassilo Horn
2011-05-02  9:10       ` [Accepted] " Carsten Dominik

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87oc4cihil.fsf@gmail.com \
    --to=edencardim@gmail.com \
    --cc=emacs-orgmode@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).