(goto-char (point-min))
(when (looking-at ">From ")
(replace-match "X-From-Line: ") )
- (gnus-run-hooks 'nnmail-prepare-incoming-header-hook)
+ (run-hooks 'nnmail-prepare-incoming-header-hook)
(goto-char (point-max))
;; Find the Message-ID header.
(save-excursion
;; having a (possibly) faulty header.
(beginning-of-line)
(insert "X-"))
- (gnus-run-hooks 'nnmail-prepare-incoming-header-hook)
+ (run-hooks 'nnmail-prepare-incoming-header-hook)
;; Find the end of this article.
(goto-char (point-max))
(widen)
(insert "Original-")))
(forward-line 1)
(insert "Message-ID: " (setq message-id (nnmail-message-id)) "\n"))
- (gnus-run-hooks 'nnmail-prepare-incoming-header-hook)
+ (run-hooks 'nnmail-prepare-incoming-header-hook)
;; Find the end of this article.
(goto-char (point-max))
(widen)
(nnheader-insert-file-contents incoming)
(unless (zerop (buffer-size))
(goto-char (point-min))
- (save-excursion (gnus-run-hooks 'nnmail-prepare-incoming-hook))
+ (save-excursion (run-hooks 'nnmail-prepare-incoming-hook))
;; Handle both babyl, MMDF and unix mail formats, since movemail will
;; use the former when fetching from a mailbox, the latter when
;; fetching from a file.
(while (re-search-forward "\\(\r?\n[ \t]+\\)+" nil t)
(replace-match " " t t))
;; Allow washing.
- (gnus-run-hooks 'nnmail-split-hook)
+ (run-hooks 'nnmail-split-hook)
(if (and (symbolp nnmail-split-methods)
(fboundp nnmail-split-methods))
(let ((split
(message-fetch-field header))))
(defun nnmail-check-duplication (message-id func artnum-func)
- (gnus-run-hooks 'nnmail-prepare-incoming-message-hook)
+ (run-hooks 'nnmail-prepare-incoming-message-hook)
;; If this is a duplicate message, then we do not save it.
(let* ((duplication (nnmail-cache-id-exists-p message-id))
(case-fold-search t)
;; We first activate all the groups.
(nnmail-activate method)
;; Allow the user to hook.
- (gnus-run-hooks 'nnmail-pre-get-new-mail-hook)
+ (run-hooks 'nnmail-pre-get-new-mail-hook)
;; Open the message-id cache.
(nnmail-cache-open)
;; The we go through all the existing spool files and split the
(nnmail-get-value "%s-active-file" method))
(when exit-func
(funcall exit-func))
- (gnus-run-hooks 'nnmail-read-incoming-hook)
+ (run-hooks 'nnmail-read-incoming-hook)
(nnheader-message 3 "%s: Reading incoming mail...done" method))
;; Close the message-id cache.
(nnmail-cache-close)
;; Allow the user to hook.
- (gnus-run-hooks 'nnmail-post-get-new-mail-hook)
+ (run-hooks 'nnmail-post-get-new-mail-hook)
;; Delete all the temporary files.
(while incomings
(setq incoming (pop incomings))
(princ "\n")))))
(defun nnmail-purge-split-history (group)
+ "Remove all instances of GROUP from `nnmail-split-history'."
(let ((history nnmail-split-history)
prev)
(while history