NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
address.c File Reference
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "mutt.h"
+ Include dependency graph for address.c:

Go to the source code of this file.

Functions

int LLVMFuzzerTestOneInput (const uint8_t *data, size_t size)
 

Variables

bool StartupComplete = true
 
const struct Module ModuleMain
 Module for the Main library.
 
const struct Module ModuleAddress
 Module for the Address library.
 
const struct Module ModuleAlias
 Module for the Alias library.
 
const struct Module ModuleAttach
 Module for the Attach library.
 
const struct Module ModuleAutocrypt
 Module for the Autocrypt library.
 
const struct Module ModuleBcache
 Module for the Bcache library.
 
const struct Module ModuleBrowser
 Module for the Browser library.
 
const struct Module ModuleColor
 Module for the Color library.
 
const struct Module ModuleCommands
 Module for the Commands library.
 
const struct Module ModuleComplete
 Module for the Complete library.
 
const struct Module ModuleCompmbox
 Module for the Compmbox library.
 
const struct Module ModuleCompose
 Module for the Compose library.
 
const struct Module ModuleCompress
 Module for the Compress library.
 
const struct Module ModuleConfig
 Module for the Config library.
 
const struct Module ModuleConn
 Module for the Conn library.
 
const struct Module ModuleConvert
 Module for the Convert library.
 
const struct Module ModuleCore
 Module for the Core library.
 
const struct Module ModuleEditor
 Module for the Editor library.
 
const struct Module ModuleEmail
 Module for the Email library.
 
const struct Module ModuleEnvelope
 Module for the Envelope library.
 
const struct Module ModuleExpando
 Module for the Expando library.
 
const struct Module ModuleGui
 Module for the Gui library.
 
const struct Module ModuleHcache
 Module for the Hcache library.
 
const struct Module ModuleHelpbar
 Module for the Helpbar library.
 
const struct Module ModuleHistory
 Module for the History library.
 
const struct Module ModuleHooks
 Module for the Hooks library.
 
const struct Module ModuleImap
 Module for the Imap library.
 
const struct Module ModuleIndex
 Module for the Index library.
 
const struct Module ModuleKey
 Module for the Key library.
 
const struct Module ModuleLua
 Module for the Lua library.
 
const struct Module ModuleMaildir
 Module for the Maildir library.
 
const struct Module ModuleMbox
 Module for the Mbox library.
 
const struct Module ModuleMenu
 Module for the Menu library.
 
const struct Module ModuleMh
 Module for the Mh library.
 
const struct Module ModuleMutt
 Module for the Mutt library.
 
const struct Module ModuleNcrypt
 Module for the Ncrypt library.
 
const struct Module ModuleNntp
 Module for the Nntp library.
 
const struct Module ModuleNotmuch
 Module for the Notmuch library.
 
const struct Module ModulePager
 Module for the Pager library.
 
const struct Module ModuleParse
 Module for the Parse library.
 
const struct Module ModulePattern
 Module for the Pattern library.
 
const struct Module ModulePop
 Module for the Pop library.
 
const struct Module ModulePostpone
 Module for the Postpone library.
 
const struct Module ModuleProgress
 Module for the Progress library.
 
const struct Module ModuleQuestion
 Module for the Question library.
 
const struct Module ModuleSend
 Module for the Send library.
 
const struct Module ModuleSidebar
 Module for the Sidebar library.
 
const struct Module ModuleStore
 Module for the Store library.
 
static const struct ModuleModules []
 All the library Modules.
 

Function Documentation

◆ LLVMFuzzerTestOneInput()

int LLVMFuzzerTestOneInput ( const uint8_t * data,
size_t size )

Definition at line 65 of file address.c.

