From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31378 Path: main.gmane.org!not-for-mail From: Arnd Kohrs Newsgroups: gmane.emacs.gnus.general Subject: Re: automatically splitting conversations Date: 11 Jun 2000 22:22:36 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035167795 13637 80.91.224.250 (21 Oct 2002 02:36:35 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:36:35 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id B7B40D051F for ; Sun, 11 Jun 2000 16:24:25 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id PAC14872; Sun, 11 Jun 2000 15:23:55 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 11 Jun 2000 15:22:37 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id PAA17092 for ; Sun, 11 Jun 2000 15:22:26 -0500 (CDT) Original-Received: from monza.eurecom.fr (monza.eurecom.fr [193.55.113.133]) by mailhost.sclp.com (Postfix) with ESMTP id 94148D051F for ; Sun, 11 Jun 2000 16:22:55 -0400 (EDT) Original-Received: from houle.eurecom.fr (houle.eurecom.fr [193.55.114.106]) by monza.eurecom.fr (Postfix) with ESMTP id 39B1518B52; Sun, 11 Jun 2000 22:22:40 +0200 (MET DST) Original-Received: (from kohrs@localhost) by houle.eurecom.fr (8.9.3/8.9.3) id WAA01251; Sun, 11 Jun 2000 22:22:37 +0200 (MET DST) X-Authentication-Warning: houle.eurecom.fr: kohrs set sender to kohrs@houle.eurecom.fr using -f Original-To: ding@gnus.org X-Face: 1ETYv*X5`lW"hk(KWE,1u!/CnnMxdgn[B^=m*EUHa->O^!+d3x]l[_W$Y)E#1~_=+Ty..'B,|Am/!zh|sy6VS5&_x:7WjiJQgIsqct%a{s^F8jsI|(bKyplR'$FYjrg6Vu}kPbk&||'b99Yps%x?{NIMx?[YF2-K[IF*CLg:U0H/E}*'&$"c4"HCrHR;?Uk\%U}TBTb;GFrr**>=q3C@8_0]&!)`vc~Q#b`k`\]F=3#g4w)9pxI|qjPK:lTRU`UTb-w]mZ4OU6 X-Mailer: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.4 In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Sat, 10 Jun 2000 21:27:52 +0200" Original-Lines: 65 User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31378 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31378 >>>>> "Kai" == Kai Großjohann writes: Kai> I have devised a patch for Gnus which does the following: Kai> whenever a message is written to a group, Gnus memorizes the Kai> message id and the group name. There is a function which looks Kai> at the References header of an incoming message and searches Kai> the memorized message ids for a group name. If a group name is Kai> found, it is returned. If non is found, nil is returned. Excellent, Kai. And your code reveals that it wasn't as complicated to code as I thought - by using the id cache heuristic. However, using nnmail-cache as a store for where messages are moved or split might prevent a response to this message - in ten years from now - from not being split correctly ;-). Kai> This does what you want, I think: you just `B m' the message B m, did not do what was intended, see below. Kai> into a group, and all followups (and followups to the Kai> followups) go into that group by default. Kai> For the patch to work, you have to set nnmail-treat-duplicates Kai> to a non-nil value. And then you have to use the function Kai> nnmail-split-fancy-with-parent in your split method. I use Kai> nnmail-split-fancy, as follows: Kai> (setq nnmail-treat-duplicates 'delete) ;you might prefer `warn' Kai> (setq nnmail-split-methods 'nnmail-split-fancy) (setq Kai> nnmail-split-fancy '(| (: nnmail-split-fancy-with-parent) Kai> ...other splits go here...)) Besides setting these variable you absolutely need also (setq nnmail-cache-accepted-message-ids t) So that moving messages results in an update of the id cache. Since I use gnus-group-split it is (setq nnmail-split-methods 'gnus-group-split) for me, and then for my default mail group I have the following group parameter: (split-spec | (: nnmail-split-fancy-with-parent) catch-all) Kai> I wonder if this is documented. Hm. No, apparently not. This Kai> is bad. Please tell me how it goes when you try this. I might Kai> need your experience for writing the documentation. This is great functionality - It should definitely be documented. It could be labeled as something like /implicit splitting/, since the user's action ("B m") is observed, and Gnus derives an implicit splitting rule. Arnd. -- Arnd Kohrs - Institut Eurecom - http://www.eurecom.fr/~kohrs