comparison lisp/tm/gnus-art-mime.el @ 16:0293115a14e9 r19-15b91

Import from CVS: tag r19-15b91
author cvs
date Mon, 13 Aug 2007 08:49:20 +0200
parents 4b173ad71786
children 131b0175ea99
comparison
equal deleted inserted replaced
15:ad457d5f7d04 16:0293115a14e9
1 ;;; gnus-art-mime.el --- MIME extension for article mode of Gnus 1 ;;; gnus-art-mime.el --- MIME extension for article mode of Gnus
2 2
3 ;; Copyright (C) 1995,1996 Free Software Foundation, Inc. 3 ;; Copyright (C) 1995,1996,1997 Free Software Foundation, Inc.
4 4
5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp> 5 ;; Author: MORIOKA Tomohiko <morioka@jaist.ac.jp>
6 ;; Created: 1996/8/6 6 ;; Created: 1996/8/6
7 ;; Version: 7 ;; Version:
8 ;; $Id: gnus-art-mime.el,v 1.2 1996/12/22 00:29:34 steve Exp $ 8 ;; $Id: gnus-art-mime.el,v 1.3 1997/02/02 05:06:18 steve Exp $
9 ;; Keywords: news, MIME, multimedia, multilingual, encoded-word 9 ;; Keywords: news, MIME, multimedia, multilingual, encoded-word
10 10
11 ;; This file is not part of GNU Emacs yet. 11 ;; This file is not part of GNU Emacs yet.
12 12
13 ;; This program is free software; you can redistribute it and/or 13 ;; This program is free software; you can redistribute it and/or
44 ;;; `gnus-decode-rfc1522' of Gnus works only Q-encoded iso-8859-1 44 ;;; `gnus-decode-rfc1522' of Gnus works only Q-encoded iso-8859-1
45 ;;; encoded-words. In addition, it does not apply decoding rule of 45 ;;; encoded-words. In addition, it does not apply decoding rule of
46 ;;; RFC 1522 and it does not do unfolding. So gnus-mime defines own 46 ;;; RFC 1522 and it does not do unfolding. So gnus-mime defines own
47 ;;; function using tm-ew-d. 47 ;;; function using tm-ew-d.
48 48
49 (defun gnus-decode-rfc1522 () 49 (defun gnus-decode-encoded-word ()
50 (goto-char (point-min)) 50 (goto-char (point-min))
51 (if (re-search-forward "^[0-9]+\t" nil t) 51 (if (re-search-forward "^[0-9]+\t" nil t)
52 (progn 52 (progn
53 (goto-char (point-min)) 53 (goto-char (point-min))
54 ;; for XOVER 54 ;; for XOVER
60 'unfolding 'must-unfold) 60 'unfolding 'must-unfold)
61 ) 61 )
62 )) 62 ))
63 (mime-eword/decode-region (point-min)(point-max) t) 63 (mime-eword/decode-region (point-min)(point-max) t)
64 )) 64 ))
65
66 (defalias 'gnus-decode-rfc1522 'gnus-decode-encoded-word)
67
68 ;; In addition, latest RFC about encoded-word is RFC 2047. (^_^;
65 69
66 70
67 ;;; @ article filter 71 ;;; @ article filter
68 ;;; 72 ;;;
69 73