51 {
"delete-entry", OP_DELETE },
52 {
"undelete-entry", OP_UNDELETE },
53 {
"tag-entry", OP_TAG },
104 struct Mailbox *m,
bool tagged,
int count)
106 if (!ea || !menu || !m || !m->
emails)
124 int n = (count > 1) ? count : 1;
128 for (
int i = 0; i < n; i++)
152 struct Email **ep = NULL;
181 const bool bf = (
event->op == OP_DELETE);
191 if (!menu->
tag_prefix && c_resolve && ((index + num) < menu->
max))
193 const int new_index = index + num;
197 menu->
top = new_index;
250 case OP_SEARCH_REVERSE:
256 case OP_SEARCH_OPPOSITE:
296 if (!event || !dlg || !dlg->
wdata)
302 const int op =
event->op;
#define ARRAY_ADD(head, elem)
Add an element at the end of the array.
#define ARRAY_FOREACH(elem, head)
Iterate over all elements of the array.
#define ARRAY_SIZE(head)
The number of elements stored.
#define ARRAY_FREE(head)
Release all memory.
#define ARRAY_HEAD_INITIALIZER
Static initializer for arrays.
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
Convenience wrapper for the config headers.
Convenience wrapper for the core headers.
struct MuttWindow * dialog_find(struct MuttWindow *win)
Find the parent Dialog of a Window.
const char * dispatcher_get_retval_name(int rv)
Get the name of a return value.
void dispatcher_flush_on_error(int rv)
Flush pending keys after a dispatch error.
@ FR_SUCCESS
Valid function - successfully performed.
@ FR_UNKNOWN
Unknown function.
@ FR_ERROR
Valid function - error occurred.
Structs that make up an email.
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
static int op_exit(struct AliasFunctionData *fdata, const struct KeyEvent *event)
exit this menu - Implements alias_function_t -
static int op_delete(struct AliasFunctionData *fdata, const struct KeyEvent *event)
delete the current entry - Implements alias_function_t -
static int op_search(struct AliasFunctionData *fdata, const struct KeyEvent *event)
search for a regular expression - Implements alias_function_t -
static int op_generic_select_entry(struct AliasFunctionData *fdata, const struct KeyEvent *event)
select the current entry - Implements alias_function_t -
int postpone_function_dispatcher(struct MuttWindow *win, const struct KeyEvent *event)
Perform a Postpone function - Implements function_dispatcher_t -.
#define mutt_debug(LEVEL,...)
Convenience wrapper for the gui headers.
void km_menu_add_submenu(struct MenuDefinition *md, struct SubMenu *sm)
Add a SubMenu to a Menu Definition.
struct SubMenu * km_register_submenu(const struct MenuFuncOp functions[])
Register a submenu.
struct MenuDefinition * km_register_menu(int menu, const char *name)
Register a menu.
void km_menu_add_bindings(struct MenuDefinition *md, const struct MenuOpSeq bindings[])
Add Keybindings to a Menu.
@ LL_DEBUG1
Log at debug level 1.
@ MODULE_ID_POSTPONE
ModulePostpone, Postponed Emails
Convenience wrapper for the library headers.
Many unsorted constants and some structs.
@ MUTT_DELETE
Messages to be deleted.
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
const char * opcodes_get_name(int op)
Get the name of an opcode.
Match patterns to emails.
int mutt_search_command(struct MailboxView *mv, struct Menu *menu, int cur, struct SearchState *state, SearchFlags flags)
Perform a search.
static const struct MenuFuncOp OpPostponed[]
Functions for the Postpone Menu.
static const struct MenuOpSeq PostponedDefaultBindings[]
Key bindings for the Postpone Menu.
struct MailboxView * postponed_get_mailbox_view(struct MuttWindow *dlg)
Extract the Mailbox from the Postponed Dialog.
static void postpone_apply_set_deleted(struct Mailbox *m, struct EmailArray *ea, bool deleted)
Apply the deleted flag to a working set of Emails.
static int postpone_add_selection(struct EmailArray *ea, struct Menu *menu, struct Mailbox *m, bool tagged, int count)
Build a working set of Emails for an action.
static const struct PostponeFunction PostponeFunctions[]
All the NeoMutt functions that the Postpone supports.
void postponed_init_keys(struct NeoMutt *n, struct SubMenu *sm_generic)
Initialise the Postponed Keybindings - Implements ::init_keys_api.
Postponed Email Functions.
Postpone private Module data.
@ SEARCH_NONE
No flags are set.
@ SEARCH_PROMPT
Ask for search input.
@ SEARCH_OPPOSITE
Search in the opposite direction.
The envelope/body of an email.
bool deleted
Email is deleted.
int index
The absolute (unsorted) message number.
bool tagged
Email is tagged.
An event such as a keypress.
int count
Optional count prefix, e.g. 3 for 3j
int op
Function opcode, e.g. OP_HELP.
struct Mailbox * mailbox
Current Mailbox.
int msg_count
Total number of messages.
struct Email ** emails
Array of Emails.
int msg_deleted
Number of deleted messages.
void * wdata
Private data.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
Data to pass to the Postpone Functions.
struct Email * email
Selected Email.
struct SearchState * search_state
State of the current search.
bool done
Should we close the Dialog?
struct MailboxView * mailbox_view
Postponed Mailbox view.
struct Menu * menu
Postponed Menu.
postpone_function_t function
Function to call.
int op
Op code, e.g. OP_DELETE.
Postpone private Module data.
struct MenuDefinition * menu_postpone
Postpone menu definition.
short post_count
Number of postponed (draft) emails.
bool reverse
search backwards
@ MENU_POSTPONE
Select a postponed email.