NeoMutt  2024-11-14-138-ge5ca67
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
42#ifndef MUTT_ATTACH_LIB_H
43#define MUTT_ATTACH_LIB_H
44
45#include <stdbool.h>
46#include <stdint.h>
47#include "core/lib.h"
48#include "expando/lib.h"
49// IWYU pragma: begin_keep
50#include "attach.h"
51#include "attachments.h"
52#include "mutt_attach.h"
53#include "recvattach.h"
54// IWYU pragma: end_keep
55
56struct Body;
57struct Buffer;
58
60
61int attach_body_count (struct Body *b, bool recurse);
62bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
63struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
64bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous);
65
66enum CommandResult parse_attachments (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
67enum CommandResult parse_unattachments(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
68
69#endif /* MUTT_ATTACH_LIB_H */
const struct ExpandoRenderCallback AttachRenderCallbacks[]
Callbacks for Attachment Expandos.
Definition: expando.c:378
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.
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: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:61
String manipulation buffer.
Definition: buffer.h:36