Prototype for a Global Function.
More...
Prototype for a Global Function.
- Parameters
-
| op | Operation to perform, e.g. OP_VERSION |
- Return values
-
◆ op_check_stats()
| static int op_check_stats |
( |
int | op | ) |
|
|
static |
Calculate message statistics for all mailboxes - Implements global_function_t -.
Definition at line 50 of file global.c.
51{
55}
@ FR_SUCCESS
Valid function - successfully performed.
struct Mailbox * get_current_mailbox(void)
Get the current Mailbox.
int mutt_mailbox_check(struct Mailbox *m_cur, CheckStatsFlags flags)
Check all all Mailboxes for new mail.
#define MUTT_MAILBOX_CHECK_STATS
Ignore mail_check_stats and calculate statistics (used by <check-stats>)
#define MUTT_MAILBOX_CHECK_POSTPONED
Make sure the number of postponed messages is updated.
◆ op_enter_command()
| static int op_enter_command |
( |
int | op | ) |
|
|
static |
Enter a neomuttrc command - Implements global_function_t -.
Definition at line 60 of file global.c.
61{
65}
void mutt_enter_command(void)
Enter a neomutt command.
void window_redraw(struct MuttWindow *win)
Reflow, recalc and repaint a tree of Windows.
◆ op_redraw()
| static int op_redraw |
( |
int | op | ) |
|
|
static |
Clear and redraw the screen - Implements global_function_t -.
Definition at line 70 of file global.c.
71{
72 clearok(stdscr, true);
77}
void mutt_resize_screen(void)
Update NeoMutt's opinion about the window size.
void window_invalidate_all(void)
Mark all windows as in need of repaint.
◆ op_shell_escape()
| static int op_shell_escape |
( |
int | op | ) |
|
|
static |
Invoke a command in a subshell - Implements global_function_t -.
Definition at line 82 of file global.c.
83{
85 {
87 if (m_cur)
88 {
91 }
92 }
94}
bool mutt_shell_escape(void)
Invoke a command in a subshell.
time_t last_checked
Last time we checked this mailbox for new mail.
◆ op_show_log_messages()
| static int op_show_log_messages |
( |
int | op | ) |
|
|
static |
Show log (and debug) messages - Implements global_function_t -.
Definition at line 99 of file global.c.
100{
103
105 if (!fp)
106 {
110 }
111
112 char buf[32] = { 0 };
116 {
120 fputs("\n", fp);
121 }
122
124
127
129
130 pview.
banner =
"messages";
133
136
138}
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
@ FR_ERROR
Valid function - error occurred.
#define mutt_file_fclose(FP)
#define mutt_file_fopen(PATH, MODE)
@ LL_MESSAGE
Log informational message.
size_t mutt_date_localtime_format(char *buf, size_t buflen, const char *format, time_t t)
Format localtime.
struct LogLineList log_queue_get(void)
Get the Log Queue.
const char * LogLevelAbbr
Abbreviations of logging level names.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define STAILQ_FOREACH(var, head, field)
String manipulation buffer.
char * message
Message to be logged.
enum LogLevel level
Log level, e.g. LL_DEBUG1.
time_t time
Timestamp of the message.
◆ op_version()
| static int op_version |
( |
int | op | ) |
|
|
static |
Show the NeoMutt version number - Implements global_function_t -.
Definition at line 143 of file global.c.
144{
147}
#define mutt_message(...)
const char * mutt_make_version(void)
Generate the NeoMutt version string.
◆ op_what_key()
| static int op_what_key |
( |
int | op | ) |
|
|
static |
display the keycode for a key press - Implements global_function_t -
Definition at line 152 of file global.c.
153{
156}
void mw_what_key(void)
Display the value of a key -.