Gnus development mailing list
 help / color / mirror / Atom feed
From: Josh Huber <huber@alum.wpi.edu>
Subject: Re: funny problems with nnmail-cache and split-fancy-with-parent
Date: Tue, 07 May 2002 10:28:19 -0400	[thread overview]
Message-ID: <87r8ko822k.fsf@alum.wpi.edu> (raw)
In-Reply-To: <vafpu0a7qq3.fsf@INBOX.auto.gnus.tok.lucy.cs.uni-dortmund.de>

Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Strange.  I don't know why that could be.  But you could trace the
> relevant code...

Well, here's the problem.  In nnmail-cache-insert --

    (let ((g nil))
      (cond (grp
	     (setq g grp))
	    ((and (boundp 'group) group)
	     (setq g group))
	    ((and (boundp 'group-art-list) group-art-list
		  (listp group-art-list))
	     (setq g (caar group-art-list)))
	    ((and (boundp 'group-art) group-art (listp group-art))
	     (setq g (caar group-art)))
	    (t (setq g "")))

group is bound to "misc" (almost always).  (caar group-art) returns
the correct group name for splitting, but since this logic checks
group first, it gets the wrong value.

diff -u -r6.39 nnmail.el
--- lisp/nnmail.el	2002/04/29 20:08:18	6.39
+++ lisp/nnmail.el	2002/05/07 14:29:55
@@ -1469,13 +1469,13 @@
     (let ((g nil))
       (cond (grp
 	     (setq g grp))
+	    ((and (boundp 'group-art) group-art (listp group-art))
+	     (setq g (caar group-art)))
 	    ((and (boundp 'group) group)
 	     (setq g group))
 	    ((and (boundp 'group-art-list) group-art-list
 		  (listp group-art-list))
 	     (setq g (caar group-art-list)))
-	    ((and (boundp 'group-art) group-art (listp group-art))
-	     (setq g (caar group-art)))
 	    (t (setq g "")))
       (unless (gnus-buffer-live-p nnmail-cache-buffer)
 	(nnmail-cache-open))

Works for me, but after looking at this -- shouldn't there be a better
interface into nnmail-cache-insert?  We should go through and find all
the places which call it, which is only 10 places, and use the
optional argument for group name if possible.  checking for bound
symbols and using heuristics to get the group name seems a little
hackish to me ;)  (no offense to Kai!)

ttyl,

-- 
Josh Huber



  reply	other threads:[~2002-05-07 14:28 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-02 19:58 Josh Huber
2002-05-03 11:17 ` Kai Großjohann
2002-05-03 15:26   ` Josh Huber
2002-05-03 17:47     ` Kai Großjohann
2002-05-03 18:39       ` Josh Huber
2002-05-05 11:56         ` Kai Großjohann
2002-05-07 14:28           ` Josh Huber [this message]
2002-05-07 14:34             ` Josh Huber
2002-05-07 15:22               ` Kai Großjohann
2002-05-07 16:31                 ` Josh Huber
2002-05-07 15:24             ` Kai Großjohann
2002-05-07 16:29               ` Josh Huber
2002-05-12 20:33             ` Raymond Scholz
2002-05-13 14:11               ` Josh Huber
2002-05-14 21:12                 ` Raymond Scholz
2002-05-15 14:36                   ` Josh Huber
2002-05-15 16:01                     ` Raymond Scholz
2002-05-15 17:21                       ` Josh Huber
2002-05-18 19:03                         ` Kai Großjohann
2002-05-20 14:08                           ` Josh Huber
2002-05-20 14:35                             ` Kai Großjohann
2002-05-20 18:34                               ` Josh Huber
2002-05-20 19:01                                 ` Kai Großjohann
2002-05-20 19:16                                   ` Paul Jarc
2002-05-20 20:08                                     ` Kai Großjohann
2002-05-20 21:32                                   ` Josh Huber
2002-05-21 10:44                                     ` Kai Großjohann
2002-05-21 12:48                             ` Raymond Scholz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r8ko822k.fsf@alum.wpi.edu \
    --to=huber@alum.wpi.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).