NeoMutt  2024-04-25-89-g194907
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#include "expando/lib.h"
48// IWYU pragma: begin_keep
49#include "attach.h"
50#include "attachments.h"
51#include "mutt_attach.h"
52#include "recvattach.h"
53// IWYU pragma: end_keep
54
55struct Body;
56struct Buffer;
57
58extern const struct ExpandoRenderData AttachRenderData[];
59
60int attach_body_count (struct Body *b, bool recurse);
61bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
62struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
63bool attach_body_previous(struct Body *start, struct Body *body, 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 *b, bool recurse)
Count bodies.
Definition: lib.c:42
const struct ExpandoRenderData AttachRenderData[]
Callbacks for Attachment Expandos.
Definition: dlg_attach.c:621
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.
Parse Expando string.
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