Variable: feedmail-last-chance-hook

feedmail-last-chance-hook is a customizable variable defined in feedmail.el.gz.

Value

nil

Documentation

User's last opportunity to modify the message on its way out.

When this hook runs, the current buffer is already the appropriate buffer. It has already had all the header prepping from the standard package. The next step after running the hook will be to save the message via Fcc: processing. The hook might be interested in these:
(1) feedmail-prepped-text-buffer contains the header and body of the
message, ready to go; (2) feedmail-address-list contains a list of simplified recipients of addresses which are to be given to the subprocess (the hook may change the list); (3) feedmail-error-buffer is an empty buffer intended to soak up errors for display to the user. If the hook allows interactive activity, the user should not send more mail while in the hook since some of the internal buffers will be reused and things will get confused. It's not necessary to arrange for the undoing of any changes you make to the buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/mail/feedmail.el.gz
(defcustom feedmail-last-chance-hook nil
  "User's last opportunity to modify the message on its way out.
When this hook runs, the current buffer is already the appropriate
buffer.  It has already had all the header prepping from the standard
package.  The next step after running the hook will be to save the
message via Fcc: processing.  The hook might be interested in these:
\(1) `feedmail-prepped-text-buffer' contains the header and body of the
message, ready to go; (2) `feedmail-address-list' contains a list
of simplified recipients of addresses which are to be given to the
subprocess (the hook may change the list); (3) `feedmail-error-buffer'
is an empty buffer intended to soak up errors for display to the user.
If the hook allows interactive activity, the user should not send more
mail while in the hook since some of the internal buffers will be
reused and things will get confused.  It's not necessary to
arrange for the undoing of any changes you make to the buffer."
  :group 'feedmail-misc
  :type 'hook
  )