rfc2822_new_header

March 26, 2020 Contributors

Name

rfc2822_new_header — Create a new header

Synopsis

#include "rfc2822_parser.h"

| rfc2822_field * **rfc2822_new_header** ( | name, |   |
|   | str); |   |

const char * <var class="pdparam">name</var>;
const char * <var class="pdparam">str</var>;

Description

Create a new header. Headers should be removed using rfc2822_remove_header.

Parameters

name

The name of the new header.

str

The content of the header.

Return Values

This function returns a rfc2822_field.

Threading

It is legal to call this function in any thread.

See Also