NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.c File Reference

Postponed Emails Functions. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "pattern/lib.h"
#include "functions.h"
#include "mview.h"
#include "protos.h"
+ Include dependency graph for functions.c:

Go to the source code of this file.

Functions

static int op_delete (struct PostponeData *pd, int op)
 Delete the current entry - Implements postpone_function_t -.
 
static int op_exit (struct PostponeData *pd, int op)
 Exit this menu - Implements postpone_function_t -.
 
static int op_generic_select_entry (struct PostponeData *pd, int op)
 Select the current entry - Implements postpone_function_t -.
 
static int op_search (struct PostponeData *pd, int op)
 Search for a regular expression - Implements postpone_function_t -.
 
int postpone_function_dispatcher (struct MuttWindow *win, int op)
 Perform a Postpone function - Implements function_dispatcher_t -.
 
struct MailboxViewpostponed_get_mailbox_view (struct MuttWindow *dlg)
 Extract the Mailbox from the Postponed Dialog.
 

Variables

const struct MenuFuncOp OpPostponed []
 Functions for the Postpone Menu.
 
const struct MenuOpSeq PostponedDefaultBindings []
 Key bindings for the Postpone Menu.
 
static const struct PostponeFunction PostponeFunctions []
 All the NeoMutt functions that the Postpone supports.
 

Detailed Description

Postponed Emails Functions.

Authors
  • Richard Russon
  • Dennis Schön

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

Function Documentation

◆ postponed_get_mailbox_view()

struct MailboxView * postponed_get_mailbox_view ( struct MuttWindow dlg)

Extract the Mailbox from the Postponed Dialog.

Parameters
dlgPostponed Dialog
Return values
ptrMailbox view

Definition at line 213 of file functions.c.

214{
215 if (!dlg)
216 return NULL;
217
218 struct PostponeData *pd = dlg->wdata;
219 if (!pd)
220 return NULL;
221
222 return pd->mailbox_view;
223}
void * wdata
Private data.
Definition: mutt_window.h:144
Data to pass to the Postpone Functions.
Definition: functions.h:34
struct MailboxView * mailbox_view
Postponed Mailbox view.
Definition: functions.h:35
+ Here is the caller graph for this function:

Variable Documentation

◆ OpPostponed

const struct MenuFuncOp OpPostponed[]
Initial value:
= {
{ "exit", OP_EXIT },
{ "delete-entry", OP_DELETE },
{ "undelete-entry", OP_UNDELETE },
{ NULL, 0 },
}

Functions for the Postpone Menu.

Definition at line 52 of file functions.c.

◆ PostponedDefaultBindings

const struct MenuOpSeq PostponedDefaultBindings[]
Initial value:
= {
{ OP_DELETE, "d" },
{ OP_EXIT, "q" },
{ OP_UNDELETE, "u" },
{ 0, NULL },
}

Key bindings for the Postpone Menu.

Definition at line 62 of file functions.c.

◆ PostponeFunctions

const struct PostponeFunction PostponeFunctions[]
static
Initial value:
= {
{ OP_DELETE, op_delete },
{ OP_EXIT, op_exit },
{ OP_GENERIC_SELECT_ENTRY, op_generic_select_entry },
{ OP_SEARCH, op_search },
{ OP_SEARCH_NEXT, op_search },
{ OP_SEARCH_OPPOSITE, op_search },
{ OP_SEARCH_REVERSE, op_search },
{ OP_UNDELETE, op_delete },
{ 0, NULL },
}
static int op_delete(struct AliasMenuData *mdata, int op)
delete the current entry - Implements alias_function_t -
Definition: functions.c:159
static int op_generic_select_entry(struct AliasMenuData *mdata, int op)
select the current entry - Implements alias_function_t -
Definition: functions.c:205
static int op_exit(struct AliasMenuData *mdata, int op)
exit this menu - Implements alias_function_t -
Definition: functions.c:191
static int op_search(struct AliasMenuData *mdata, int op)
search for a regular expression - Implements alias_function_t -
Definition: functions.c:310

All the NeoMutt functions that the Postpone supports.

Definition at line 160 of file functions.c.