(gnus-mime-delete-part): Don't insert parts twice.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 18 Oct 2003 00:39:13 +0000 (00:39 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sat, 18 Oct 2003 00:39:13 +0000 (00:39 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index fe80814..6e3e136 100644 (file)
@@ -2,6 +2,7 @@
 
        * gnus-art.el (gnus-article-next-page): Don't go to the next line
        before checking end-of-buffer.
+       (gnus-mime-delete-part): Don't insert parts twice.
 
 2003-10-17  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
index e33f25c..db8c311 100644 (file)
@@ -4017,8 +4017,6 @@ Replace it with some information about the removed part."
          (erase-buffer)
          (insert
           (concat
-           "<#part type=text/plain nofile=yes disposition=attachment"
-           " description=\"Deleted attachment (" bsize " Byte)\">"
            ",----\n"
            "| The following attachment has been deleted:\n"
            "|\n"
@@ -4026,10 +4024,12 @@ Replace it with some information about the removed part."
            "| Filename:       " filename "\n"
            "| Size (encoded): " bsize " Byte\n"
            "| Description:    " description "\n"
-           "`----\n"
-           "<#/part>"))
+           "`----\n"))
          (setcdr data
-                 (cdr (mm-make-handle nil `("text/plain"))))))
+                 (cdr (mm-make-handle
+                       nil `("text/plain") nil nil
+                       (list "attachment")
+                       (format "Deleted attachment (%s bytes)" bsize))))))
       (set-buffer gnus-summary-buffer)
       ;; FIXME: maybe some of the following code (borrowed from
       ;; `gnus-mime-save-part-and-strip') isn't necessary?