23{
29 char file[] = "/tmp/mutt-fuzz";
30 FILE *fp = fopen(file, "wb");
31 if (!fp)
32 return -1;
33
34 fwrite(data, 1, size, fp);
35 fclose(fp);
36 fp = fopen(file, "rb");
37 if (!fp)
38 return -1;
39
45 fclose(fp);
48 return 0;
49}
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.
bool OptNoCurses
(pseudo) when sending in batch mode
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 -.
void init_config(struct ConfigSet *cs)
Initialise the config system.
int(*) log_dispatcher_ MuttLogger)
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.