view src/lib-imap/imap-envelope.h @ 21633:3a88d30ad000

lib-imap: imap-bodystructure: Moved message_part_data header parsing and query functions to their own module in lib-mail. Moved code from imap-bodystructure and imap-envelope.
author Stephan Bosch <stephan.bosch@dovecot.fi>
date Sun, 23 Oct 2016 20:05:33 +0200
parents 65907879d3d5
children e2071511ef6d
line wrap: on
line source

#ifndef IMAP_ENVELOPE_H
#define IMAP_ENVELOPE_H

struct imap_arg;
struct message_part_envelope_data;

extern const char *imap_envelope_headers[];

/* Write envelope to given string */
void imap_envelope_write_part_data(struct message_part_envelope_data *data,
				   string_t *str);

/* Parse envelope from arguments */
bool imap_envelope_parse_args(const struct imap_arg *args,
	pool_t pool, struct message_part_envelope_data **envlp_r,
	const char **error_r);

#endif