NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1
41#ifndef MUTT_ATTACH_LIB_H
42#define MUTT_ATTACH_LIB_H
43
44#include <stdbool.h>
45#include <stdint.h>
46#include "core/lib.h"
47// IWYU pragma: begin_exports
48#include "attach.h"
49#include "attachments.h"
50#include "mutt_attach.h"
51#include "recvattach.h"
52// IWYU pragma: end_exports
53
54struct Body;
55struct Buffer;
56
57int attach_body_count (struct Body *body, bool recurse);
58bool attach_body_parent (struct Body *start, struct Body *start_parent,
59 struct Body *body, struct Body **body_parent);
60struct Body *attach_body_ancestor(struct Body *start, struct Body *body,
61 const char *subtype);
62bool attach_body_previous(struct Body *start, struct Body *body,
63 struct Body **previous);
64
65enum CommandResult parse_attachments (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
66enum CommandResult parse_unattachments(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
67
68#endif /* MUTT_ATTACH_LIB_H */
bool attach_body_parent(struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent)
Find the parent of a body.
Definition: lib.c:71
int attach_body_count(struct Body *body, bool recurse)
Count bodies.
Definition: lib.c:42
struct Body * attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype)
Find the ancestor of a body with specified subtype.
Definition: lib.c:116
bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous)
Find the previous body of a body.
Definition: lib.c:142
Handling of email attachments.
Miscellaneous email parsing routines.
CommandResult
Error codes for command_t parse functions.
Definition: command.h:36
Convenience wrapper for the core headers.
enum CommandResult parse_unattachments(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unattachments' command - Implements Command::parse() -.
Definition: attachments.c:534
enum CommandResult parse_attachments(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'attachments' command - Implements Command::parse() -.
Definition: attachments.c:475
Handling of email attachments.
Routines for managing attachments.
The body of an email.
Definition: body.h:36
char * subtype
content-type subtype
Definition: body.h:60
String manipulation buffer.
Definition: buffer.h:34