aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-09-05 00:10:56 +0000
committerRichard M. Stallman1994-09-05 00:10:56 +0000
commit38e767421f3e651d4a31fcc5b969948c4cf6d028 (patch)
treef1bc4303ab5eea48cc2e32d8e292a520e70cc1ec
parentad11d3de96dc792964210c54e3daf53d2d991942 (diff)
downloademacs-38e767421f3e651d4a31fcc5b969948c4cf6d028.tar.gz
emacs-38e767421f3e651d4a31fcc5b969948c4cf6d028.zip
(rmail-get-new-mail): Run rmail-get-new-mail-hook.
-rw-r--r--lisp/mail/rmail.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index c0a3a22002f..73903f10203 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -732,7 +732,9 @@ your /usr/spool/mail/$USER.
732You can also specify the file to get new mail from. In this case, the 732You can also specify the file to get new mail from. In this case, the
733file of new mail is not changed or deleted. Noninteractively, you can 733file of new mail is not changed or deleted. Noninteractively, you can
734pass the inbox file name as an argument. Interactively, a prefix 734pass the inbox file name as an argument. Interactively, a prefix
735argument causes us to read a file name and use that file as the inbox." 735argument causes us to read a file name and use that file as the inbox.
736
737This function runs `rmail-get-new-mail-hook' before saving the updated file."
736 (interactive 738 (interactive
737 (list (if current-prefix-arg 739 (list (if current-prefix-arg
738 (read-file-name "Get new mail from file: ")))) 740 (read-file-name "Get new mail from file: "))))
@@ -780,6 +782,7 @@ argument causes us to read a file name and use that file as the inbox."
780 (narrow-to-region (point) (point-max)) 782 (narrow-to-region (point) (point-max))
781 (goto-char (1+ (point-min))) 783 (goto-char (1+ (point-min)))
782 (rmail-count-new-messages) 784 (rmail-count-new-messages)
785 (run-hooks 'rmail-get-new-mail-hook)
783 (save-buffer))) 786 (save-buffer)))
784 ;; Delete the old files, now that babyl file is saved. 787 ;; Delete the old files, now that babyl file is saved.
785 (while delete-files 788 (while delete-files