diff options
author | Bill Wohler <[email protected]> | 2006-03-16 17:38:14 +0000 |
---|---|---|
committer | Bill Wohler <[email protected]> | 2006-03-16 17:38:14 +0000 |
commit | 16b9a4760b8767e9dc679c6661f74447e3c9acfe (patch) | |
tree | 529d331b88a3663430820028edc5c20617240296 /lisp/mh-e/mh-comp.el | |
parent | 8d1ada5345b7192b2ee3cb7286b1f54738a70d8a (diff) |
(mh-send-letter): Use split-string to break up mh-send-args (closes SF
#1448604).
(mh-compose-and-send-mail): Use run-hook-with-args for
mh-compose-letter-function.
Diffstat (limited to 'lisp/mh-e/mh-comp.el')
-rw-r--r-- | lisp/mh-e/mh-comp.el | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 0cedc83719..8a7e791d6c 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -287,7 +287,7 @@ use `mh-send-prog' to tell MH-E the name." (set-buffer draft-buffer)) ; for annotation below (t (mh-exec-cmd-daemon mh-send-prog nil "-nodraftfolder" "-noverbose" - mh-send-args file-name))) + (split-string mh-send-args) file-name))) (if mh-annotate-char (mh-annotate-msg mh-sent-from-msg mh-sent-from-folder @@ -895,15 +895,7 @@ letter." (mh-logo-display) (mh-make-local-hook 'kill-buffer-hook) (add-hook 'kill-buffer-hook 'mh-tidy-draft-buffer nil t) - (if (and (boundp 'mh-compose-letter-function) - mh-compose-letter-function) - ;; run-hooks will not pass arguments. - (let ((value mh-compose-letter-function)) - (if (and (listp value) (not (eq (car value) 'lambda))) - (while value - (funcall (car value) to subject cc) - (setq value (cdr value))) - (funcall mh-compose-letter-function to subject cc))))) + (run-hook-with-args 'mh-compose-letter-function to subject cc)) (defun mh-insert-x-mailer () "Append an X-Mailer field to the header. |