NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
45
46#ifndef MUTT_ATTACH_LIB_H
47#define MUTT_ATTACH_LIB_H
48
49#include <stdbool.h>
50#include "core/lib.h"
51// IWYU pragma: begin_keep
52#include "expando/lib.h"
53#include "attach.h"
54#include "commands.h"
55#include "module_data.h"
56#include "mutt_attach.h"
57#include "recvattach.h"
58// IWYU pragma: end_keep
59
60struct Body;
61struct Buffer;
62struct ParseContext;
63struct ParseError;
64struct SubMenu;
65
66void attach_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic);
67
69
70int attach_body_count (struct Body *b, bool recurse);
71bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
72struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
73bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous);
74
75enum CommandResult parse_attachments (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
76enum CommandResult parse_unattachments(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
77
78#endif /* MUTT_ATTACH_LIB_H */
Handle the attachments command.
const struct ExpandoRenderCallback AttachRenderCallbacks[]
Callbacks for Attachment Expandos.
Definition expando.c:375
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
void attach_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Attach Keybindings - Implements ::init_keys_api.
Definition functions.c:126
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
Container for Accounts, Notifications.
Definition neomutt.h:41
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:65