Thanks to visit codestin.com
Credit goes to code.neomutt.org

NeoMutt  2025-12-11-189-gceedb6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
lib.h
Go to the documentation of this file.
1
22
43
44#ifndef MUTT_ATTACH_LIB_H
45#define MUTT_ATTACH_LIB_H
46
47#include <stdbool.h>
48#include "core/lib.h"
49// IWYU pragma: begin_keep
50#include "attach.h"
51#include "commands.h"
52#include "expando/lib.h"
53#include "mutt_attach.h"
54#include "recvattach.h"
55// IWYU pragma: end_keep
56
57struct Body;
58struct Buffer;
59struct SubMenu;
60
61void attach_init_keys(struct SubMenu *sm_generic);
62
64
65int attach_body_count (struct Body *b, bool recurse);
66bool attach_body_parent (struct Body *start, struct Body *start_parent, struct Body *body, struct Body **body_parent);
67struct Body *attach_body_ancestor(struct Body *start, struct Body *body, const char *subtype);
68bool attach_body_previous(struct Body *start, struct Body *body, struct Body **previous);
69
70enum CommandResult parse_attachments (const struct Command *cmd, struct Buffer *line, struct Buffer *err);
71enum CommandResult parse_unattachments(const struct Command *cmd, struct Buffer *line, struct Buffer *err);
72
73#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:129
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.
CommandResult
Error codes for command_t parse functions.
Definition command.h:35
Convenience wrapper for the core headers.
Parse Expando string.
enum CommandResult parse_attachments(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'attachments' command - Implements Command::parse() -.
Definition commands.c:485
enum CommandResult parse_unattachments(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'unattachments' command - Implements Command::parse() -.
Definition commands.c:558
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
Collection of related functions.
Definition menu.h:69