SL Baur <steve(a)bsd2.kbnes.nec.co.jp> writes:
This corrects a documentation typo and adds an autoload cookie.
Shouldn't you be using mail-header-separator instead of hardcoding in
--text...? If someone has customized that variable, message-send-and-exit
will fail.
And shouldn't you use message-mail instead of building the buffer? I am
sure that people who would use this would want their standard FCC/GCC
settings taken into account.
(defun divorce (addr)
"Perform a legal Islamic divorce."
(interactive "sAddress: ")
(require 'message)
(save-excursion
(save-window-excursion
(message-mail addr "divorce")
(message-goto-body)
;; The magic words -- I divorce thee, I divorce thee, I divorce thee
(insert "Talaq, talaq, talaq.\n")
(message-send-and-exit t))))
Anybody else having flashbacks to Steve Martin and the 'I spit on thee'
divorce?
-bp
--
Ceterum censeo vi esse delendam