(mh-forward): Address SF 1730393. When forwarding
authorJeffrey C Honig <jch@bsdi.com>
Mon, 20 Aug 2007 03:05:42 +0000 (03:05 +0000)
committerJeffrey C Honig <jch@bsdi.com>
Mon, 20 Aug 2007 03:05:42 +0000 (03:05 +0000)
with mml, messages were included in reverse order.

lisp/mh-e/ChangeLog
lisp/mh-e/mh-comp.el

index 8c91b63..ee332fc 100644 (file)
@@ -1,5 +1,8 @@
 2007-08-20  Jeffrey C Honig  <jch@honig.net>
 
+       * mh-comp.el (mh-forward): Address SF 1730393.  When forwarding
+       with mml, messages were included in reverse order.
+
        * mh-mime.el (mh-mml-forward-message): Address SF 1378993 and
        forward messages as inline attatchments.
 
index b74c445..a71de82 100644 (file)
@@ -497,7 +497,9 @@ See also `mh-compose-forward-as-mime-flag',
                   (dolist (msg msgs)
                     (setq i (1+ i))
                     (mh-mml-forward-message (format description i)
-                                            folder msg))))))
+                                            folder msg)
+                    ;; Was inserted before us, move to end of file to preserve order
+                    (goto-char (point-max)))))))
         ;; Postition just before forwarded message
         (if (re-search-forward "^------- Forwarded Message" nil t)
             (forward-line -1)