NeoMutt  2025-01-09-146-g8c4f7e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
mutt_lua.c File Reference

Integrated Lua scripting. More...

#include "config.h"
#include <lauxlib.h>
#include <lua.h>
#include <lualib.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "mutt_lua.h"
#include "parse/lib.h"
#include "muttlib.h"
#include "version.h"
+ Include dependency graph for mutt_lua.c:

Go to the source code of this file.

Macros

#define LUA_COMPAT_ALL
 
#define LUA_COMPAT_5_1
 

Functions

static int handle_panic (lua_State *l)
 Handle a panic in the Lua interpreter.
 
static int handle_error (lua_State *l)
 Handle an error in the Lua interpreter.
 
static int lua_mutt_call (lua_State *l)
 Call a NeoMutt command by name.
 
static int lua_mutt_set (lua_State *l)
 Set a NeoMutt variable.
 
static int lua_mutt_get (lua_State *l)
 Get a NeoMutt variable.
 
static int lua_mutt_enter (lua_State *l)
 Execute NeoMutt config from Lua.
 
static int lua_mutt_message (lua_State *l)
 Display a message in Neomutt.
 
static int lua_mutt_error (lua_State *l)
 Display an error in Neomutt.
 
static void lua_expose_command (lua_State *l, const struct Command *cmd)
 Expose a NeoMutt command to the Lua interpreter.
 
static int luaopen_mutt_decl (lua_State *l)
 Declare some NeoMutt types to the Lua interpreter.
 
static void luaopen_mutt (lua_State *l)
 Expose a 'Mutt' object to the Lua interpreter.
 
static bool lua_init (lua_State **l)
 Initialise a Lua State.
 
void mutt_lua_init (void)
 Setup feature commands.
 
