Function: mh-prompt-for-refile-folder
mh-prompt-for-refile-folder is an autoloaded and byte-compiled
function defined in mh-folder.el.gz.
Signature
(mh-prompt-for-refile-folder)
Documentation
Prompt the user for a folder in which the message should be filed.
The folder is returned as a string.
The default folder name is generated by the option
mh-default-folder-for-message-function if it is non-nil or
mh-folder-from-address.
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-folder.el.gz
;;;###mh-autoload
(defun mh-prompt-for-refile-folder ()
"Prompt the user for a folder in which the message should be filed.
The folder is returned as a string.
The default folder name is generated by the option
`mh-default-folder-for-message-function' if it is non-nil or
`mh-folder-from-address'."
(mh-prompt-for-folder
"Destination"
(let ((refile-file (ignore-errors (mh-msg-filename (mh-get-msg-num t)))))
(if (null refile-file) ""
(with-current-buffer (get-buffer-create mh-temp-buffer)
(erase-buffer)
(insert-file-contents refile-file)
(or (and mh-default-folder-for-message-function
(let ((buffer-file-name refile-file))
(funcall mh-default-folder-for-message-function)))
(mh-folder-from-address)
(and (eq 'refile (car mh-last-destination-folder))
(symbol-name (cdr mh-last-destination-folder)))
""))))
t))