Function: mh-inc-folder
mh-inc-folder is an autoloaded, interactive and byte-compiled function
defined in mh-folder.el.gz.
Signature
(mh-inc-folder &optional FILE FOLDER)
Documentation
Incorporate new mail into a folder.
You can incorporate mail from any file into the current folder by specifying a prefix argument; you'll be prompted for the name of the FILE to use as well as the destination FOLDER
The hook mh-inc-folder-hook is run after incorporating new
mail.
Do not call this function from outside MH-E; use M-x mh-rmail (mh-rmail)
instead.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/mh-e/mh-folder.el.gz
;;;###mh-autoload
(defun mh-inc-folder (&optional file folder)
"Incorporate new mail into a folder.
You can incorporate mail from any file into the current folder by
specifying a prefix argument; you'll be prompted for the name of
the FILE to use as well as the destination FOLDER
The hook `mh-inc-folder-hook' is run after incorporating new
mail.
Do not call this function from outside MH-E; use \\[mh-rmail]
instead."
(interactive (list (if current-prefix-arg
(expand-file-name
(read-file-name "inc mail from file: "
mh-user-path)))
(if current-prefix-arg
(mh-prompt-for-folder "inc mail into" mh-inbox t))))
(if (not folder)
(setq folder mh-inbox))
(let ((threading-needed-flag nil))
(let ((config (current-window-configuration)))
(when (and mh-show-buffer (get-buffer mh-show-buffer))
(delete-windows-on mh-show-buffer))
(cond ((not (get-buffer folder))
(mh-make-folder folder)
(setq threading-needed-flag mh-show-threads-flag)
(setq mh-previous-window-config config))
((not (eq (current-buffer) (get-buffer folder)))
(switch-to-buffer folder)
(setq mh-previous-window-config config))))
(mh-get-new-mail file)
(when (and threading-needed-flag
(save-excursion
(goto-char (point-min))
(or (null mh-large-folder)
(not (equal (forward-line (1+ mh-large-folder)) 0))
(and (message "Not threading since the number of messages exceeds `mh-large-folder'")
nil))))
(mh-toggle-threads))
(beginning-of-line)
(when (mh-outstanding-commands-p)
(mh-notate-deleted-and-refiled))
(if (and mh-showing-mode (looking-at mh-scan-valid-regexp)) (mh-show))
(run-hooks 'mh-inc-folder-hook)))