66{
68
70 char **tmp_env = MUTT_MEM_CALLOC(2, char *);
71 neomutt_init(NeoMutt, tmp_env, Modules);
72 FREE(&tmp_env);
73
74 char file[] = "/tmp/mutt-fuzz";
75 FILE *fp = fopen(file, "wb");
76 if (!fp)
77 return -1;
78
79 fwrite(data, 1, size, fp);
80 fclose(fp);
81 fp = fopen(file, "rb");
82 if (!fp)
83 return -1;
84
85 struct Email *e = email_new();
86 struct Envelope *env = mutt_rfc822_read_header(fp, e, 0, 0);
87 mutt_parse_part(fp, e->body);
88 email_free(&e);
89 mutt_env_free(&env);
90 fclose(fp);
93 return 0;
94}
struct Email * email_new(void)
Create a new Email.
Definition email.c:77
void email_free(struct Email **ptr)
Free an Email.
Definition email.c:46
void mutt_parse_part(FILE *fp, struct Body *b)
Parse a MIME part.
Definition parse.c:1833
struct Envelope * mutt_rfc822_read_header(FILE *fp, struct Email *e, bool user_hdrs, bool weed)
Parses an RFC822 header.
Definition parse.c:1210
void mutt_env_free(struct Envelope **ptr)
Free an Envelope.
Definition envelope.c:125
static const struct Module * Modules[]
All the library Modules.
Definition address.c:32
int log_disp_null(time_t stamp, const char *file, int line, const char *function, enum LogLevel level, const char *format,...)
Discard log lines - Implements log_dispatcher_t -.
Definition logging.c:515
int log_dispatcher_t MuttLogger
#define FREE(x)
Free memory and set the pointer to NULL.
Definition memory.h:68
#define MUTT_MEM_CALLOC(n, type)
Definition memory.h:52
void neomutt_cleanup(struct NeoMutt *n)
Clean up NeoMutt and Modules.
Definition neomutt.c:405
bool neomutt_init(struct NeoMutt *n, char **envp, const struct Module **modules)
Initialise NeoMutt.
Definition neomutt.c:319
struct NeoMutt * neomutt_new(void)
Create the main NeoMutt object.
Definition neomutt.c:307
void neomutt_free(struct NeoMutt **ptr)
Free a NeoMutt.
Definition neomutt.c:418
The envelope/body of an email.
Definition email.h:39
struct Body * body
List of MIME parts.
Definition email.h:69
The header of an Email.
Definition envelope.h:57
Container for Accounts, Notifications.
Definition neomutt.h:41
+ Here is the call graph for this function:

Variable Documentation

◆ StartupComplete

bool StartupComplete = true

Definition at line 11 of file address.c.

◆ ModuleMain

const struct Module ModuleMain
extern

Module for the Main library.

Definition at line 48 of file module.c.

