From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Gardella Subject: Re: Org referring to Gnus mail Date: Fri, 27 Apr 2012 01:02:00 -0400 Message-ID: <87wr51kbsn.fsf@gmail.com> References: <86zk9ykkln.fsf@iro.umontreal.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:33085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNdJv-0006sY-OK for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 01:02:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SNdJt-0003gr-RS for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 01:02:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:45116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SNdJt-0003gY-K7 for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 01:02:13 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SNdJr-0007Sd-Rv for emacs-orgmode@gnu.org; Fri, 27 Apr 2012 07:02:11 +0200 Received: from 76-204-120-197.lightspeed.wlfrct.sbcglobal.net ([76.204.120.197]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Apr 2012 07:02:11 +0200 Received: from gardellawg by 76-204-120-197.lightspeed.wlfrct.sbcglobal.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Apr 2012 07:02:11 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org François Pinard writes: > Hello. > > In my Org files, I have many references to Gnus articles which are part > of mailgroups. When batch reading email with Gnus, I'm OK with the > newsreader paradigm, in which an article is almost deleted as soon as it > gets read: it will not show the next time I'll visit the group. > > However, when an article is referred through an Org link, I think I > would prefer if the paradigm did not apply. Currently, I see myself > "unreading" such articles all the time, which is a bit tedious, and > error prone as well, as I can easily forget to do it. I wonder if > someone would not imagine some trickery by which, when the reference > comes from Org, the Gnus article does not get automatically read. > > If references were always established "manually", I could take the habit > of banging each article on which there is an Org link, at the time I > establish the link. The nicety is that a ticked article does not > "become read" when visited. Hi François, I am sure there is a better answer out there, but there is another nicety of Gnus you could exploit: marks (including the "read" mark) are never populated to a Gnus group automatically on reading, but only when you do an updating command such as q or x. If you close the group with `gnus-summary-exit-no-update' (the Q key in default binding), these messages will not be marked as read. > > However, in the practical case, I have an Emacs command, launching an > external helper program, which finds all articles within all mailgroups > within the few local servers, matching a specific regexp somewhere, and > then outputs a conveniently sorted Org tree holding [[...][...]] links > to them all. As the matches transiently depend on the pattern, it would > prefer avoiding any kind of side effects on the unread articles. > > François > > P.S. I'm quite surprised by the speed of the search. Grepping through > 540 Megs of text distributed in over 10000 files takes a bit less than > half a second, once the memory cache got populated. It's hard for me to > believe, and I'm unsuccessfully looking for a bug. It apparently works! So you have a command to automatically populate an Org tree from local newsgroups? Wow, sounds cool. I've long wondered if Org would make a good mailreader, and it sounds like you've determined that yes, it could :) -- Cheers, WGG