1 ; This autoloaded file implements the "i" command of mhe
5 (setq old-folder mh-folder)
6 (if (!= mh-folder "inbox")
7 (save-window-excursion ffl
8 (setq ffl (get-folder-name "inc into" "inbox" 1))
9 (&mh-read-folder ffl "" t-buffer-filename ffl)
12 (message "Checking for new mail...") (sit-for 0)
13 (send-to-shell (concat mh-progs "/inc +" mh-folder))
14 (temp-use-buffer "mh-temp")
16 (if (looking-at "^Incorporating")
18 (pop-to-buffer (concat "+" old-folder))
19 (switch-to-buffer (concat "+" mh-folder))
22 (&mh-unmark-all-headers 0)
24 (goto-character (+ (dot) 3))
25 (delete-next-character)
26 (insert-character '+')
29 (temp-use-buffer "mh-temp") (erase-buffer)
30 (insert-string global-mode-string)
32 (error-occured (search-forward " Mail")
33 (region-around-match 0)
35 (set-mark) (beginning-of-file)
36 (setq global-mode-string (region-to-string))
38 (temp-use-buffer (concat "+" mh-folder))
41 (message "No new mail.") (sit-for 10)
42 (send-string-to-terminal "
\a")
43 (pop-to-buffer (concat "+" mh-folder))
46 (&mh-restore-killbuffer)