This function can be used in eom
handlers only. It returns a
message descriptor referring to the current message. See Message functions, for a description of functions for accessing messages.
The functions below access the headers from the current message. They
are available in the following handlers: eoh
, body
, eom
.
Return number of headers in the current message. If name is specified, return number of headers that have this name.
current_header_count() ⇒ 6 current_header_count("Subject") ⇒ 1
Return the name of the nth header. The index n is 1-based.
Return the value of the nth header. The index n is 1-based.
Return the value of the named header, e.g.:
set s current_header("Subject")
Optional second argument specifies the header instance, if there are more than 1 header of the same name, e.g.:
set s current_header("Received", 2)
Header indices are 1-based.
All current_header function raise the e_not_found
exception if the
requested header was not found.
This document was generated on August 13, 2022 using makeinfo.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.