enum CommandResult mutt_lua_parse (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
 Parse the 'lua' command - Implements Command::parse() -.
 
enum CommandResult mutt_lua_source_file (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
 Parse the 'lua-source' command - Implements Command::parse() -.
 

Variables

static lua_State * LuaState = NULL
 Global Lua State.
 
static const struct Command LuaCommands []
 List of NeoMutt commands to register.
 
static const luaL_Reg LuaMuttCommands []
 List of Lua commands to register.
 

Detailed Description

Integrated Lua scripting.

Authors
  • Bernard Pratz
  • Richard Russon
  • Victor Fernandes
  • Ian Zimmerman
  • Pietro Cerutti
  • Rayford Shireman

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 mutt_lua.c.

Macro Definition Documentation

◆ LUA_COMPAT_ALL

#define LUA_COMPAT_ALL

Definition at line 35 of file mutt_lua.c.

◆ LUA_COMPAT_5_1

#define LUA_COMPAT_5_1

Definition at line 38 of file mutt_lua.c.

Function Documentation

◆ handle_panic()

static int handle_panic ( lua_State *  l)
static

Handle a panic in the Lua interpreter.

Parameters
lLua State
Return values
-1Always

Definition at line 75 of file mutt_lua.c.

76{
77 mutt_debug(LL_DEBUG1, "lua runtime panic: %s\n", lua_tostring(l, -1));
78 mutt_error("Lua runtime panic: %s", lua_tostring(l, -1));
79 lua_pop(l, 1);
80 return -1;
81}
#define mutt_error(...)
Definition: logging2.h:93
#define mutt_debug(LEVEL,...)
Definition: logging2.h:90
@ LL_DEBUG1
Log at debug level 1.
Definition: logging2.h:44
+ Here is the caller graph for this function:

◆ handle_error()

static int handle_error ( lua_State *  l)
static

Handle an error in the Lua interpreter.

Parameters
lLua State
Return values
-1Always

Definition at line 88 of file mutt_lua.c.

89{
90 mutt_debug(LL_DEBUG1, "lua runtime error: %s\n", lua_tostring(l, -1));
91 mutt_error("Lua runtime error: %s", lua_tostring(l, -1));
92 lua_pop(l, 1);
93 return -1;
94}
+ Here is the caller graph for this function:

◆ lua_mutt_call()

static int lua_mutt_call ( lua_State *  l)
static

Call a NeoMutt command by name.

Parameters
lLua State
Return values
>=0Success
-1Error

Definition at line 102 of file mutt_lua.c.

103{
104 mutt_debug(LL_DEBUG2, " * lua_mutt_call()\n");
105 struct Buffer *err = buf_pool_get();
106 struct Buffer *token = buf_pool_get();
107 struct Buffer *buf = buf_pool_get();
108 const struct Command *cmd = NULL;
109 int rc = 0;
110
111 if (lua_gettop(l) == 0)
112 {
113 luaL_error(l, "Error command argument required.");
114 return -1;
115 }
116
117 cmd = commands_get(&NeoMutt->commands, lua_tostring(l, 1));
118 if (!cmd)
119 {
120 luaL_error(l, "Error command %s not found.", lua_tostring(l, 1));
121 return -1;
122 }
123
124 for (int i = 2; i <= lua_gettop(l); i++)
125 {
126 buf_addstr(buf, lua_tostring(l, i));
127 buf_addch(buf, ' ');
128 }
129 buf_seek(buf, 0);
130
131 if (cmd->parse(token, buf, cmd->data, err))
132 {
133 luaL_error(l, "NeoMutt error: %s", buf_string(err));
134 rc = -1;
135 }
136 else
137 {
138 if (!lua_pushstring(l, buf_string(err)))
139 handle_error(l);
140 else
141 rc++;
142 }
143
144 buf_pool_release(&buf);
145 buf_pool_release(&token);
146 buf_pool_release(&err);
147 return rc;
148}
void buf_seek(struct Buffer *buf, size_t offset)
Set current read/write position to offset from beginning.
Definition: buffer.c:622
size_t buf_addch(struct Buffer *buf, char c)
Add a single character to a Buffer.
Definition: buffer.c:241
size_t buf_addstr(struct Buffer *buf, const char *s)
Add a string to a Buffer.
Definition: buffer.c:226
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
Definition: buffer.h:96
const struct Command * commands_get(struct CommandArray *ca, const char *name)
Get a Command by its name.
Definition: command.c:82
@ LL_DEBUG2
Log at debug level 2.
Definition: logging2.h:45
static int handle_error(lua_State *l)
Handle an error in the Lua interpreter.
Definition: mutt_lua.c:88
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
Definition: pool.c:82
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
Definition: pool.c:96
String manipulation buffer.
Definition: buffer.h:36
enum CommandResult(* parse)(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Definition: command.h:64
intptr_t data
Data or flags to pass to the command.
Definition: command.h:66
Container for Accounts, Notifications.
Definition: neomutt.h:43
struct CommandArray commands
NeoMutt commands.
Definition: neomutt.h:51
+ Here is the call graph for this function:

◆ lua_mutt_set()

static int lua_mutt_set ( lua_State *  l)
static

Set a NeoMutt variable.

Parameters
lLua State
Return values
0Success
-1Error

Definition at line 156 of file mutt_lua.c.

157{
158 const char *param = lua_tostring(l, -2);
159 mutt_debug(LL_DEBUG2, " * lua_mutt_set(%s)\n", param);
160
161 struct Buffer *err = buf_pool_get();
162 struct HashElem *he = cs_subset_lookup(NeoMutt->sub, param);
163 if (!he)
164 {
165 // In case it is a my_var, we have to create it
166 if (mutt_str_startswith(param, "my_"))
167 {
168 struct ConfigDef my_cdef = { 0 };
169 my_cdef.name = param;
170 my_cdef.type = DT_MYVAR;
171 he = cs_create_variable(NeoMutt->sub->cs, &my_cdef, err);
172 if (!he)
173 return -1;
174 }
175 else
176 {
177 luaL_error(l, "NeoMutt parameter not found %s", param);
178 return -1;
179 }
180 }
181
182 struct ConfigDef *cdef = he->data;
183
184 int rc = 0;
185
186 switch (CONFIG_TYPE(cdef->type))
187 {
188 case DT_ADDRESS:
189 case DT_ENUM:
190 case DT_MBTABLE:
191 case DT_MYVAR:
192 case DT_PATH:
193 case DT_REGEX:
194 case DT_SLIST:
195 case DT_SORT:
196 case DT_STRING:
197 {
198 const char *value = lua_tostring(l, -1);
199 size_t val_size = lua_rawlen(l, -1);
200 struct Buffer *value_buf = buf_pool_get();
201 buf_strcpy_n(value_buf, value, val_size);
202 if (CONFIG_TYPE(he->type) == DT_PATH)
203 buf_expand_path(value_buf);
204
205 int rv = cs_subset_he_string_set(NeoMutt->sub, he, buf_string(value_buf), err);
206 buf_pool_release(&value_buf);
207 if (CSR_RESULT(rv) != CSR_SUCCESS)
208 rc = -1;
209 break;
210 }
211 case DT_NUMBER:
212 case DT_QUAD:
213 {
214 const intptr_t value = lua_tointeger(l, -1);
215 int rv = cs_subset_he_native_set(NeoMutt->sub, he, value, err);
216 if (CSR_RESULT(rv) != CSR_SUCCESS)
217 rc = -1;
218 break;
219 }
220 case DT_BOOL:
221 {
222 const intptr_t value = lua_toboolean(l, -1);
223 int rv = cs_subset_he_native_set(NeoMutt->sub, he, value, err);
224 if (CSR_RESULT(rv) != CSR_SUCCESS)
225 rc = -1;
226 break;
227 }
228 default:
229 luaL_error(l, "Unsupported NeoMutt parameter type %d for %s",
230 CONFIG_TYPE(cdef->type), param);
231 rc = -1;
232 break;
233 }
234
235 buf_pool_release(&err);
236 return rc;
237}
size_t buf_strcpy_n(struct Buffer *buf, const char *s, size_t len)
Copy a string into a Buffer.
Definition: buffer.c:416
struct HashElem * cs_create_variable(const struct ConfigSet *cs, struct ConfigDef *cdef, struct Buffer *err)
Create and register one config item.
Definition: set.c:326
#define CSR_RESULT(x)
Definition: set.h:50
#define CSR_SUCCESS
Action completed successfully.
Definition: set.h:33
size_t mutt_str_startswith(const char *str, const char *prefix)
Check whether a string starts with a prefix.
Definition: string.c:231
void buf_expand_path(struct Buffer *buf)
Create the canonical path.
Definition: muttlib.c:315
Definition: set.h:62
const char * name
User-visible name.
Definition: set.h:63
uint32_t type
Variable type, e.g. DT_STRING.
Definition: set.h:64
struct ConfigSet * cs
Parent ConfigSet.
Definition: subset.h:50
The item stored in a Hash Table.
Definition: hash.h:44
int type
Type of data stored in Hash Table, e.g. DT_STRING.
Definition: hash.h:45
void * data
User-supplied data.
Definition: hash.h:47
struct ConfigSubset * sub
Inherited config items.
Definition: neomutt.h:47
int cs_subset_he_native_set(const struct ConfigSubset *sub, struct HashElem *he, intptr_t value, struct Buffer *err)
Natively set the value of a HashElem config item.
Definition: subset.c:277
int cs_subset_he_string_set(const struct ConfigSubset *sub, struct HashElem *he, const char *value, struct Buffer *err)
Set a config item by string.
Definition: subset.c:366
struct HashElem * cs_subset_lookup(const struct ConfigSubset *sub, const char *name)
Find an inherited config item.
Definition: subset.c:189
#define CONFIG_TYPE(t)
Definition: types.h:49
@ DT_NUMBER
a number
Definition: types.h:38
@ DT_SLIST
a list of strings
Definition: types.h:42
@ DT_BOOL
boolean option
Definition: types.h:32
@ DT_QUAD
quad-option (no/yes/ask-no/ask-yes)
Definition: types.h:40
@ DT_STRING
a string
Definition: types.h:44
@ DT_SORT
sorting methods
Definition: types.h:43
@ DT_MYVAR
a user-defined variable (my_foo)
Definition: types.h:37
@ DT_MBTABLE
multibyte char table
Definition: types.h:36
@ DT_ADDRESS
e-mail address
Definition: types.h:31
@ DT_ENUM
an enumeration
Definition: types.h:33
@ DT_REGEX
regular expressions
Definition: types.h:41
@ DT_PATH
a path to a file/directory
Definition: types.h:39
+ Here is the call graph for this function:

◆ lua_mutt_get()

static int lua_mutt_get ( lua_State *  l)
static

Get a NeoMutt variable.

Parameters
lLua State
Return values
1Success
-1Error

Definition at line 245 of file mutt_lua.c.

246{
247 const char *param = lua_tostring(l, -1);
248 mutt_debug(LL_DEBUG2, " * lua_mutt_get(%s)\n", param);
249
250 struct HashElem *he = cs_subset_lookup(NeoMutt->sub, param);
251 if (!he)
252 {
253 mutt_debug(LL_DEBUG2, " * error\n");
254 luaL_error(l, "NeoMutt parameter not found %s", param);
255 return -1;
256 }
257
258 struct ConfigDef *cdef = he->data;
259
260 switch (CONFIG_TYPE(cdef->type))
261 {
262 case DT_ADDRESS:
263 case DT_ENUM:
264 case DT_MBTABLE:
265 case DT_MYVAR:
266 case DT_REGEX:
267 case DT_SLIST:
268 case DT_SORT:
269 case DT_STRING:
270 {
271 struct Buffer *value = buf_pool_get();
272 int rc = cs_subset_he_string_get(NeoMutt->sub, he, value);
273 if (CSR_RESULT(rc) != CSR_SUCCESS)
274 {
275 buf_pool_release(&value);
276 return -1;
277 }
278
279 struct Buffer *escaped = buf_pool_get();
280 escape_string(escaped, buf_string(value));
281 lua_pushstring(l, buf_string(escaped));
282 buf_pool_release(&value);
283 buf_pool_release(&escaped);
284 return 1;
285 }
286 case DT_QUAD:
287 lua_pushinteger(l, (unsigned char) cdef->var);
288 return 1;
289 case DT_NUMBER:
290 lua_pushinteger(l, (signed short) cdef->var);
291 return 1;
292 case DT_BOOL:
293 lua_pushboolean(l, (bool) cdef->var);
294 return 1;
295 default:
296 luaL_error(l, "NeoMutt parameter type %d unknown for %s", cdef->type, param);
297 return -1;
298 }
299}
size_t escape_string(struct Buffer *buf, const char *src)
Write a string to a buffer, escaping special characters.
Definition: dump.c:48
intptr_t var
Storage for the variable.
Definition: set.h:82
int cs_subset_he_string_get(const struct ConfigSubset *sub, struct HashElem *he, struct Buffer *result)
Get a config item as a string.
Definition: subset.c:334
+ Here is the call graph for this function:

◆ lua_mutt_enter()

static int lua_mutt_enter ( lua_State *  l)
static

Execute NeoMutt config from Lua.

Parameters
lLua State
Return values
>=0Success
-1Error

Definition at line 307 of file mutt_lua.c.

308{
309 mutt_debug(LL_DEBUG2, " * lua_mutt_enter()\n");
310 struct Buffer *err = buf_pool_get();
311 char *buf = mutt_str_dup(lua_tostring(l, -1));
312 int rc = 0;
313
314 if (parse_rc_line(buf, err))
315 {
316 luaL_error(l, "NeoMutt error: %s", buf_string(err));
317 rc = -1;
318 }
319 else
320 {
321 if (!lua_pushstring(l, buf_string(err)))
322 handle_error(l);
323 else
324 rc++;
325 }
326
327 FREE(&buf);
328 buf_pool_release(&err);
329
330 return rc;
331}
#define FREE(x)
Definition: memory.h:55
char * mutt_str_dup(const char *str)
Copy a string, safely.
Definition: string.c:254
enum CommandResult parse_rc_line(const char *line, struct Buffer *err)
Parse a line of user config.
Definition: rc.c:109
+ Here is the call graph for this function:

◆ lua_mutt_message()

static int lua_mutt_message ( lua_State *  l)
static

Display a message in Neomutt.

Parameters
lLua State
Return values
0Always

Definition at line 338 of file mutt_lua.c.

339{
340 mutt_debug(LL_DEBUG2, " * lua_mutt_message()\n");
341 const char *msg = lua_tostring(l, -1);
342 if (msg)
343 mutt_message("%s", msg);
344 return 0;
345}
#define mutt_message(...)
Definition: logging2.h:92

◆ lua_mutt_error()

static int lua_mutt_error ( lua_State *  l)
static

Display an error in Neomutt.

Parameters
lLua State
Return values
0Always

Definition at line 352 of file mutt_lua.c.

353{
354 mutt_debug(LL_DEBUG2, " * lua_mutt_error()\n");
355 const char *msg = lua_tostring(l, -1);
356 if (msg)
357 mutt_error("%s", msg);
358 return 0;
359}

◆ lua_expose_command()

static void lua_expose_command ( lua_State *  l,
const struct Command cmd 
)
static

Expose a NeoMutt command to the Lua interpreter.

Parameters
lLua state
cmdNeoMutt Command

Definition at line 366 of file mutt_lua.c.

367{
368 char buf[1024] = { 0 };
369 snprintf(buf, sizeof(buf), "mutt.command.%s = function (...); mutt.call('%s', ...); end",
370 cmd->name, cmd->name);
371 (void) luaL_dostring(l, buf);
372}
const char * name
Name of the command.
Definition: command.h:51
+ Here is the caller graph for this function:

◆ luaopen_mutt_decl()

static int luaopen_mutt_decl ( lua_State *  l)
static

Declare some NeoMutt types to the Lua interpreter.

Parameters
lLua State
Return values
1Always

Definition at line 401 of file mutt_lua.c.

402{
403 mutt_debug(LL_DEBUG2, " * luaopen_mutt()\n");
404 luaL_newlib(l, LuaMuttCommands);
405 int lib_idx = lua_gettop(l);
406
407 // clang-format off
408 lua_pushstring(l, "VERSION"); lua_pushstring(l, mutt_make_version()); lua_settable(l, lib_idx);;
409 lua_pushstring(l, "QUAD_YES"); lua_pushinteger(l, MUTT_YES); lua_settable(l, lib_idx);;
410 lua_pushstring(l, "QUAD_NO"); lua_pushinteger(l, MUTT_NO); lua_settable(l, lib_idx);;
411 lua_pushstring(l, "QUAD_ASKYES"); lua_pushinteger(l, MUTT_ASKYES); lua_settable(l, lib_idx);;
412 lua_pushstring(l, "QUAD_ASKNO"); lua_pushinteger(l, MUTT_ASKNO); lua_settable(l, lib_idx);;
413 // clang-format on
414
415 return 1;
416}
static const luaL_Reg LuaMuttCommands[]
List of Lua commands to register.
Definition: mutt_lua.c:383
@ MUTT_ASKNO
Ask the user, defaulting to 'No'.
Definition: quad.h:40
@ MUTT_NO
User answered 'No', or assume 'No'.
Definition: quad.h:38
@ MUTT_ASKYES
Ask the user, defaulting to 'Yes'.
Definition: quad.h:41
@ MUTT_YES
User answered 'Yes', or assume 'Yes'.
Definition: quad.h:39
const char * mutt_make_version(void)
Generate the NeoMutt version string.
Definition: version.c:295
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ luaopen_mutt()

static void luaopen_mutt ( lua_State *  l)
static

Expose a 'Mutt' object to the Lua interpreter.

Parameters
lLua State

Definition at line 422 of file mutt_lua.c.

423{
424 luaL_requiref(l, "mutt", luaopen_mutt_decl, 1);
425 (void) luaL_dostring(l, "mutt.command = {}");
426
427 const struct Command **cp = NULL;
429 {
430 const struct Command *cmd = *cp;
431
432 lua_expose_command(l, cmd);
433 }
434}
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
Definition: array.h:214
static void lua_expose_command(lua_State *l, const struct Command *cmd)
Expose a NeoMutt command to the Lua interpreter.
Definition: mutt_lua.c:366
static int luaopen_mutt_decl(lua_State *l)
Declare some NeoMutt types to the Lua interpreter.
Definition: mutt_lua.c:401
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ lua_init()

static bool lua_init ( lua_State **  l)
static

Initialise a Lua State.

Parameters
[out]lLua State
Return values
trueSuccessful

Definition at line 441 of file mutt_lua.c.

442{
443 if (!l)
444 return false;
445 if (*l)
446 return true;
447
448 mutt_debug(LL_DEBUG2, " * lua_init()\n");
449 *l = luaL_newstate();
450
451 if (!*l)
452 {
453 mutt_error(_("Error: Couldn't load the lua interpreter"));
454 return false;
455 }
456
457 lua_atpanic(*l, handle_panic);
458
459 /* load various Lua libraries */
460 luaL_openlibs(*l);
461 luaopen_mutt(*l);
462
463 return true;
464}
#define _(a)
Definition: message.h:28
static void luaopen_mutt(lua_State *l)
Expose a 'Mutt' object to the Lua interpreter.
Definition: mutt_lua.c:422
static int handle_panic(lua_State *l)
Handle a panic in the Lua interpreter.
Definition: mutt_lua.c:75
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mutt_lua_init()

void mutt_lua_init ( void  )

Setup feature commands.

Definition at line 469 of file mutt_lua.c.

470{
472}
bool commands_register(struct CommandArray *ca, const struct Command *cmds)
Add commands to Commands array.
Definition: command.c:51
static const struct Command LuaCommands[]
List of NeoMutt commands to register.
Definition: mutt_lua.c:62
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ LuaState

lua_State* LuaState = NULL
static

Global Lua State.

Definition at line 57 of file mutt_lua.c.

◆ LuaCommands

const struct Command LuaCommands[]
static
Initial value:
= {
{ "lua", mutt_lua_parse, 0 },
{ "lua-source", mutt_lua_source_file, 0 },
{ NULL, NULL, 0 },
}
enum CommandResult mutt_lua_source_file(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'lua-source' command - Implements Command::parse() -.
Definition: mutt_lua.c:499
enum CommandResult mutt_lua_parse(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'lua' command - Implements Command::parse() -.
Definition: mutt_lua.c:477

List of NeoMutt commands to register.

Definition at line 62 of file mutt_lua.c.

◆ LuaMuttCommands

const luaL_Reg LuaMuttCommands[]
static
Initial value:
= {
{ "set", lua_mutt_set },
{ "get", lua_mutt_get },
{ "call", lua_mutt_call },
{ "enter", lua_mutt_enter },
{ "print", lua_mutt_message },
{ "message", lua_mutt_message },
{ "error", lua_mutt_error },
{ NULL, NULL },
}
static int lua_mutt_enter(lua_State *l)
Execute NeoMutt config from Lua.
Definition: mutt_lua.c:307
static int lua_mutt_message(lua_State *l)
Display a message in Neomutt.
Definition: mutt_lua.c:338
static int lua_mutt_call(lua_State *l)
Call a NeoMutt command by name.
Definition: mutt_lua.c:102
static int lua_mutt_get(lua_State *l)
Get a NeoMutt variable.
Definition: mutt_lua.c:245
static int lua_mutt_error(lua_State *l)
Display an error in Neomutt.
Definition: mutt_lua.c:352
static int lua_mutt_set(lua_State *l)
Set a NeoMutt variable.
Definition: mutt_lua.c:156

List of Lua commands to register.

In NeoMutt, run:

‘:lua mutt.message('hello’)`

and it will call lua_mutt_message()

Definition at line 383 of file mutt_lua.c.