48 {
50 "main",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool main_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_MAIN
ModuleMain, NeoMutt Email Client
Definition module_api.h:44

◆ ModuleAddress

const struct Module ModuleAddress
extern

Module for the Address library.

Definition at line 65 of file module.c.

65 {
67 "address",
68 NULL, // init
71 NULL, // commands_register
72 NULL, // gui_init
73 NULL, // gui_cleanup
74 NULL, // cleanup
75};
static bool address_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:51
static bool address_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
Set up Config Types - Implements Module::config_define_types()
Definition module.c:43
@ MODULE_ID_ADDRESS
ModuleAddress, Address
Definition module_api.h:47

◆ ModuleAlias

const struct Module ModuleAlias
extern

Module for the Alias library.

Definition at line 108 of file module.c.

108 {
110 "alias",
112 NULL, // config_define_types
115 NULL, // gui_init
116 NULL, // gui_cleanup
118};
void alias_cleanup(void)
void alias_init(void)
static bool alias_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:74
static bool alias_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:66
@ MODULE_ID_ALIAS
ModuleAlias, Alias
Definition module_api.h:48

◆ ModuleAttach

const struct Module ModuleAttach
extern

Module for the Attach library.

Definition at line 108 of file module.c.

108 {
110 "attach",
112 NULL, // config_define_types
115 NULL, // gui_init
116 NULL, // gui_cleanup
118};
static bool attach_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:46
static bool attach_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:84
static bool attach_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:76
static bool attach_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:68
@ MODULE_ID_ATTACH
ModuleAttach, Attachments
Definition module_api.h:49

◆ ModuleAutocrypt

const struct Module ModuleAutocrypt
extern

Module for the Autocrypt library.

Definition at line 54 of file module.c.

54 {
56 "autocrypt",
57 NULL, // init
58 NULL, // config_define_types
60 NULL, // commands_register
61 NULL, // gui_init
62 NULL, // gui_cleanup
63 NULL, // cleanup
64};
static bool autocrypt_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_AUTOCRYPT
ModuleAutocrypt, Autocrypt
Definition module_api.h:50

◆ ModuleBcache

const struct Module ModuleBcache
extern

Module for the Bcache library.

Definition at line 36 of file module.c.

36 {
38 "bcache",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_BCACHE
ModuleBcache, Body (Message) Cache
Definition module_api.h:51

◆ ModuleBrowser

const struct Module ModuleBrowser
extern

Module for the Browser library.

Definition at line 48 of file module.c.

48 {
50 "browser",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool browser_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_BROWSER
ModuleBrowser, Mailbox Browser
Definition module_api.h:52

◆ ModuleColor

const struct Module ModuleColor
extern

Module for the Color library.

Definition at line 36 of file module.c.

36 {
38 "color",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_COLOR
ModuleColor, Color
Definition module_api.h:53

◆ ModuleCommands

const struct Module ModuleCommands
extern

Module for the Commands library.

Definition at line 47 of file module.c.

47 {
49 "commands",
50 NULL, // init
51 NULL, // config_define_types
52 NULL, // config_define_variables
54 NULL, // gui_init
55 NULL, // gui_cleanup
56 NULL, // cleanup
57};
static bool commands_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:39
@ MODULE_ID_COMMANDS
ModuleCommands, NeoMutt Commands
Definition module_api.h:54

◆ ModuleComplete

const struct Module ModuleComplete
extern

Module for the Complete library.

Definition at line 36 of file module.c.

36 {
38 "complete",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_COMPLETE
ModuleComplete, Auto-completion
Definition module_api.h:55

◆ ModuleCompmbox

const struct Module ModuleCompmbox
extern

Module for the Compmbox library.

Definition at line 47 of file module.c.

47 {
49 "compmbox",
50 NULL, // init
51 NULL, // config_define_types
52 NULL, // config_define_variables
54 NULL, // gui_init
55 NULL, // gui_cleanup
56 NULL, // cleanup
57};
static bool compmbox_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:39
@ MODULE_ID_COMPMBOX
ModuleCompmbox, Compressed Mailbox
Definition module_api.h:56

◆ ModuleCompose

const struct Module ModuleCompose
extern

Module for the Compose library.

Definition at line 48 of file module.c.

48 {
50 "compose",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool compose_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_COMPOSE
ModuleCompose, Compose an Email
Definition module_api.h:57

◆ ModuleCompress

const struct Module ModuleCompress
extern

Module for the Compress library.

Definition at line 36 of file module.c.

36 {
38 "compress",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_COMPRESS
ModuleCompress, Compression functions
Definition module_api.h:58

◆ ModuleConfig

const struct Module ModuleConfig
extern

Module for the Config library.

Definition at line 74 of file module.c.

74 {
76 "config",
77 NULL, // init
79 NULL, // config_define_variables
80 NULL, // commands_register
81 NULL, // gui_init
82 NULL, // gui_cleanup
83 NULL, // cleanup
84};
static bool config_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
Set up Config Types - Implements Module::config_define_types()
Definition module.c:51
@ MODULE_ID_CONFIG
ModuleConfig, Config
Definition module_api.h:59

◆ ModuleConn

const struct Module ModuleConn
extern

Module for the Conn library.

Definition at line 77 of file module.c.

77 {
79 "conn",
80 NULL, // init
81 NULL, // config_define_types
83 NULL, // commands_register
84 NULL, // gui_init
85 NULL, // gui_cleanup
86 NULL, // cleanup
87};
static bool conn_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:45
@ MODULE_ID_CONN
ModuleConn, Network connections
Definition module_api.h:60

◆ ModuleConvert

const struct Module ModuleConvert
extern

Module for the Convert library.

Definition at line 36 of file module.c.

36 {
38 "convert",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_CONVERT
ModuleConvert, File Charset Conversion
Definition module_api.h:61

◆ ModuleCore

const struct Module ModuleCore
extern

Module for the Core library.

Definition at line 36 of file module.c.

36 {
37 MODULE_ID_CORE, "core",
38 NULL, // init
39 NULL, // config_define_types
40 NULL, // config_define_variables
41 NULL, // commands_register
42 NULL, // gui_init
43 NULL, // gui_cleanup
44 NULL, // cleanup
45};
@ MODULE_ID_CORE
ModuleCore, Core NeoMutt objects
Definition module_api.h:62

◆ ModuleEditor

const struct Module ModuleEditor
extern

Module for the Editor library.

Definition at line 36 of file module.c.

36 {
38 "editor",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_EDITOR
ModuleEditor, Edit a string
Definition module_api.h:63

◆ ModuleEmail

const struct Module ModuleEmail
extern

Module for the Email library.

Definition at line 132 of file module.c.

132 {
134 "email",
136 NULL, // config_define_types
139 NULL, // gui_init
140 NULL, // gui_cleanup
142};
static bool email_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:93
static bool email_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:45
static bool email_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:85
static bool email_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:101
@ MODULE_ID_EMAIL
ModuleEmail, Email code
Definition module_api.h:64

◆ ModuleEnvelope

const struct Module ModuleEnvelope
extern

Module for the Envelope library.

Definition at line 36 of file module.c.

36 {
38 "envelope",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_ENVELOPE
ModuleEnvelope, Envelope-editing Window
Definition module_api.h:65

◆ ModuleExpando

const struct Module ModuleExpando
extern

Module for the Expando library.

Definition at line 48 of file module.c.

48 {
50 "expando",
51 NULL, // init
53 NULL, // config_define_variables
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool expando_config_define_types(struct NeoMutt *n, struct ConfigSet *cs)
Set up Config Types - Implements Module::config_define_types()
Definition module.c:40
@ MODULE_ID_EXPANDO
ModuleExpando, Parse Expando string
Definition module_api.h:66

◆ ModuleGui

const struct Module ModuleGui
extern

Module for the Gui library.

Definition at line 48 of file module.c.

48 {
50 "gui",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool gui_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_GUI
ModuleGui, Graphical code
Definition module_api.h:45

◆ ModuleHcache

const struct Module ModuleHcache
extern

Module for the Hcache library.

Definition at line 69 of file module.c.

69 {
71 "hcache",
72 NULL, // init
73 NULL, // config_define_types
75 NULL, // commands_register
76 NULL, // gui_init
77 NULL, // gui_cleanup
78 NULL, // cleanup
79};
static bool hcache_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:43
@ MODULE_ID_HCACHE
ModuleHcache, Email Header Cache
Definition module_api.h:67

◆ ModuleHelpbar

const struct Module ModuleHelpbar
extern

Module for the Helpbar library.

Definition at line 48 of file module.c.

48 {
50 "helpbar",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool helpbar_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_HELPBAR
ModuleHelpbar, Help bar
Definition module_api.h:68

◆ ModuleHistory

const struct Module ModuleHistory
extern

Module for the History library.

Definition at line 48 of file module.c.

48 {
50 "history",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool history_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_HISTORY
ModuleHistory, History
Definition module_api.h:69

◆ ModuleHooks

const struct Module ModuleHooks
extern

Module for the Hooks library.

Definition at line 57 of file module.c.

57 {
59 "hooks",
60 NULL, // init
61 NULL, // config_define_types
64 NULL, // gui_init
65 NULL, // gui_cleanup
66 NULL, // cleanup
67};
static bool hooks_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:49
static bool hooks_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:41
@ MODULE_ID_HOOKS
ModuleHooks, Hook Commands
Definition module_api.h:70

◆ ModuleImap

const struct Module ModuleImap
extern

Module for the Imap library.

Definition at line 65 of file module.c.

65 {
67 "imap",
68 NULL, // init
69 NULL, // config_define_types
72 NULL, // gui_init
73 NULL, // gui_cleanup
74 NULL, // cleanup
75};
static bool imap_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:57
static bool imap_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:43
@ MODULE_ID_IMAP
ModuleImap, Imap Mailbox
Definition module_api.h:71

◆ ModuleIndex

const struct Module ModuleIndex
extern

Module for the Index library.

Definition at line 87 of file module.c.

87 {
89 "index",
91 NULL, // config_define_types
94 NULL, // gui_init
95 NULL, // gui_cleanup
97};
static bool index_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:57
static bool index_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:45
static bool index_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:65
static bool index_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:73
@ MODULE_ID_INDEX
ModuleIndex, Index
Definition module_api.h:72

◆ ModuleKey

const struct Module ModuleKey
extern

Module for the Key library.

Definition at line 47 of file module.c.

47 {
49 "key",
50 NULL, // init
51 NULL, // config_define_types
52 NULL, // config_define_variables
54 NULL, // gui_init
55 NULL, // gui_cleanup
56 NULL, // cleanup
57};
static bool key_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:39
@ MODULE_ID_KEY
ModuleKey, Key mappings
Definition module_api.h:73

◆ ModuleLua

const struct Module ModuleLua
extern

Module for the Lua library.

Definition at line 47 of file module.c.

47 {
49 "lua",
50 NULL, // init
51 NULL, // config_define_types
52 NULL, // config_define_variables
54 NULL, // gui_init
55 NULL, // gui_cleanup
56 NULL, // cleanup
57};
static bool lua_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:39
@ MODULE_ID_LUA
ModuleLua, Integrated Lua scripting
Definition module_api.h:74

◆ ModuleMaildir

const struct Module ModuleMaildir
extern

Module for the Maildir library.

Definition at line 55 of file module.c.

55 {
57 "maildir",
58 NULL, // init
59 NULL, // config_define_types
61 NULL, // commands_register
62 NULL, // gui_init
63 NULL, // gui_cleanup
64 NULL, // cleanup
65};
static bool maildir_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:41
@ MODULE_ID_MAILDIR
ModuleMaildir, Maildir Mailbox
Definition module_api.h:75

◆ ModuleMbox

const struct Module ModuleMbox
extern

Module for the Mbox library.

Definition at line 48 of file module.c.

48 {
50 "mbox",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool mbox_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_MBOX
ModuleMbox, Mbox
Definition module_api.h:76

◆ ModuleMenu

const struct Module ModuleMenu
extern

Module for the Menu library.

Definition at line 48 of file module.c.

48 {
50 "menu",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool menu_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_MENU
ModuleMenu, Menu
Definition module_api.h:77

◆ ModuleMh

const struct Module ModuleMh
extern

Module for the Mh library.

Definition at line 48 of file module.c.

48 {
50 "mh",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
static bool mh_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_MH
ModuleMh, Mh Mailbox
Definition module_api.h:78

◆ ModuleMutt

const struct Module ModuleMutt
extern

Module for the Mutt library.

Definition at line 36 of file module.c.

36 {
37 MODULE_ID_MUTT, "mutt",
38 NULL, // init
39 NULL, // config_define_types
40 NULL, // config_define_variables
41 NULL, // commands_register
42 NULL, // gui_init
43 NULL, // gui_cleanup
44 NULL, // cleanup
45};
@ MODULE_ID_MUTT
ModuleMutt, Mutt
Definition module_api.h:79

◆ ModuleNcrypt

const struct Module ModuleNcrypt
extern

Module for the Ncrypt library.

Definition at line 67 of file module.c.

67 {
69 "ncrypt",
70 NULL, // init
71 NULL, // config_define_types
73 NULL, // commands_register
74 NULL, // gui_init
75 NULL, // gui_cleanup
76 NULL, // cleanup
77};
@ MODULE_ID_NCRYPT
ModuleNcrypt, Ncrypt
Definition module_api.h:80
static bool ncrypt_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:43

◆ ModuleNntp

const struct Module ModuleNntp
extern

Module for the Nntp library.

Definition at line 48 of file module.c.

48 {
50 "nntp",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
@ MODULE_ID_NNTP
ModuleNntp, Nntp
Definition module_api.h:81
static bool nntp_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

◆ ModuleNotmuch

const struct Module ModuleNotmuch
extern

Module for the Notmuch library.

Definition at line 64 of file module.c.

64 {
66 "notmuch",
67 NULL, // init
68 NULL, // config_define_types
71 NULL, // gui_init
72 NULL, // gui_cleanup
73 NULL, // cleanup
74};
@ MODULE_ID_NOTMUCH
ModuleNotmuch, Notmuch
Definition module_api.h:82
static bool notmuch_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:42
static bool notmuch_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:56

◆ ModulePager

const struct Module ModulePager
extern

Module for the Pager library.

Definition at line 48 of file module.c.

48 {
50 "pager",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
@ MODULE_ID_PAGER
ModulePager, Pager
Definition module_api.h:83
static bool pager_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

◆ ModuleParse

const struct Module ModuleParse
extern

Module for the Parse library.

Definition at line 36 of file module.c.

36 {
38 "parse",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_PARSE
ModuleParse, Text parsing functions
Definition module_api.h:84

◆ ModulePattern

const struct Module ModulePattern
extern

Module for the Pattern library.

Definition at line 48 of file module.c.

48 {
50 "pattern",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
@ MODULE_ID_PATTERN
ModulePattern, Pattern
Definition module_api.h:85
static bool pattern_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

◆ ModulePop

const struct Module ModulePop
extern

Module for the Pop library.

Definition at line 48 of file module.c.

48 {
50 "pop",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
@ MODULE_ID_POP
ModulePop, Pop
Definition module_api.h:86
static bool pop_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

◆ ModulePostpone

const struct Module ModulePostpone
extern

Module for the Postpone library.

Definition at line 36 of file module.c.

36 {
38 "postpone",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_POSTPONE
ModulePostpone, Postponed Emails
Definition module_api.h:87

◆ ModuleProgress

const struct Module ModuleProgress
extern

Module for the Progress library.

Definition at line 48 of file module.c.

48 {
50 "progress",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};
@ MODULE_ID_PROGRESS
ModuleProgress, Progress Bar
Definition module_api.h:88
static bool progress_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40

◆ ModuleQuestion

const struct Module ModuleQuestion
extern

Module for the Question library.

Definition at line 36 of file module.c.

36 {
38 "question",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_QUESTION
ModuleQuestion, Question
Definition module_api.h:89

◆ ModuleSend

const struct Module ModuleSend
extern

Module for the Send library.

Definition at line 87 of file module.c.

87 {
89 "send",
91 NULL, // config_define_types
94 NULL, // gui_init
95 NULL, // gui_cleanup
97};
@ MODULE_ID_SEND
ModuleSend, Send
Definition module_api.h:90
static bool send_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:57
static bool send_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:65
static bool send_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:44
static bool send_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:73

◆ ModuleSidebar

const struct Module ModuleSidebar
extern

Module for the Sidebar library.

Definition at line 58 of file module.c.

58 {
60 "sidebar",
61 NULL, // init
62 NULL, // config_define_types
65 NULL, // gui_init
66 NULL, // gui_cleanup
67 NULL, // cleanup
68};
@ MODULE_ID_SIDEBAR
ModuleSidebar, Sidebar
Definition module_api.h:91
static bool sidebar_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:42
static bool sidebar_commands_register(struct NeoMutt *n, struct CommandArray *ca)
Register NeoMutt Commands - Implements Module::commands_register()
Definition module.c:50

◆ ModuleStore

const struct Module ModuleStore
extern

Module for the Store library.

Definition at line 36 of file module.c.

36 {
38 "store",
39 NULL, // init
40 NULL, // config_define_types
41 NULL, // config_define_variables
42 NULL, // commands_register
43 NULL, // gui_init
44 NULL, // gui_cleanup
45 NULL, // cleanup
46};
@ MODULE_ID_STORE
ModuleStore, Store
Definition module_api.h:92

◆ Modules

const struct Module* Modules[]
static

All the library Modules.

Definition at line 32 of file address.c.

32 {
33 // clang-format off
34 &ModuleMain, &ModuleGui, // These two have priority
43// clang-format on
44#ifdef USE_AUTOCRYPT
46#endif
47#ifdef USE_HCACHE_COMPRESSION
49#endif
50#ifdef USE_HCACHE
52#endif
53#ifdef USE_LUA
54 &ModuleLua,
55#endif
56#ifdef USE_NOTMUCH
58#endif
59#ifdef USE_HCACHE
61#endif
62 NULL,
63};
const struct Module ModuleAddress
Module for the Address library.
Definition module.c:65
const struct Module ModuleAlias
Module for the Alias library.
Definition module.c:108
const struct Module ModuleAttach
Module for the Attach library.
Definition module.c:108
const struct Module ModuleAutocrypt
Module for the Autocrypt library.
Definition module.c:54
const struct Module ModuleBcache
Module for the Bcache library.
Definition module.c:36
const struct Module ModuleBrowser
Module for the Browser library.
Definition module.c:48
const struct Module ModuleColor
Module for the Color library.
Definition module.c:36
const struct Module ModuleCommands
Module for the Commands library.
Definition module.c:47
const struct Module ModuleComplete
Module for the Complete library.
Definition module.c:36
const struct Module ModuleCompmbox
Module for the Compmbox library.
Definition module.c:47
const struct Module ModuleCompose
Module for the Compose library.
Definition module.c:48
const struct Module ModuleCompress
Module for the Compress library.
Definition module.c:36
const struct Module ModuleConfig
Module for the Config library.
Definition module.c:74
const struct Module ModuleConn
Module for the Conn library.
Definition module.c:77
const struct Module ModuleConvert
Module for the Convert library.
Definition module.c:36
const struct Module ModuleCore
Module for the Core library.
Definition module.c:36
const struct Module ModuleEditor
Module for the Editor library.
Definition module.c:36
const struct Module ModuleEmail
Module for the Email library.
Definition module.c:132
const struct Module ModuleEnvelope
Module for the Envelope library.
Definition module.c:36
const struct Module ModuleExpando
Module for the Expando library.
Definition module.c:48
const struct Module ModulePop
Module for the Pop library.
Definition module.c:48
const struct Module ModuleParse
Module for the Parse library.
Definition module.c:36
const struct Module ModuleMaildir
Module for the Maildir library.
Definition module.c:55
const struct Module ModulePostpone
Module for the Postpone library.
Definition module.c:36
const struct Module ModuleSidebar
Module for the Sidebar library.
Definition module.c:58
const struct Module ModuleMh
Module for the Mh library.
Definition module.c:48
const struct Module ModuleLua
Module for the Lua library.
Definition module.c:47
const struct Module ModulePager
Module for the Pager library.
Definition module.c:48
const struct Module ModuleGui
Module for the Gui library.
Definition module.c:48
const struct Module ModuleProgress
Module for the Progress library.
Definition module.c:48
const struct Module ModuleMenu
Module for the Menu library.
Definition module.c:48
const struct Module ModuleNcrypt
Module for the Ncrypt library.
Definition module.c:67
const struct Module ModuleMutt
Module for the Mutt library.
Definition module.c:36
const struct Module ModuleHcache
Module for the Hcache library.
Definition module.c:69
const struct Module ModuleSend
Module for the Send library.
Definition module.c:87
const struct Module ModuleQuestion
Module for the Question library.
Definition module.c:36
const struct Module ModuleImap
Module for the Imap library.
Definition module.c:65
const struct Module ModuleMain
Module for the Main library.
Definition module.c:48
const struct Module ModuleStore
Module for the Store library.
Definition module.c:36
const struct Module ModuleMbox
Module for the Mbox library.
Definition module.c:48
const struct Module ModulePattern
Module for the Pattern library.
Definition module.c:48
const struct Module ModuleNntp
Module for the Nntp library.
Definition module.c:48
const struct Module ModuleHelpbar
Module for the Helpbar library.
Definition module.c:48
const struct Module ModuleHistory
Module for the History library.
Definition module.c:48
const struct Module ModuleNotmuch
Module for the Notmuch library.
Definition module.c:64
const struct Module ModuleKey
Module for the Key library.
Definition module.c:47
const struct Module ModuleIndex
Module for the Index library.
Definition module.c:87
const struct Module ModuleHooks
Module for the Hooks library.
Definition module.c:57