Next: Message body functions, Up: Message functions [Contents][Index]
Return the size, in bytes of the headers of message nmsg. See the
note to the message_size
, above.
Return number of lines occupied by headers in message nmsg.
Return number of headers in message nmsg.
If name is supplied, count only headers with that name.
Return value of header name from the message nmsg. If the message contains several headers with the same name, optional parameter idx may be used to select one of them. Headers are numbered from ‘1’.
If no matching header is not found, the not_found
exception is
raised. If another error occurs, the failure
exception is
raised.
The returned string is a verbatim copy of the message contents (except
for eventual CR-LF -> LF translation, see above).
You might need to apply the unfold
function to it (see unfold).
Returns the name of the nth header in message nmsg. If
there is no such header, e_range
exception is raised.
Returns the value of the nth header in message nmsg. If
there is no such header, e_range
exception is raised.
Return true
if message nmsg contains header with the
given name. If there are several headers with the same name,
optional parameter idx may be used to select one of them.
Next: Message body functions, Up: Message functions [Contents][Index]