From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric S Fraga Newsgroups: gmane.emacs.help Subject: Re: Read/process mbox file in Gnus Date: Mon, 09 Nov 2020 13:40:10 +0000 Organization: On the Interweb somewhere Message-ID: <87sg9iir7p.fsf@ucl.ac.uk> References: <87blgb8dho.fsf@ericabrahamsen.net> <87h7q2ix32.fsf@gmail.com> <87d00qr82a.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25732"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:xUx3Xla5hH7D4W/pSF/gZZz0TyI= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 09 14:44:07 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 1kc7So-0006Xs-1y for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 14:44:06 +0100 Original-Received: from localhost ([::1]:34122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kc7Sn-0008Ut-0w for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Nov 2020 08:44:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc7PB-0005k1-6z for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 08:40:21 -0500 Original-Received: from static.214.254.202.116.clients.your-server.de ([116.202.254.214]:57250 helo=ciao.gmane.io) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kc7P9-0000wH-0k for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 08:40:20 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kc7P5-0001Y7-4q for help-gnu-emacs@gnu.org; Mon, 09 Nov 2020 14:40:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ X-Url: http://twitter.com/ericsfraga/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/09 08:01:24 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=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:125128 Archived-At: On Friday, 6 Nov 2020 at 12:40, Skip Montanaro wrote: > I was out riding around (new bike day 😀) and Nice! :-) > it occurred to me that the way I am using mbox files is just as a > transmission tool. [...] I'm going to guess Gnus saves metadata in > ~/.newsrc.eld. It's not clear how well it would take to me pulling the > rug out from under it by replacing the previous u.mbox file with a > completely new one without also somehow performing careful surgery on > its metadata (assuming I also use it as my normal mail reader). I would not recommend playing around with .newsrc.eld directly. However, I'm not sure you need to. If you use the u.mbox file as a "source", i.e. it's emptied by gnus when read, say into an nnml group, there won't be any inconsistency. Likewise, your destination mbox files could be places where you save articles (e.g. using gnus-summary-save-article, bound to o in the summary view) to and these will also not be files that gnus will try to keep track of. Whether they are empty or not when you ask gnus to save an article to such a file will not matter as it appends to the file. Note, you'll want to customize gnus-default-article-saver to use your desired format (gnus-summary-save-in-mail likely). -- Eric S Fraga via Emacs 28.0.50 & org 9.4 on Debian bullseye/sid