tm 7.78.
[elisp/tm.git] / gnus / message-mime.el
1 ;;; message-mime.el --- MIME extensions for message.el
2
3 ;; Copyright (C) 1995,1996 Free Software Foundation, Inc.
4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Created: 1996/8/6
7 ;; Version:
8 ;;      $Id: message-mime.el,v 0.5 1996/08/12 09:11:34 morioka Exp $
9 ;; Keywords: news, MIME, multimedia, multilingual, encoded-word
10
11 ;; This file is not part of GNU Emacs yet.
12
13 ;; This program is free software; you can redistribute it and/or
14 ;; modify it under the terms of the GNU General Public License as
15 ;; published by the Free Software Foundation; either version 2, or (at
16 ;; your option) any later version.
17
18 ;; This program is distributed in the hope that it will be useful, but
19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of
20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
21 ;; General Public License for more details.
22
23 ;; You should have received a copy of the GNU General Public License
24 ;; along with This program.  If not, write to the Free Software
25 ;; Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
26
27 ;;; Code:
28
29 (require 'tm-edit)
30
31 (setq message-forward-start-separator
32       (concat (mime-make-tag "message" "rfc822") "\n"))
33
34 (setq message-forward-end-separator "")
35
36 (or (string-match message-included-forward-headers "Mime-Version:")
37     (setq message-included-forward-headers
38           (concat message-included-forward-headers "\\|^Mime-Version:"))
39     )
40
41 (or (string-match message-included-forward-headers "Content-Type:")
42     (setq message-included-forward-headers
43           (concat message-included-forward-headers "\\|^Content-Type:"))
44     )
45
46
47 ;;; @ for tm-edit
48 ;;;
49
50 ;; suggested by OKABE Yasuo <okabe@kudpc.kyoto-u.ac.jp>
51 ;;      1995/11/08 (c.f. [tm ML:1067])
52 (defun message-mime-insert-article (&optional message)
53   (interactive)
54   (let ((message-cite-function 'mime-editor/inserted-message-filter)
55         (message-reply-buffer gnus-original-article-buffer)
56         )
57     (message-yank-original nil)
58     ))
59
60 (set-alist 'mime-editor/message-inserter-alist
61            'message-mode (function message-mime-insert-article))
62 (set-alist 'mime-editor/split-message-sender-alist
63            'message-mode
64            (lambda ()
65              (interactive)
66              (let (message-send-hook
67                    message-sent-message-via)
68                (message-send)
69                )))
70
71
72 ;;; @ end
73 ;;;
74
75 (provide 'message-mime)
76
77 ;;; message-mime.el ends here