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.
(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)
(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