comparison lisp/mail/mailheader.el @ 15580:1808d2672d00

(require 'cl) is only necessary when compiling.
author Erik Naggum <erik@naggum.no>
date Tue, 02 Jul 1996 00:01:05 +0000
parents 47d9b7a1dee3
children 011361a15bac
comparison
equal deleted inserted replaced
15579:690a439bcc0e 15580:1808d2672d00
1 ;;; mail-header.el --- Mail header parsing, merging, formatting 1 ;;; mailheader.el --- Mail header parsing, merging, formatting
2 2
3 ;; Copyright (C) 1996 by Free Software Foundation, Inc. 3 ;; Copyright (C) 1996 by Free Software Foundation, Inc.
4 4
5 ;; Author: Erik Naggum <erik@arcana.naggum.no> 5 ;; Author: Erik Naggum <erik@arcana.naggum.no>
6 ;; Keywords: tools, mail, news 6 ;; Keywords: tools, mail, news
23 ;; Boston, MA 02111-1307, USA. 23 ;; Boston, MA 02111-1307, USA.
24 24
25 ;;; Commentary: 25 ;;; Commentary:
26 26
27 ;; This package provides an abstraction to RFC822-style messages, used in 27 ;; This package provides an abstraction to RFC822-style messages, used in
28 ;; mail news, and some other systems. The simple syntactic rules for such 28 ;; mail, news, and some other systems. The simple syntactic rules for such
29 ;; headers, such as quoting and line folding, are routinely reimplemented 29 ;; headers, such as quoting and line folding, are routinely reimplemented
30 ;; in many individual packages. This package removes the need for this 30 ;; in many individual packages. This package removes the need for this
31 ;; redundancy by representing message headers as association lists, 31 ;; redundancy by representing message headers as association lists,
32 ;; offering functions to extract the set of headers from a message, to 32 ;; offering functions to extract the set of headers from a message, to
33 ;; parse individual headers, to merge sets of headers, and to format a set 33 ;; parse individual headers, to merge sets of headers, and to format a set
44 ;; the other set will be evaluated with the symbols in the first set of 44 ;; the other set will be evaluated with the symbols in the first set of
45 ;; headers bound to their respective values. 45 ;; headers bound to their respective values.
46 46
47 ;;; Code: 47 ;;; Code:
48 48
49 (require 'cl) 49 (eval-when-compile
50 (require 'cl))
50 51
51 ;; Make the byte-compiler shut up. 52 ;; Make the byte-compiler shut up.
52 (defvar headers) 53 (defvar headers)
53 54
54 (defun mail-header-extract () 55 (defun mail-header-extract ()
177 (funcall mail-header-format-function header value)))))) 178 (funcall mail-header-format-function header value))))))
178 (insert "\n"))) 179 (insert "\n")))
179 180
180 (provide 'mailheader) 181 (provide 'mailheader)
181 182
182 ;;; mail-header.el ends here 183 ;;; mailheader.el ends here