Function: mh-thread-refile
mh-thread-refile is an autoloaded, interactive and byte-compiled
function defined in mh-thread.el.gz.
Signature
(mh-thread-refile FOLDER &optional DONT-UPDATE-LAST-DESTINATION-FLAG)
Documentation
Refile (output) thread into FOLDER.
In a program, update the variables mh-last-destination and
mh-last-destination-folder unless DONT-UPDATE-LAST-DESTINATION-FLAG is
non-nil.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-thread.el.gz
;;;###mh-autoload
(defun mh-thread-refile (folder &optional dont-update-last-destination-flag)
"Refile (output) thread into FOLDER.
In a program, update the variables `mh-last-destination' and
`mh-last-destination-folder' unless DONT-UPDATE-LAST-DESTINATION-FLAG is
non-nil."
(interactive (list (intern (mh-prompt-for-refile-folder))))
(cond ((not (memq 'unthread mh-view-ops))
(error "Folder isn't threaded"))
((eobp)
(error "No message at point"))
(t (let ((region (mh-thread-find-children)))
(unless dont-update-last-destination-flag
(setq mh-last-destination (cons 'refile folder)
mh-last-destination-folder mh-last-destination))
(mh-iterate-on-messages-in-region () (car region) (cadr region)
(mh-refile-a-msg nil folder))
(mh-next-msg)))))