efa710706c982ac39c3b1b18e3bf811e7f5f3d82
[elisp/semi.git] / mail-mime-setup.el
1 ;;; mail-mime-setup.el --- setup file for mail-mode.
2
3 ;; Copyright (C) 1994,1995,1996,1997 Free Software Foundation, Inc.
4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Version:
7 ;;      $Id: mail-mime-setup.el,v 0.0 1997-03-14 08:47:06 morioka Exp $
8 ;; Keywords: mail-mode, MIME, multimedia, multilingual, encoded-word
9
10 ;; This file is part of SEMI (SEMI is Emacs MIME Interfaces).
11
12 ;; This program is free software; you can redistribute it and/or
13 ;; modify it under the terms of the GNU General Public License as
14 ;; published by the Free Software Foundation; either version 2, or (at
15 ;; your option) any later version.
16
17 ;; This program is distributed in the hope that it will be useful, but
18 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20 ;; General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING.  If not, write to the
24 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
25 ;; Boston, MA 02111-1307, USA.
26
27 ;;; Code:
28
29 (require 'semi-setup)
30
31
32 (autoload 'turn-on-mime-edit "mime-edit"
33   "Unconditionally turn on MIME-Edit minor mode." t)
34
35 (autoload 'eword-decode-header "eword-decode"
36   "Decode MIME encoded-words in header fields." t)
37
38
39 ;;; @ for mail-mode, RMAIL and VM
40 ;;;
41
42 (add-hook 'mail-setup-hook 'eword-decode-header)
43 (add-hook 'mail-setup-hook 'turn-on-mime-edit 'append)
44 (add-hook 'mail-send-hook  'mime-edit-maybe-translate)
45 (set-alist 'mime-edit-split-message-sender-alist
46            'mail-mode (function
47                        (lambda ()
48                          (interactive)
49                          (funcall send-mail-function)
50                          )))
51
52
53 ;;; @ end
54 ;;;
55
56 (provide 'mail-mime-setup)
57
58 ;;; mail-mime-setup.el ends here