From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Gnus: caching message headers? Date: Tue, 08 Sep 2020 20:39:47 +0000 Message-ID: References: <874ko9sgcn.fsf@ericabrahamsen.net> <87v9gpqyir.fsf@ericabrahamsen.net> Reply-To: Gregory Heytings Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2860"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Alpine 2.22 (NEB 394 2020-01-19) Cc: help-gnu-emacs@gnu.org To: wgreenhouse Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 08 22:40:17 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFkPZ-0000f8-CL for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Sep 2020 22:40:17 +0200 Original-Received: from localhost ([::1]:48628 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFkPY-00054F-EK for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 08 Sep 2020 16:40:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52488) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFkPG-000544-3Y for help-gnu-emacs@gnu.org; Tue, 08 Sep 2020 16:39:58 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:52366) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFkPD-0000a1-SC for help-gnu-emacs@gnu.org; Tue, 08 Sep 2020 16:39:57 -0400 Original-Received: from sdf.org (IDENT:ghe@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 088KdomH001377 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 8 Sep 2020 20:39:50 GMT Original-Received: (from ghe@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 088Ke1P9028425; Tue, 8 Sep 2020 20:40:01 GMT In-Reply-To: Received-SPF: pass client-ip=205.166.94.24; envelope-from=ghe@sdf.org; helo=mx.sdf.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/08 16:39:53 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, PDS_TONAME_EQ_TOLOCAL_HDRS_LCASE=0.405, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123999 Archived-At: > >> That did the trick, thank you. I had some difficulty to set it up, but >> now it seems to work. Is there a way to tell gnus-agent to create only >> a cache of headers, that is, to not store a local copy of the emails >> that have been read? > > I'm really not sure. It might be that you could set agent parameters in > such a way that no articles were eligible for downloading. But I'm not > sure the "agent cache" obeys the parameters; I have a feeling it just > downloads every message you read unconditionally. > A simple and direct way to do what I wanted is: (defun gnus-agent-do-not-store-article (fun &rest args) "Do nothing") (advice-add 'gnus-agent-store-article :around #'gnus-agent-do-not-store-article)