(nnmail-cache-insert): Prefer group-art over group
authorKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 7 May 2002 15:32:17 +0000 (15:32 +0000)
committerKai Grossjohann <kgrossjo@eu.uu.net>
Tue, 7 May 2002 15:32:17 +0000 (15:32 +0000)
when intuiting the group the message is written to.  From Josh
Huber <huber@alum.wpi.edu>.

lisp/ChangeLog
lisp/nnmail.el

index d87788f..135052f 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-07  Kai Gro\e,A_\e(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+       * nnmail.el (nnmail-cache-insert): Prefer group-art over group
+       when intuiting the group the message is written to.  From Josh
+       Huber <huber@alum.wpi.edu>.
+
 2002-05-06  Simon Josefsson  <jas@extundo.com>
 
        * gnus-topic.el (gnus-group-topic-parameters): Work when group
index 9538167..ade6528 100644 (file)
@@ -1469,13 +1469,13 @@ See the documentation for the variable `nnmail-split-fancy' for documentation."
     (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))