From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36280 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: more on accessing the body via split rules... Date: 18 May 2001 23:07:29 +0200 Message-ID: References: <87r8xmg02v.fsf@mclinux.com> <87d796d5xw.fsf@mclinux.com> <878zjud3cs.fsf@mclinux.com> <87wv7e7acu.fsf@mclinux.com> 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 1035171892 7737 80.91.224.250 (21 Oct 2002 03:44:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:44:52 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: (qmail 26189 invoked by alias); 18 May 2001 21:07:21 -0000 Original-Received: (qmail 26184 invoked from network); 18 May 2001 21:07:21 -0000 Original-Received: from dolk.extundo.com (195.42.214.242) by gnus.org with SMTP; 18 May 2001 21:07:21 -0000 Original-Received: from barbar.josefsson.org (slipsten.extundo.com [195.42.214.241]) (authenticated) by dolk.extundo.com (8.11.3/8.11.3) with ESMTP id f4IL7Sq25648; Fri, 18 May 2001 23:07:28 +0200 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "18 May 2001 21:16:56 +0200") Mail-Copies-To: nobody User-Agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.0.103 Original-Lines: 41 Xref: main.gmane.org gmane.emacs.gnus.general:36280 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36280 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > Right, it would make sense to me that the > > gnus-original-article-buffer variable should be updated during > > splitting, and set back to the previous value after splitting is > > done. > > > > how does that sound? > > I think that's not the right buffer, for gnus-original-article-buffer > is used when _displaying_ a message, not during splitting. That is, > if you look at the *Article* buffer then you see a munged copy of the > contents of the original article buffer. > > Maybe introduce a new variable nnmail-original-message-buffer? Yes, g-o-a-b is definitely wrong. How about this? * nnmail.el (nnmail-incoming-buffer): New variable. (nnmail-split-incoming): Use it. --- nnmail.el.~6.13.~ Sun May 6 02:15:16 2001 +++ nnmail.el Fri May 18 23:00:36 2001 @@ -450,6 +450,8 @@ (defvar nnmail-split-tracing nil) (defvar nnmail-split-trace nil) +(defvar nnmail-incoming-buffer " *nnmail incoming*") + (defconst nnmail-version "nnmail 1.0" @@ -896,7 +898,7 @@ nnmail-split-methods))) (save-excursion ;; Insert the incoming file. - (set-buffer (get-buffer-create " *nnmail incoming*")) + (set-buffer (get-buffer-create nnmail-incoming-buffer)) (erase-buffer) (let ((coding-system-for-read nnmail-incoming-coding-system)) (mm-insert-file-contents incoming))