Function: feedmail-mail-send-hook-splitter
feedmail-mail-send-hook-splitter is a byte-compiled function defined
in feedmail.el.gz.
Signature
(feedmail-mail-send-hook-splitter)
Documentation
Facilitate dividing mail-send-hook things into queued and immediate cases.
If you have mail-send-hook functions that should only be called
for sending/ queueing messages or only be called for the sending
of queued messages, this is for you. Add this function to
mail-send-hook with something like this:
(add-hook 'mail-send-hook 'feedmail-mail-send-hook-splitter)
Then add the functions you want called to either
feedmail-mail-send-hook-queued or feedmail-mail-send-hook, as
appropriate. The distinction is that feedmail-mail-send-hook
will be called when you send mail from a composition
buffer (typically by typing C-c C-c), whether the message is sent
immediately or placed in the queue or drafts directory.
feedmail-mail-send-hook-queued is called when messages are
being sent from the queue directory, typically via a call to
feedmail-run-the-queue.
Source Code
;; Defined in /usr/src/emacs/lisp/mail/feedmail.el.gz
(defun feedmail-mail-send-hook-splitter ()
"Facilitate dividing `mail-send-hook' things into queued and immediate cases.
If you have `mail-send-hook' functions that should only be called
for sending/ queueing messages or only be called for the sending
of queued messages, this is for you. Add this function to
`mail-send-hook' with something like this:
(add-hook \\='mail-send-hook \\='feedmail-mail-send-hook-splitter)
Then add the functions you want called to either
`feedmail-mail-send-hook-queued' or `feedmail-mail-send-hook', as
appropriate. The distinction is that `feedmail-mail-send-hook'
will be called when you send mail from a composition
buffer (typically by typing C-c C-c), whether the message is sent
immediately or placed in the queue or drafts directory.
`feedmail-mail-send-hook-queued' is called when messages are
being sent from the queue directory, typically via a call to
`feedmail-run-the-queue'."
(feedmail-say-debug ">in-> feedmail-mail-send-hook-splitter %s" feedmail-queue-runner-is-active)
(if feedmail-queue-runner-is-active
(run-hooks 'feedmail-mail-send-hook-queued)
(run-hooks 'feedmail-mail-send-hook)))