NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
44
45#ifndef MUTT_ATTACH_LIB_H
46#define MUTT_ATTACH_LIB_H
47
48#include <stdbool.h>
49#include "core/lib.h"
50// IWYU pragma: begin_keep
51#include "expando/lib.h"
52#include "attach.h"
53#include "commands.h"
54#include "module_data.h"
55#include "mutt_attach.h"
56#include "recvattach.h"
57// IWYU pragma: end_keep
58
59struct Body;
60struct Buffer;
61struct ParseContext;
62struct ParseError;
63struct SubMenu;
64
65void attach_init_keys(struct SubMenu *sm_generic);
66
68
69int attach_body_count (struct Body *b, bool recurse);
70bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
71struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
72bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous);
73
74enum CommandResult parse_attachments (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
75enum CommandResult parse_unattachments(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
76
77#endif /* MUTT_ATTACH_LIB_H */
Handle the attachments command.
const struct ExpandoRenderCallback AttachRenderCallbacks[]
Callbacks for Attachment Expandos.
Definition expando.c:375
void attach_init_keys(struct SubMenu *sm_generic)
Initialise the Attach Keybindings - Implements ::init_keys_api.
Definition functions.c:128
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
Attach private Module data.
Handling of email attachments.
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
Convenience wrapper for the core headers.
Parse Expando string.
enum CommandResult parse_attachments(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'attachments' command - Implements Command::parse() -.
Definition commands.c:472
enum CommandResult parse_unattachments(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unattachments' command - Implements Command::parse() -.
Definition commands.c:550
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
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34
Collection of related functions.
Definition menu.h:68