NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Mh Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "module_data.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool mh_init (struct NeoMutt *n)
 Initialise a Module - Implements Module::init()
 
static bool mh_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 
static bool mh_cleanup (struct NeoMutt *n)
 Clean up a Module - Implements Module::cleanup()
 

Variables

struct ConfigDef MhVars []
 Config definitions for the Mh library.
 
const struct Module ModuleMh
 Module for the Mh library.
 

Detailed Description

Definition of the Mh Module.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file module.c.

Function Documentation

◆ mh_init()

static bool mh_init ( struct NeoMutt * n)
static

Initialise a Module - Implements Module::init()

Definition at line 42 of file module.c.

43{
44 // struct MhModuleData *md = MUTT_MEM_CALLOC(1, struct MhModuleData);
45 // neomutt_set_module_data(n, MODULE_ID_MH, md);
46
47 return true;
48}

◆ mh_config_define_variables()

static bool mh_config_define_variables ( struct NeoMutt * n,
struct ConfigSet * cs )
static

Define the Config Variables - Implements Module::config_define_variables()

Definition at line 53 of file module.c.

54{
55 return cs_register_variables(cs, MhVars);
56}
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
struct ConfigDef MhVars[]
Config definitions for the Mh library.
Definition config.c:37
+ Here is the call graph for this function:

◆ mh_cleanup()

static bool mh_cleanup ( struct NeoMutt * n)
static

Clean up a Module - Implements Module::cleanup()

Definition at line 61 of file module.c.

62{
63 // struct MhModuleData *md = neomutt_get_module_data(n, MODULE_ID_MH);
64 // ASSERT(md);
65
66 // FREE(&md);
67 return true;
68}

Variable Documentation

◆ MhVars

struct ConfigDef MhVars[]
extern

Config definitions for the Mh library.

Definition at line 37 of file config.c.

37 {
38 // clang-format off
39 { "mh_purge", DT_BOOL, false, 0, NULL,
40 "Really delete files in MH mailboxes"
41 },
42 { "mh_seq_flagged", DT_STRING, IP "flagged", 0, NULL,
43 "MH sequence for flagged message"
44 },
45 { "mh_seq_replied", DT_STRING, IP "replied", 0, NULL,
46 "MH sequence to tag replied messages"
47 },
48 { "mh_seq_unseen", DT_STRING, IP "unseen", 0, NULL,
49 "MH sequence for unseen messages"
50 },
51 { NULL },
52 // clang-format on
53};
#define IP
Definition set.h:55
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_STRING
a string
Definition types.h:44

◆ ModuleMh

const struct Module ModuleMh
Initial value:
= {
"mh",
NULL,
NULL,
NULL,
NULL,
}
static bool mh_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:53
static bool mh_cleanup(struct NeoMutt *n)
Clean up a Module - Implements Module::cleanup()
Definition module.c:61
static bool mh_init(struct NeoMutt *n)
Initialise a Module - Implements Module::init()
Definition module.c:42
@ MODULE_ID_MH
ModuleMh, Mh Mailbox
Definition module_api.h:78

Module for the Mh library.

Definition at line 73 of file module.c.

73 {
75 "mh",
76 mh_init,
77 NULL, // config_define_types
79 NULL, // commands_register
80 NULL, // gui_init
81 NULL, // gui_cleanup
83};