NeoMutt  2024-02-01-23-g345d7b
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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_keep
48#include "attach.h"
49#include "attachments.h"
50#include "mutt_attach.h"
51#include "recvattach.h"
52// IWYU pragma: end_keep
53
54struct Body;
55struct Buffer;
56
57int attach_body_count (struct Body *b, bool recurse);
58bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
59struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
60bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous);
61
62enum CommandResult parse_attachments (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
63enum CommandResult parse_unattachments(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
64
65#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 *b, 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:535
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:476
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:36