NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
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
29struct Buffer;
30struct Email;
31struct MailboxView;
32struct ParseContext;
33struct ParseError;
34
48
49void mutt_attachments_reset (struct MailboxView *mv);
50int mutt_count_body_parts (struct Email *e, FILE *fp);
51void mutt_parse_mime_message(struct Email *e, FILE *fp);
52
53struct AttachMatch *attachmatch_new (void);
54void attachmatch_free(struct AttachMatch **ptr);
55
56enum CommandResult parse_mime_lookup (const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe);
57enum 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 */
void mutt_parse_mime_message(struct Email *e, FILE *fp)
Parse a MIME email.
Definition commands.c:627
void mutt_attachments_reset(struct MailboxView *mv)
Reset the attachment count for all Emails.
Definition commands.c:266
NotifyAttach
Attachments notification types.
Definition commands.h:43
@ NT_ATTACH_DELETE
Attachment regex has been deleted.
Definition commands.h:45
@ NT_ATTACH_DELETE_ALL
All Attachment regexes have been deleted.
Definition commands.h:46
@ NT_ATTACH_ADD
Attachment regex has been added.
Definition commands.h:44
struct AttachMatch * attachmatch_new(void)
Create a new AttachMatch.
Definition commands.c:78
int mutt_count_body_parts(struct Email *e, FILE *fp)
Count the MIME Body parts.
Definition commands.c:226
CommandResult
Error codes for command_t parse functions.
Definition command.h:37
Convenience wrapper for the core headers.
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:668
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:652
void attachmatch_free(struct AttachMatch **ptr)
Free an AttachMatch - Implements list_free_t -.
Definition commands.c:63
An attachment matching a regex for attachment counter.
Definition commands.c:49
String manipulation buffer.
Definition buffer.h:36
The envelope/body of an email.
Definition email.h:39
View of a Mailbox.
Definition mview.h:40
Context for config parsing (history/backtrace)
Definition pcontext.h:34
Detailed error information from config parsing.
Definition perror.h:34