tm 7.80.
[elisp/tm.git] / mime-setup.el.in
index ee120d3..e8d473e 100644 (file)
@@ -1,32 +1,30 @@
-;;;
 ;;; mime-setup.el --- setup file for tm viewer and composer.
-;;;
-;;; Copyright (C) 1995 Free Software Foundation, Inc.
-;;; Copyright (C) 1994 .. 1996 MORIOKA Tomohiko
-;;;
-;;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;;; Maintainer: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
-;;;         and MORIOKA Tomohiko <morioka@jaist.ac.jp>
-;;; Version:
-;;;    $Id: mime-setup.el.in,v 7.22 1996/08/07 16:42:47 morioka Exp $
-;;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
-;;;
-;;; This file is part of tm (Tools for MIME).
-;;;
-;;; This program is free software; you can redistribute it and/or
-;;; modify it under the terms of the GNU General Public License as
-;;; published by the Free Software Foundation; either version 2, or
-;;; (at your option) any later version.
-;;;
-;;; This program is distributed in the hope that it will be useful,
-;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-;;; General Public License for more details.
-;;;
-;;; You should have received a copy of the GNU General Public License
-;;; along with This program.  If not, write to the Free Software
-;;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
-;;;
+
+;; Copyright (C) 1995,1996 Free Software Foundation, Inc.
+
+;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
+;; Maintainer: Shuhei KOBAYASHI <shuhei-k@jaist.ac.jp>
+;; Version:
+;;     $Id: mime-setup.el.in,v 7.25 1996/08/18 17:03:42 morioka Exp $
+;; Keywords: mail, news, MIME, multimedia, multilingual, encoded-word
+
+;; This file is part of tm (Tools for MIME).
+
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation; either version 2, or (at
+;; your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+;; 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,
+;; Boston, MA 02111-1307, USA.
+
 ;;; Code:
 
 (require 'tm-setup)
 ;;; @ for message (September Gnus 0.58 or later)
 ;;;
 
-(add-hook 'message-setup-hook 'mime/editor-mode)
-(add-hook 'message-send-hook  'mime-editor/maybe-translate)
-(add-hook 'message-header-hook 'mime/encode-message-header)
-
-(call-after-loaded
- 'tm-edit
- (function
-  (lambda ()
-    (setq message-forward-start-separator
-         (concat (mime-make-tag "message" "rfc822") "\n"))
-    )))
-(setq message-forward-end-separator "")
-
-(call-after-loaded
- 'message
- (function
-  (lambda ()
-    (require 'message-mime)
-    )))
+(or (boundp 'epoch::version)
+    (progn
+      (add-hook 'message-setup-hook 'mime/editor-mode)
+      (add-hook 'message-send-hook  'mime-editor/maybe-translate)
+      (add-hook 'message-header-hook 'mime/encode-message-header)
+      
+      (call-after-loaded
+       'message
+       (function
+       (lambda ()
+         (require 'message-mime)
+         )))
+      ))
 
 
 ;;; @ end