Mercurial > emacs
annotate lisp/gnus/mail-parse.el @ 110605:5bd3c6bdbcb0
nnimap.el (utf7): Required.
author | Katsumi Yamaoka <yamaoka@jpl.org> |
---|---|
date | Mon, 27 Sep 2010 13:22:21 +0000 |
parents | 4b82113fd203 |
children | 417b1e4d63cd |
rev | line source |
---|---|
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
1 ;;; mail-parse.el --- Interface functions for parsing mail |
64754
fafd692d1e40
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
2 |
74547 | 3 ;; Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
106815 | 4 ;; 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
31717 | 5 |
6 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org> | |
7 ;; This file is part of GNU Emacs. | |
8 | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
9 ;; GNU Emacs is free software: you can redistribute it and/or modify |
31717 | 10 ;; it under the terms of the GNU General Public License as published by |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
11 ;; the Free Software Foundation, either version 3 of the License, or |
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
12 ;; (at your option) any later version. |
31717 | 13 |
14 ;; GNU Emacs is distributed in the hope that it will be useful, | |
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
31717 | 17 ;; GNU General Public License for more details. |
18 | |
19 ;; You should have received a copy of the GNU General Public License | |
94662
f42ef85caf91
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
93975
diff
changeset
|
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. |
31717 | 21 |
22 ;;; Commentary: | |
23 | |
24 ;; This file contains wrapper functions for a wide range of mail | |
25 ;; parsing functions. The idea is that there are low-level libraries | |
26 ;; that impement according to various specs (RFC2231, DRUMS, USEFOR), | |
27 ;; but that programmers that want to parse some header (say, | |
28 ;; Content-Type) will want to use the latest spec. | |
29 ;; | |
30 ;; So while each low-level library (rfc2231.el, for instance) decodes | |
31 ;; faithfully according to that (proposed) standard, this library is | |
32 ;; the interface library. If some later RFC supersedes RFC2231, one | |
33 ;; would just have to write a new low-level library, adjust the | |
34 ;; aliases in this library, and the users and programmers won't notice | |
35 ;; any changes. | |
36 | |
37 ;;; Code: | |
38 | |
39 (require 'mail-prsvr) | |
40 (require 'ietf-drums) | |
41 (require 'rfc2231) | |
42 (require 'rfc2047) | |
43 (require 'rfc2045) | |
44 | |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
45 (defalias 'mail-header-parse-content-type 'rfc2231-parse-qp-string) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
46 (defalias 'mail-header-parse-content-disposition 'rfc2231-parse-qp-string) |
31717 | 47 (defalias 'mail-content-type-get 'rfc2231-get-value) |
110451
4b82113fd203
Merge changes made in Gnus trunk.
Katsumi Yamaoka <yamaoka@jpl.org>
parents:
110433
diff
changeset
|
48 (defalias 'mail-header-encode-parameter 'rfc2047-encode-parameter) |
31717 | 49 |
50 (defalias 'mail-header-remove-comments 'ietf-drums-remove-comments) | |
51 (defalias 'mail-header-remove-whitespace 'ietf-drums-remove-whitespace) | |
52 (defalias 'mail-header-strip 'ietf-drums-strip) | |
53 (defalias 'mail-header-get-comment 'ietf-drums-get-comment) | |
54 (defalias 'mail-header-parse-address 'ietf-drums-parse-address) | |
55 (defalias 'mail-header-parse-addresses 'ietf-drums-parse-addresses) | |
56 (defalias 'mail-header-parse-date 'ietf-drums-parse-date) | |
57 (defalias 'mail-narrow-to-head 'ietf-drums-narrow-to-header) | |
58 (defalias 'mail-quote-string 'ietf-drums-quote-string) | |
85712
a3c27999decb
Update Gnus to No Gnus 0.7 from the Gnus CVS trunk
Miles Bader <miles@gnu.org>
parents:
78224
diff
changeset
|
59 (defalias 'mail-header-make-address 'ietf-drums-make-address) |
31717 | 60 |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
61 (defalias 'mail-header-fold-field 'rfc2047-fold-field) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
62 (defalias 'mail-header-unfold-field 'rfc2047-unfold-field) |
31717 | 63 (defalias 'mail-header-narrow-to-field 'rfc2047-narrow-to-field) |
56927
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
64 (defalias 'mail-header-field-value 'rfc2047-field-value) |
55fd4f77387a
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-523
Miles Bader <miles@gnu.org>
parents:
52401
diff
changeset
|
65 |
31717 | 66 (defalias 'mail-encode-encoded-word-region 'rfc2047-encode-region) |
67 (defalias 'mail-encode-encoded-word-buffer 'rfc2047-encode-message-header) | |
68 (defalias 'mail-encode-encoded-word-string 'rfc2047-encode-string) | |
69 (defalias 'mail-decode-encoded-word-region 'rfc2047-decode-region) | |
70 (defalias 'mail-decode-encoded-word-string 'rfc2047-decode-string) | |
72605 | 71 (defalias 'mail-decode-encoded-address-region 'rfc2047-decode-address-region) |
72 (defalias 'mail-decode-encoded-address-string 'rfc2047-decode-address-string) | |
31717 | 73 |
74 (provide 'mail-parse) | |
75 | |
76 ;;; mail-parse.el ends here |