From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.help Subject: Re: Any tricks to speedup nnimap? Date: Sun, 20 Oct 2019 16:25:50 +0530 Organization: Code is Great! Message-ID: References: <875zkk1mkw.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="112529"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (darwin) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 20 12:56:18 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iM8sj-000TAG-Te for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 12:56:18 +0200 Original-Received: from localhost ([::1]:58900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iM8si-0006IA-6o for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Oct 2019 06:56:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34847) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iM8sT-0006HY-Gr for help-gnu-emacs@gnu.org; Sun, 20 Oct 2019 06:56:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iM8sR-0006uy-Ia for help-gnu-emacs@gnu.org; Sun, 20 Oct 2019 06:56:01 -0400 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]:44920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iM8sP-0006uL-Jk for help-gnu-emacs@gnu.org; Sun, 20 Oct 2019 06:55:59 -0400 Original-Received: by mail-pf1-x432.google.com with SMTP id q21so6504545pfn.11 for ; Sun, 20 Oct 2019 03:55:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:organization:references:date:in-reply-to:message-id :user-agent:mime-version; bh=cVYC03WNCtMSVBENIAWU5W3vGfXmenHmrqK7bprJSsQ=; b=uCYJnBbDc53yRkUvJ9YO0Nr9IFrs4JTRw9dd57oJqjB69EsfFzoVRlf2MDGQ1E0GIm K2A/YrfbUM7YejvlXY+c/W29+DgZI7/jmcBN0IIdwVq/0ucxMiDp7TE0zlNGAxc4peiK WlaovvY2mhTyIawbHOidn/Ur7XvZ7PINpU8hXSkc2rcp1mV74IzSedNO4BYq9yLWxB5C P6tHwcv2yKyb0Oc/NWWHTi/kSj8ps8U4F31eMAh8A9TQGobhAgb3gbcNTDGjte4lu9iL bZszniCTYesOXvQs96xwxXtR2P19eCazNyLLpZVgAVBeqC8Ue3UFZoIfdxIJo+FP4ITO 3o3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:references:date :in-reply-to:message-id:user-agent:mime-version; bh=cVYC03WNCtMSVBENIAWU5W3vGfXmenHmrqK7bprJSsQ=; b=S7jUedt6Lqj9/a644/foZOw4Z8OGthqxsXU7+XX3Eg2wLcGthVDByvikwQMjCZGzNm vAv7O6lRqaFXW0NeTDkgu5KBpRyBIni/8/YLd0BxIWeOuFJpxHdztKXZjsQox/XfvevJ QmIPlotHcT91ahrKP8A7SlA/eCPfe7tF+9Non28i2Ofm98omuwKVxbNwZ80T7qN+h5Ws hyEkncIpxYhmH1FDkGpZwe2wdo/uDBX+WlFbEXkZfH3A2jfA2AZGifB5XamEia+3wZjO 9SZwsxzHfyWzzuDwde7bqJ67MLLfR+blAzY9UjiKtjRqDY74c11P0hta1MLuZW03IRQb EwgQ== X-Gm-Message-State: APjAAAUPcCHWPHx1kCSBaYsKUhqMuX+8jpbmPYipdUBRMlzvvF5div2c v3Wd8uSxSglOw4xS0zrqMNDDqRYFDw== X-Google-Smtp-Source: APXvYqzZVE6yJk0h6qRjQNzDv5RrkVhfcLprgp60eRLui7+0rbXsJOUGHGv+uv6JOADbG3zl956yMg== X-Received: by 2002:a63:1c47:: with SMTP id c7mr7301479pgm.265.1571568954929; Sun, 20 Oct 2019 03:55:54 -0700 (PDT) Original-Received: from Pankajs-MacBook-Pro.local ([49.36.134.134]) by smtp.gmail.com with ESMTPSA id 199sm14306431pfv.152.2019.10.20.03.55.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Oct 2019 03:55:53 -0700 (PDT) Original-Received: by Pankajs-MacBook-Pro.local (Postfix, from userid 501) id 740E2203C74CE7; Sun, 20 Oct 2019 16:25:50 +0530 (IST) In-Reply-To: <875zkk1mkw.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Sat, 19 Oct 2019 13:56:15 -0700") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::432 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121680 Archived-At: Eric Abrahamsen writes: >> 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. > Thanks Eric. I just tried it. It works really well. But there is another problem. I keep only 1000 messages locally. There is a setting in mbsync to do that. I just realized that searching through all the mails will be not be possible using this approach. So, I resorted back to nnimap backend. nnir works perfectly with this approach. My connection is not slow but the fast access to news makes it look slow (comparatively). May be someday, when I have elisp skills developed, I will try to give time to this backend. Or may be wait for someone else to do it. :-) -- Regards, Pankaj Jangid