Browser functions. More...
#include "config.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "lib.h"
#include "attach/lib.h"
#include "editor/lib.h"
#include "history/lib.h"
#include "imap/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "nntp/lib.h"
#include "pattern/lib.h"
#include "question/lib.h"
#include "send/lib.h"
#include "functions.h"
#include "globals.h"
#include "mutt_mailbox.h"
#include "muttlib.h"
#include "mx.h"
#include "nntp/adata.h"
#include "nntp/mdata.h"
#include "private_data.h"
Go to the source code of this file.
Functions | |
static int | op_subscribe_pattern (struct BrowserPrivateData *priv, int op) |
Subscribe to newsgroups matching a pattern - Implements browser_function_t -. | |
void | destroy_state (struct BrowserState *state) |
Free the BrowserState. | |
static int | op_browser_new_file (struct BrowserPrivateData *priv, int op) |
Select a new file in this directory - Implements browser_function_t -. | |
static int | op_browser_subscribe (struct BrowserPrivateData *priv, int op) |
Subscribe to current mbox (IMAP/NNTP only) - Implements browser_function_t -. | |
static int | op_browser_tell (struct BrowserPrivateData *priv, int op) |
Display the currently selected file's name - Implements browser_function_t -. | |
static int | op_browser_toggle_lsub (struct BrowserPrivateData *priv, int op) |
Toggle view all/subscribed mailboxes (IMAP only) - Implements browser_function_t -. | |
static int | op_browser_view_file (struct BrowserPrivateData *priv, int op) |
View file - Implements browser_function_t -. | |
static int | op_catchup (struct BrowserPrivateData *priv, int op) |
Mark all articles in newsgroup as read - Implements browser_function_t -. | |
static int | op_change_directory (struct BrowserPrivateData *priv, int op) |
Change directories - Implements browser_function_t -. | |
static int | op_create_mailbox (struct BrowserPrivateData *priv, int op) |
Create a new mailbox (IMAP only) - Implements browser_function_t -. | |
static int | op_delete_mailbox (struct BrowserPrivateData *priv, int op) |
Delete the current mailbox (IMAP only) - Implements browser_function_t -. | |
static int | op_enter_mask (struct BrowserPrivateData *priv, int op) |
Enter a file mask - Implements browser_function_t -. | |
static int | op_exit (struct BrowserPrivateData *priv, int op) |
Exit this menu - Implements browser_function_t -. | |
static int | op_generic_select_entry (struct BrowserPrivateData *priv, int op) |
Select the current entry - Implements browser_function_t -. | |
static int | op_load_active (struct BrowserPrivateData *priv, int op) |
Load list of all newsgroups from NNTP server - Implements browser_function_t -. | |
static int | op_mailbox_list (struct BrowserPrivateData *priv, int op) |
List mailboxes with new mail - Implements browser_function_t -. | |
static int | op_rename_mailbox (struct BrowserPrivateData *priv, int op) |
Rename the current mailbox (IMAP only) - Implements browser_function_t -. | |
static int | op_sort (struct BrowserPrivateData *priv, int op) |
Sort messages - Implements browser_function_t -. | |
static int | op_toggle_mailboxes (struct BrowserPrivateData *priv, int op) |
Toggle whether to browse mailboxes or all files - Implements browser_function_t -. | |
int | browser_function_dispatcher (struct MuttWindow *win, int op) |
Perform a Browser function. | |
Variables | |
static const char * | Not_available_in_this_menu = N_("Not available in this menu") |
Error message for unavailable functions. | |
const struct MenuFuncOp | OpBrowser [] |
Functions for the file Browser Menu. | |
const struct MenuOpSeq | BrowserDefaultBindings [] |
Key bindings for the file Browser Menu. | |
static const struct BrowserFunction | BrowserFunctions [] |
All the NeoMutt functions that the Browser supports. | |
Browser functions.
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.
void destroy_state | ( | struct BrowserState * | state | ) |
Free the BrowserState.
state | State to free |
Frees up the memory allocated for the local-global variables.
Definition at line 137 of file functions.c.
int browser_function_dispatcher | ( | struct MuttWindow * | win, |
int | op | ||
) |
Perform a Browser function.
win | Window for the Browser |
op | Operation to perform, e.g. OP_GOTO_PARENT |
num | FunctionRetval, e.g. FR_SUCCESS |
Definition at line 1140 of file functions.c.
|
static |
Error message for unavailable functions.
Definition at line 66 of file functions.c.
const struct MenuFuncOp OpBrowser[] |
Functions for the file Browser Menu.
Definition at line 74 of file functions.c.
const struct MenuOpSeq BrowserDefaultBindings[] |
Key bindings for the file Browser Menu.
Definition at line 108 of file functions.c.
|
static |
All the NeoMutt functions that the Browser supports.
Definition at line 1102 of file functions.c.