;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation, Inc.
;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
;; This file is part of tm (Tools for MIME).
;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
;; This file is part of tm (Tools for MIME).
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
-;; along with This program; see the file COPYING. If not, write to
-;; the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+;; along with GNU Emacs; see the file COPYING. If not, write to the
+;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
(set-atype 'mime/content-decoding-condition
'((type . "message/external-body")
("access-type" . "anon-ftp")
(set-atype 'mime/content-decoding-condition
'((type . "message/external-body")
("access-type" . "anon-ftp")
-(or running-xemacs-with-mule
- (call-after-loaded 'rmail
- (function
- (lambda ()
- (require 'tm-rmail)
- ))
- 'rmail-mode-hook)
- )
+(defun tm-setup/load-rmail ()
+ (or (and (boundp 'rmail-support-mime)
+ rmail-support-mime)
+ (require 'tm-rmail)
+ )
+ (remove-hook 'rmail-mode-hook 'tm-setup/load-rmail)
+ )
+
+(call-after-loaded 'rmail 'tm-setup/load-rmail 'rmail-mode-hook)