all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: Re: Any tricks to speedup nnimap?
Date: Sat, 19 Oct 2019 13:56:15 -0700	[thread overview]
Message-ID: <875zkk1mkw.fsf@ericabrahamsen.net> (raw)
In-Reply-To: m2pnismtct.fsf@gmail.com

Pankaj Jangid <pankaj.jangid@gmail.com> writes:

> Hi,
>
> I am using Gnus to read news and emails. News is fine. Whenever I open
> an unread article, it opens in a snap. Really fast. Some prefetch
> mechanism is at play. I haven't done anything to speed up news. This is
> default behaviour in my Emacs 26.3
>
> But when inside an nnimap group, it takes time to open an email. I press
> <RET> on any email then it connects to server to fetch. Is it possible
> to prefetch emails? I want the news like fast behaviour in reading
> emails.
>
> I have tried following things:
>
> ;; (1) globally
> (setq gnus-asynchronous t)
> (setq gnus-use-article-prefetch 30) ; this is default

Unfortunately, the nnimap backend doesn't support asynchronous calling,
so this won't work. I can't immediately think of why nnimap couldn't be
made asynchronous, but the work hasn't been done.

> ;; (2) under nnimap server section
> (nnimap-fetch-partial-articles t)

This will only have a noticeable effect if the email has a big
attachment or something on it. If it's just a plain text/HTML email, you
probably won't notice a speedup.

> These (above) two approaches aren't working on emails.
>
> I have read some articles that recommend "mbsync" and "dovecot". But
> that is a dependency on external tools. I would prefer native emacs
> approach if it is possible.

They aren't really external tools -- well, they're external to Emacs,
but Gnus will still behave the same as always. Essentially, going that
route is replicating an IMAP server on your local machine, and having
Gnus access that server rather than the remote one. That might sound
excessive, but actually it works quite well. It is very fast, and has
the advantage that you can still do everything you need to with your
email while you're offline.

Eric




  reply	other threads:[~2019-10-19 20:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-19 19:24 Any tricks to speedup nnimap? Pankaj Jangid
2019-10-19 20:56 ` Eric Abrahamsen [this message]
2019-10-20 10:55   ` Pankaj Jangid
2019-11-10 11:40     ` 황병희

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=875zkk1mkw.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=help-gnu-emacs@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.