view src/lib-imap/imap-util.h @ 8740:743cc6ff3d89 HEAD

Renamed imap_args_to_str() to imap_write_args() and added a new imap_args_to_str().
author Timo Sirainen <tss@iki.fi>
date Tue, 10 Feb 2009 12:01:41 -0500
parents b7ebdade6cbd
children
line wrap: on
line source

#ifndef IMAP_UTIL_H
#define IMAP_UTIL_H

#include "seq-range-array.h"

enum mail_flags;
struct imap_arg;

/* Write flags as a space separated string. */
void imap_write_flags(string_t *dest, enum mail_flags flags,
		      const char *const *keywords);

/* Write sequence range as IMAP sequence-set */
void imap_write_seq_range(string_t *dest, const ARRAY_TYPE(seq_range) *array);
/* Write IMAP args to given string. The string is mainly useful for humans. */
void imap_write_args(string_t *dest, const struct imap_arg *args);
/* Like imap_write_args(), but return the string allocated from data stack. */
const char *imap_args_to_str(const struct imap_arg *args);

#endif