Teaching an old dog new tricks
No Matches
Go to the documentation of this file.
26#include "config.h"
27#include <stdbool.h>
28#include <stdio.h>
29#include "mime.h"
31struct Body;
32struct Buffer;
33struct Email;
34struct Envelope;
36void mutt_auto_subscribe (const char *mailto);
37int mutt_check_encoding (const char *c);
38enum ContentType mutt_check_mime_type (const char *s);
39char * mutt_extract_message_id (const char *s, size_t *len);
40bool mutt_is_message_type (int type, const char *subtype);
41bool mutt_matches_ignore (const char *s);
42void mutt_parse_content_type (const char *s, struct Body *ct);
43bool mutt_parse_mailto (struct Envelope *env, char **body, const char *src);
44struct Body * mutt_parse_multipart (FILE *fp, const char *boundary, LOFF_T end_off, bool digest);
45void mutt_parse_part (FILE *fp, struct Body *b);
46struct Body * mutt_read_mime_header (FILE *fp, bool digest);
47int 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);
48struct Body * mutt_rfc822_parse_message(FILE *fp, struct Body *parent);
49struct Envelope *mutt_rfc822_read_header (FILE *fp, struct Email *e, bool user_hdrs, bool weed);
50size_t mutt_rfc822_read_line (FILE *fp, struct Buffer *out);
52#endif /* MUTT_EMAIL_PARSE_H */
Constants and macros for managing MIME encoding.
Definition: mime.h:30
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.
Definition: parse.c:645
void mutt_parse_part(FILE *fp, struct Body *b)
Parse a MIME part.
Definition: parse.c:1779
void mutt_auto_subscribe(const char *mailto)
Check if user is subscribed to mailing list.
Definition: parse.c:68
struct Body * mutt_read_mime_header(FILE *fp, bool digest)
Parse a MIME header.
Definition: parse.c:1344
void mutt_parse_content_type(const char *s, struct Body *ct)
Parse a content type.
Definition: parse.c:426
bool mutt_matches_ignore(const char *s)
Does the string match the ignore list.
Definition: parse.c:315
enum ContentType mutt_check_mime_type(const char *s)
Check a MIME type string.
Definition: parse.c:325
struct Envelope * mutt_rfc822_read_header(FILE *fp, struct Email *e, bool user_hdrs, bool weed)
Parses an RFC822 header.
Definition: parse.c:1170
bool mutt_parse_mailto(struct Envelope *env, char **body, const char *src)
Parse a mailto:// url.
Definition: parse.c:1713
int mutt_check_encoding(const char *c)
Check the encoding type.
Definition: parse.c:398
size_t mutt_rfc822_read_line(FILE *fp, struct Buffer *out)
Read a header line from a file.
Definition: parse.c:1090
struct Body * mutt_parse_multipart(FILE *fp, const char *boundary, LOFF_T end_off, bool digest)
Parse a multipart structure.
Definition: parse.c:1810
char * mutt_extract_message_id(const char *s, size_t *len)
Find a message-id.
Definition: parse.c:362
struct Body * mutt_rfc822_parse_message(FILE *fp, struct Body *parent)
Parse a Message/RFC822 body.
Definition: parse.c:1794
bool mutt_is_message_type(int type, const char *subtype)
Determine if a mime type matches a message or not.
Definition: parse.c:1482
The body of an email.
Definition: body.h:36
String manipulation buffer.
Definition: buffer.h:34
The envelope/body of an email.
Definition: email.h:37
The header of an Email.
Definition: envelope.h:57