rfc2822_address_parse

March 26, 2020

Name

rfc2822_address_parse — Parse an rfc2822 address

Synopsis

#include "sieve/address.h"

| int **rfc2822_address_parse** ( | ctx, |   |
|   | hdr, |   |
|   | hdrlen); |   |

rfc2822_address_context * <var class="pdparam">ctx</var>;
const char * <var class="pdparam">hdr</var>;
int <var class="pdparam">hdrlen</var>;

Description

Parse an rfc2822 address.

Parameters

ctx

See rfc2822_address_context.

hdr

The header.

addrlen

The length of the address.

Return Values

On success this function returns the number of addresses. On failure this function returns 0.

Threading

It is legal to call this function in any thread.

See Also

rfc2822_address_destroy