with an arg `method'.
(message-maybe-split-and-send-news): Accept an arg `method'.
* rfc1843.el: Defvar `gnus-decode-encoded-word-function'.
* mm-uu.el: Require `gnus-mailcap'.
* mm-decode.el: Require `gnus-mailcap' instead of `mailcap'.
* mm-encode.el: Ditto.
* gnus-mailcap.el: Provide `gnus-mailcap' instead of `mailcap'.
(not (file-directory-p file)))
(throw 'found file))))))))
-(provide 'mailcap)
+(provide 'gnus-mailcap)
;;; mailcap.el ends here
(error "Sending failed; " result)))
(error "Sending failed; no recipients"))))
-(defsubst message-maybe-split-and-send-news ()
+(defsubst message-maybe-split-and-send-news (method)
"Split a message if necessary, and send it via news.
Returns nil if sending succeeded, returns t if sending failed.
This sub function is for exclusive use of `message-send-news'."
;; require one newline at the end.
(or (= (preceding-char) ?\n)
(insert ?\n))
- (setq result (message-maybe-split-and-send-news)))
+ (setq result (message-maybe-split-and-send-news method)))
(kill-buffer tembuf))
(set-buffer message-edit-buffer)
(if result
;;; Code:
(require 'mail-parse)
-(require 'mailcap)
+(require 'gnus-mailcap)
(require 'mm-bodies)
;;; Convenience macros.
;;; Code:
(require 'mail-parse)
-(require 'mailcap)
+(require 'gnus-mailcap)
(defvar mm-content-transfer-encoding-defaults
'(("text/.*" quoted-printable)
;; Copyright (c) 1998 by Shenghuo Zhu <zsh@cs.rochester.edu>
;; Author: Shenghuo Zhu <zsh@cs.rochester.edu>
-;; $Revision: 1.1.2.2 $
+;; $Revision: 1.1.2.4 $
;; Keywords: news postscript uudecode binhex shar
;; This file is not part of GNU Emacs, but the same permissions
;;; Code:
+(require 'gnus-mailcap)
+
(eval-and-compile
(autoload 'binhex-decode-region "binhex")
(autoload 'binhex-decode-region-external "binhex")
;; Copyright (c) 1998 by Shenghuo Zhu <zsh@cs.rochester.edu>
;; Author: Shenghuo Zhu <zsh@cs.rochester.edu>
-;; $Revision: 1.1.2.3 $
+;; $Revision: 1.1.2.5 $
;; Keywords: news HZ
;; Time-stamp: <Tue Oct 6 23:48:49 EDT 1998 zsh>
(defvar rfc1843-old-gnus-decode-header-function nil)
(defvar gnus-decode-header-methods)
(defvar gnus-decode-encoded-word-methods)
+(defvar gnus-decode-encoded-word-function)
(defun rfc1843-gnus-setup ()
"Setup HZ decoding for Gnus."