24#ifndef MUTT_EMAIL_PARSE_H
25#define MUTT_EMAIL_PARSE_H
int mutt_rfc822_parse_line(struct Envelope *env, struct Email *e, const char *name, size_t name_len, const char *body, bool user_hdrs, bool weed, bool do_2047)
Parse an email header.
struct Body * mutt_rfc822_parse_message(FILE *fp, struct Body *b)
Parse a Message/RFC822 body.
void mutt_parse_part(FILE *fp, struct Body *b)
Parse a MIME part.
void mutt_parse_content_type(const char *s, struct Body *b)
Parse a content type.
void mutt_auto_subscribe(const char *mailto)
Check if user is subscribed to mailing list.
struct Body * mutt_read_mime_header(FILE *fp, bool digest)
Parse a MIME header.
bool mutt_matches_ignore(const char *s)
Does the string match the ignore list.
enum ContentType mutt_check_mime_type(const char *s)
Check a MIME type string.
struct Envelope * mutt_rfc822_read_header(FILE *fp, struct Email *e, bool user_hdrs, bool weed)
Parses an RFC822 header.
bool mutt_parse_mailto(struct Envelope *env, char **body, const char *src)
Parse a mailto:// url.
int mutt_check_encoding(const char *c)
Check the encoding type.
size_t mutt_rfc822_read_line(FILE *fp, struct Buffer *out)
Read a header line from a file.
struct Body * mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, bool digest)
Parse a multipart structure.
void mutt_filter_commandline_header_tag(char *header)
Sanitise characters in a header tag.
char * mutt_extract_message_id(const char *s, size_t *len)
Find a message-id.
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
void mutt_filter_commandline_header_value(char *header)
Sanitise characters in a header value.
Constants and macros for managing MIME encoding.
String manipulation buffer.
The envelope/body of an email.