25{
30 char file[] = "/tmp/mutt-fuzz";
31 FILE *fp = fopen(file, "wb");
32 if (!fp)
33 return -1;
34
35 fwrite(data, 1, size, fp);
36 fclose(fp);
37 fp = fopen(file, "rb");
38 if (!fp)
39 return -1;
40
46 fclose(fp);
49 return 0;
50}
void cs_free(struct ConfigSet **ptr)
Free a Config Set.
struct ConfigSet * cs_new(size_t size)
Create a new Config Set.
struct Email * email_new(void)
Create a new Email.
void email_free(struct Email **ptr)
Free an Email.
void mutt_parse_part(FILE *fp, struct Body *b)
Parse a MIME part.
struct Envelope * mutt_rfc822_read_header(FILE *fp, struct Email *e, bool user_hdrs, bool weed)
Parses an RFC822 header.
void mutt_env_free(struct Envelope **ptr)
Free an Envelope.
static int log_disp_null(time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...)
Discard log lines - Implements log_dispatcher_t -.
int log_dispatcher_t MuttLogger
void init_config(struct ConfigSet *cs)
Initialise the config system.
struct NeoMutt * neomutt_new(struct ConfigSet *cs)
Create the main NeoMutt object.
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Container for lots of config items.
The envelope/body of an email.
struct Body * body
List of MIME parts.
Container for Accounts, Notifications.