Function: message-generate-unsubscribed-mail-followup-to
message-generate-unsubscribed-mail-followup-to is an interactive and
byte-compiled function defined in message.el.gz.
Signature
(message-generate-unsubscribed-mail-followup-to &optional INCLUDE-CC)
Documentation
Insert a reasonable MFT header in a post to an unsubscribed list.
When making original posts to a mailing list you are not subscribed to,
you have to type in a MFT header by hand. The contents, usually, are
the addresses of the list and your own address. This function inserts
such a header automatically. It fetches the contents of the To: header
in the current mail buffer, and appends the current user-mail-address.
If the optional argument INCLUDE-CC is non-nil, the addresses in the Cc: header are also put into the MFT.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/message.el.gz
(defun message-generate-unsubscribed-mail-followup-to (&optional include-cc)
"Insert a reasonable MFT header in a post to an unsubscribed list.
When making original posts to a mailing list you are not subscribed to,
you have to type in a MFT header by hand. The contents, usually, are
the addresses of the list and your own address. This function inserts
such a header automatically. It fetches the contents of the To: header
in the current mail buffer, and appends the current `user-mail-address'.
If the optional argument INCLUDE-CC is non-nil, the addresses in the
Cc: header are also put into the MFT."
(interactive "P" message-mode)
(let* (cc tos)
(save-restriction
(message-narrow-to-headers)
(message-remove-header "Mail-Followup-To")
(setq cc (and include-cc (message-fetch-field "Cc")))
(setq tos (if cc
(concat (message-fetch-field "To") "," cc)
(message-fetch-field "To"))))
(message-goto-mail-followup-to)
(insert (concat tos ", " user-mail-address))))