NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
commands.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_ATTACH_COMMANDS_H
24
#define MUTT_ATTACH_COMMANDS_H
25
26
#include <stdio.h>
27
#include "
core/lib.h
"
28
29
struct
Buffer
;
30
struct
Email
;
31
struct
MailboxView
;
32
struct
ParseContext
;
33
struct
ParseError
;
34
42
enum
NotifyAttach
43
{
44
NT_ATTACH_ADD
= 1,
45
NT_ATTACH_DELETE
,
46
NT_ATTACH_DELETE_ALL
,
47
};
48
49
void
mutt_attachments_reset
(
struct
MailboxView
*mv);
50
int
mutt_count_body_parts
(
struct
Email
*e, FILE *fp);
51
void
mutt_parse_mime_message
(
struct
Email
*e, FILE *fp);
52
53
struct
AttachMatch
*
attachmatch_new
(
void
);
54
void
attachmatch_free
(
void
**ptr);
55
56
enum
CommandResult
parse_mime_lookup
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
57
enum
CommandResult
parse_unmime_lookup
(
const
struct
Command
*cmd,
struct
Buffer
*line,
const
struct
ParseContext
*pc,
struct
ParseError
*pe);
58
59
#endif
/* MUTT_ATTACH_COMMANDS_H */
mutt_parse_mime_message
void mutt_parse_mime_message(struct Email *e, FILE *fp)
Parse a MIME email.
Definition
commands.c:629
mutt_attachments_reset
void mutt_attachments_reset(struct MailboxView *mv)
Reset the attachment count for all Emails.
Definition
commands.c:267
NotifyAttach
NotifyAttach
Attachments notification types.
Definition
commands.h:43
NT_ATTACH_DELETE
@ NT_ATTACH_DELETE
Attachment regex has been deleted.
Definition
commands.h:45
NT_ATTACH_DELETE_ALL
@ NT_ATTACH_DELETE_ALL
All Attachment regexes have been deleted.
Definition
commands.h:46
NT_ATTACH_ADD
@ NT_ATTACH_ADD
Attachment regex has been added.
Definition
commands.h:44
attachmatch_new
struct AttachMatch * attachmatch_new(void)
Create a new AttachMatch.
Definition
commands.c:79
mutt_count_body_parts
int mutt_count_body_parts(struct Email *e, FILE *fp)
Count the MIME Body parts.
Definition
commands.c:227
CommandResult
CommandResult
Error codes for command_t parse functions.
Definition
command.h:37
lib.h
Convenience wrapper for the core headers.
parse_unmime_lookup
enum CommandResult parse_unmime_lookup(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unmime-lookup' command - Implements Command::parse() -.
Definition
commands.c:670
parse_mime_lookup
enum CommandResult parse_mime_lookup(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'mime-lookup' command - Implements Command::parse() -.
Definition
commands.c:654
attachmatch_free
void attachmatch_free(void **ptr)
Free an AttachMatch - Implements list_free_t -.
Definition
commands.c:63
AttachMatch
An attachment matching a regex for attachment counter.
Definition
commands.c:49
Buffer
String manipulation buffer.
Definition
buffer.h:36
Command
Definition
command.h:161
Email
The envelope/body of an email.
Definition
email.h:39
MailboxView
View of a Mailbox.
Definition
mview.h:40
ParseContext
Context for config parsing (history/backtrace).
Definition
pcontext.h:34
ParseError
Detailed error information from config parsing.
Definition
perror.h:34