Prototype for a Postpone Function.
More...
Prototype for a Postpone Function.
- Parameters
-
menu | Menu |
op | Operation to perform, e.g. OP_DELETE |
- Return values
-
◆ op_delete()
Delete the current entry - Implements postpone_function_t -.
Definition at line 72 of file functions.c.
73{
77
79
83 if (c_resolve && (index < (menu->
max - 1)))
84 {
87 {
90 }
91 }
92 else
93 {
95 }
96
98}
bool cs_subset_bool(const struct ConfigSubset *sub, const char *name)
Get a boolean config item by name.
@ FR_SUCCESS
Valid function - successfully performed.
void mutt_set_flag(struct Mailbox *m, struct Email *e, enum MessageType flag, bool bf, bool upd_mbox)
Set a flag on an email.
@ MUTT_DELETE
Messages to be deleted.
short PostCount
Number of postponed (draft) emails.
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.
Container for Accounts, Notifications.
struct ConfigSubset * sub
Inherited config items.
struct MailboxView * mailbox_view
Postponed Mailbox view.
struct Menu * menu
Postponed Menu.
◆ op_exit()
◆ op_generic_select_entry()
static int op_generic_select_entry |
( |
struct PostponeData * |
pd, |
|
|
int |
op |
|
) |
| |
|
static |
◆ op_search()
Search for a regular expression - Implements postpone_function_t -.
Definition at line 125 of file functions.c.
126{
128 switch (op)
129 {
130 case OP_SEARCH:
133 break;
134 case OP_SEARCH_REVERSE:
137 break;
138 case OP_SEARCH_NEXT:
139 break;
140 case OP_SEARCH_OPPOSITE:
142 break;
143 }
144
148 if (index != -1)
150
152}
int mutt_search_command(struct MailboxView *mv, struct Menu *menu, int cur, struct SearchState *state, SearchFlags flags)
Perform a search.
#define SEARCH_OPPOSITE
Search in the opposite direction.
uint8_t SearchFlags
Flags for a specific search, e.g. SEARCH_PROMPT.
#define SEARCH_NO_FLAGS
No flags are set.
#define SEARCH_PROMPT
Ask for search input.
struct SearchState * search_state
State of the current search.
bool reverse
search backwards