MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.116.170.100
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /usr/share/emacs/24.3/lisp/mail/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //usr/share/emacs/24.3/lisp/mail/mailheader.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:11:43 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/mail/mailheader.el
;;; in Emacs version 24.3.1
;;; with all optimizations.

;;; This file uses dynamic docstrings, first added in Emacs 19.29.

;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


#@210 Extract headers from current buffer after point.
Returns a header alist, where each element is a cons cell (name . value),
where NAME is a symbol, and VALUE is the string value of the header having
that name.
(defalias 'mail-header-extract #[nil "\306`\306\211`\211\203n\307\306w\310V\203ng\311U\203n`\211\203n\306u\210\312\306w\310V\203n\313	{\227!`\306\210`{C\306u\210\312\306w\310V\203S`\306\210`{\fB\202<\fA\203c
\314\315\f\237\316#B\202g
\f@BB*\202\nb\210\237,\207" [end start top message-headers value header nil "^- :" 0 58 " 	" intern mapconcat identity " "] 5 (#$ . 559)])
#@230 Extract headers from current buffer after point, without properties.
Returns a header alist, where each element is a cons cell (name . value),
where NAME is a symbol, and VALUE is the string value of the header having
that name.
(defalias 'mail-header-extract-no-properties #[nil "\300\301\302 \"\207" [mapcar #[(elt) "\301\302AG\303A$\210\207" [elt set-text-properties 0 nil] 5] mail-header-extract] 3 (#$ . 1175)])
#@335 Apply PARSING-RULES to HEADERS.
PARSING-RULES is an alist whose keys are header names (symbols) and whose
value is a parsing function.  The function takes one argument, a string,
and return a list of values, which will destructively replace the value
associated with the key in HEADERS, after being prepended with the original
value.
(defalias 'mail-header-parse #[(parsing-rules headers) "\306\211\203E\n@\211@\236\211\203=\fA:\203.\f\211A	A\f\211A@)!\241\210)\202=\f\211\fA	A\fA!B\241\210))\nA\211\204*\207" [parsing-rules rule --dolist-tail-- headers header #1=#:v nil x #2=#:v] 5 (#$ . 1602)])
#@353 Return the value associated with header HEADER in HEADER-ALIST.
If the value is a string, it is the original value of the header.  If the
value is a list, its first element is the original value of the header,
with any subsequent elements being the result of parsing the value.
If HEADER-ALIST is nil, the dynamically bound variable `headers' is used.
(defalias 'mail-header #[(header &optional header-alist) "	\206\n\236A\207" [header header-alist headers] 2 (#$ . 2226)])
(byte-code "\300\301\302\303#\210\300\301\304\305#\207" [put mail-header gv-expander #[(do &rest args) "\302\303\304	$\207" [do args gv--defsetter mail-header #[(value header &optional header-alist) "\303	\nF\207" [header value header-alist mail-header-set] 4]] 5] byte-optimizer byte-compile-inline-expand] 4)
#@191 Set the value associated with header HEADER to VALUE in HEADER-ALIST.
HEADER-ALIST defaults to the dynamically bound variable `headers' if nil.
See `mail-header' for the semantics of VALUE.
(defalias 'mail-header-set #[(header value &optional header-alist) "\206	\n\236\211\203\f\211\241\210)\202!\nBC\244\210*\207" [header-alist headers alist header entry #1=#:v value] 4 (#$ . 3023)])
#@485 Return a new header alist with MERGE-RULES applied to HEADERS.
MERGE-RULES is an alist whose keys are header names (symbols) and whose
values are forms to evaluate, the results of which are the new headers.  It
should be a string or a list of string.  The first element may be nil to
denote that the formatting functions must use the remaining elements, or
skip the header altogether if there are no other elements.
  The macro `mail-header' can be used to access headers in HEADERS.
(defalias 'mail-header-merge #[(merge-rules headers) "\301\302\"\207" [merge-rules mapcar #[(rule) "@\301A!B\207" [rule eval] 3]] 3 (#$ . 3434)])
(defvar mail-header-format-function #[(header value) "\302\303!!\304	:\203	@\202	\305\261\207" [header value capitalize symbol-name ": " "\n"] 4 "Function to format headers without a specified formatting function."])
#@964 Use FORMAT-RULES to format HEADERS and insert into current buffer.
HEADERS should be an alist of the form (HEADER . VALUE),
where HEADER is a header field name (a symbol or a string),
and VALUE is the contents for that header field.

FORMAT-RULES is an alist of elements (HEADER . FUNCTION) Here HEADER
is a header field name (a symbol), and FUNCTION is how to format that
header field, if it appears in HEADERS.  Each FUNCTION should take two
arguments: the header symbol, and the value of that header.  The value
returned by FUNCTION is inserted in the buffer unless it is nil.

If the function for a header field is nil, or if no function is
specified for a particular header field, the default action is to
insert the value of the header, unless it is nil.

The headers are inserted in the order of the FORMAT-RULES.
A key of t in FORMAT-RULES represents any otherwise unmentioned headers.
A key of nil has as its value a list of defaulted headers to ignore.
(defalias 'mail-header-format #[(format-rules headers) "\306\307\236A\310\311\"\"\307\211\203\237@\211@\211\307\211
\206$
\236A*\f;\2032\312\f!\f\203\227\f\313=\203|
\307\211\203x@\211@	>\204q@A\nA\203i\nA\f\"\210\202p\f\"\210*A\211\204F*\202\227\203\227\nA\203\220\nA\f\"\210\202\227\f\"\210*A\211\204*\314c)\207" [format-rules ignore rule --dolist-tail-- header header-alist append nil mapcar car intern t "\n" headers value defaulted mail-header-format-function] 6 (#$ . 4297)])
(provide 'mailheader)

MMCT - 2023