Function: mh-identity-field-handler

mh-identity-field-handler is a byte-compiled function defined in mh-identity.el.gz.

Signature

(mh-identity-field-handler FIELD)

Documentation

Return the handler for header FIELD or nil if none set.

The field name is downcased. If the FIELD begins with the character ":", then it must have a special handler defined in mh-identity-handlers, else return an error since it is not a valid header field.

Source Code

;; Defined in /usr/src/emacs/lisp/mh-e/mh-identity.el.gz
(defun mh-identity-field-handler (field)
  "Return the handler for header FIELD or nil if none set.
The field name is downcased. If the FIELD begins with the
character \":\", then it must have a special handler defined in
`mh-identity-handlers', else return an error since it is not a
valid header field."
  (or (cdr (assoc-string field mh-identity-handlers t))
      (and (eq (aref field 0) ?:)
           (error "Field %s not found in `mh-identity-handlers'" field))
      (cdr (assoc ":default" mh-identity-handlers))
      'mh-identity-handler-default))