NeoMutt  2023-05-17-16-g61469c
Teaching an old dog new tricks
DOXYGEN
recvattach.h
Go to the documentation of this file.
1
24#ifndef MUTT_ATTACH_RECVATTACH_H
25#define MUTT_ATTACH_RECVATTACH_H
26
27#include <stddef.h>
28#include <stdbool.h>
29#include <stdint.h>
30#include <stdio.h>
31#include "format_flags.h"
32
33struct AttachCtx;
34struct Body;
35struct BodyArray;
36struct ConfigSubset;
37struct Email;
38struct MailboxView;
39struct Menu;
40
41void mutt_attach_init(struct AttachCtx *actx);
42void mutt_update_tree(struct AttachCtx *actx);
43
44const char *attach_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags);
45void dlg_select_attachment(struct ConfigSubset *sub, struct MailboxView *mv, struct Email *e, FILE *fp);
46
47void mutt_generate_recvattach_list(struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted);
48struct AttachPtr *current_attachment(struct AttachCtx *actx, struct Menu *menu);
49void mutt_update_recvattach_menu(struct AttachCtx *actx, struct Menu *menu, bool init);
50void recvattach_edit_content_type(struct AttachCtx *actx, struct Menu *menu, struct Email *e);
51
52int ba_add_tagged(struct BodyArray *ba, struct AttachCtx *actx, struct Menu *menu);
53
54#endif /* MUTT_ATTACH_RECVATTACH_H */
Flags to control mutt_expando_format()
uint8_t MuttFormatFlags
Flags for mutt_expando_format(), e.g. MUTT_FORMAT_FORCESUBJ.
Definition: format_flags.h:29
const char * attach_format_str(char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags)
Format a string for the attachment menu - Implements format_t -.
Definition: dlg_attach.c:153
void dlg_select_attachment(struct ConfigSubset *sub, struct MailboxView *mv, struct Email *e, FILE *fp)
Show the attachments in a Menu.
Definition: dlg_attach.c:468
void mutt_update_recvattach_menu(struct AttachCtx *actx, struct Menu *menu, bool init)
Update the Attachment Menu.
Definition: recvattach.c:1207
struct AttachPtr * current_attachment(struct AttachCtx *actx, struct Menu *menu)
Get the current attachment.
Definition: recvattach.c:69
void mutt_generate_recvattach_list(struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted)
Create a list of attachments.
Definition: recvattach.c:1084
void mutt_attach_init(struct AttachCtx *actx)
Create a new Attachment context.
Definition: recvattach.c:1182
void mutt_update_tree(struct AttachCtx *actx)
Refresh the list of attachments.
Definition: recvattach.c:114
void recvattach_edit_content_type(struct AttachCtx *actx, struct Menu *menu, struct Email *e)
Edit the content type of an attachment.
Definition: recvattach.c:927
int ba_add_tagged(struct BodyArray *ba, struct AttachCtx *actx, struct Menu *menu)
Get an array of tagged Attachments.
Definition: recvattach.c:1234
A set of attachments.
Definition: attach.h:51
An email to which things will be attached.
Definition: attach.h:35
The body of an email.
Definition: body.h:36
A set of inherited config items.
Definition: subset.h:47
The envelope/body of an email.
Definition: email.h:37
View of a Mailbox.
Definition: mview.h:39
Definition: lib.h:70
struct ConfigSubset * sub
Inherited config items.
Definition: lib.h:78