+2005-08-30 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * gnus-art.el (gnus-mime-save-part-and-strip): Clarify prompt.
+ Suggested by Dan Christensen <jdc@uwo.ca>.
+
+ * mm-decode.el (mm-save-part): Enable change of prompt.
+
+2005-08-29 Jari Aalto <jari.aalto@cante.net>
+
+ * gnus-msg.el (gnus-inews-add-send-actions): Made
+ `message-post-method' lambda parameter ARG `&optional'.
+
2005-08-29 Reiner Steib <Reiner.Steib@gmx.de>
* gnus-sum.el (gnus-summary-mime-map): Added
(id (get-text-property (point) 'gnus-part))
file param
(handles gnus-article-mime-handles))
- (setq file (and data (mm-save-part data)))
+ (setq file (and data (mm-save-part data "Delete MIME part and save to: ")))
(when file
(with-current-buffer (mm-handle-buffer data)
(erase-buffer)
(gnus-make-local-hook 'message-header-hook)
(add-hook 'message-header-hook 'gnus-agent-possibly-save-gcc nil t))
(setq message-post-method
- `(lambda (arg)
+ `(lambda (&optional arg)
(gnus-post-method arg ,gnus-newsgroup-name)))
(setq message-user-agent (gnus-message-make-user-agent))
(unless message-use-multi-frames
(setq filename (gnus-replace-in-string filename "[<>|]" ""))
(gnus-replace-in-string filename "^[.-]+" ""))
-(defun mm-save-part (handle)
- "Write HANDLE to a file."
+(defun mm-save-part (handle &optional prompt)
+ "Write HANDLE to a file.
+PROMPT overrides the default one used to ask user for a file name."
(let* ((name (mail-content-type-get (mm-handle-type handle) 'name))
(filename (mail-content-type-get
(mm-handle-disposition handle) 'filename))
(file-name-nondirectory filename))))
(setq file
(mm-with-multibyte
- (read-file-name "Save MIME part to: "
+ (read-file-name (or prompt "Save MIME part to: ")
(or mm-default-directory default-directory)
nil nil (or filename name ""))))
(setq mm-default-directory (file-name-directory file))