Commit 7bd9b9d8 authored by Lars Magne Ingebrigtsen's avatar Lars Magne Ingebrigtsen
Browse files

(mailclient-send-it): Bind `browse-url-mailto-function' to nil to

use the external browser function to send the mail.
parent 876d1684
2010-11-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
 
* mail/mailclient.el (browse-url): Require.
(mailclient-send-it): Bind `browse-url-mailto-function' to nil to
use the external browser function to send the mail (bug#7469).
* net/browse-url.el (browse-url-browser-function): Revert the
default back to the previous value, since the new value broke
mailclient.el.
......
......@@ -46,6 +46,7 @@
(require 'sendmail) ;; for mail-sendmail-undelimit-header
(require 'mail-utils) ;; for mail-fetch-field
(require 'browse-url)
(defcustom mailclient-place-body-on-clipboard-flag
(fboundp 'w32-set-clipboard-data)
......@@ -122,7 +123,10 @@ The mail client is taken to be the handler of mailto URLs."
(while (and (re-search-forward "\n\n\n*" delimline t)
(< (point) delimline))
(replace-match "\n"))
(let ((case-fold-search t))
(let ((case-fold-search t)
;; Use the external browser function to send the
;; message.
(browse-url-mailto-function nil))
;; initialize limiter
(setq mailclient-delim-static "?")
;; construct and call up mailto URL
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment