Index functions. More...
#include "config.h"
#include <limits.h>
#include <stdbool.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "alias/lib.h"
#include "gui/lib.h"
#include "mutt.h"
#include "lib.h"
#include "attach/lib.h"
#include "browser/lib.h"
#include "editor/lib.h"
#include "history/lib.h"
#include "imap/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
#include "ncrypt/lib.h"
#include "nntp/lib.h"
#include "pager/lib.h"
#include "pattern/lib.h"
#include "pop/lib.h"
#include "progress/lib.h"
#include "question/lib.h"
#include "send/lib.h"
#include "external.h"
#include "functions.h"
#include "globals.h"
#include "hook.h"
#include "mutt_header.h"
#include "mutt_mailbox.h"
#include "mutt_thread.h"
#include "muttlib.h"
#include "mview.h"
#include "mx.h"
#include "nntp/mdata.h"
#include "private_data.h"
#include "protos.h"
#include "shared_data.h"
#include "sort.h"
#include "autocrypt/lib.h"
#include "notmuch/lib.h"
#include <libintl.h>
Go to the source code of this file.
Enumerations | |
enum | ResolveMethod { RESOLVE_NEXT_EMAIL , RESOLVE_NEXT_UNDELETED , RESOLVE_NEXT_THREAD , RESOLVE_NEXT_SUBTHREAD } |
How to advance the cursor. More... | |
Functions | |
static bool | resolve_email (struct IndexPrivateData *priv, struct IndexSharedData *shared, enum ResolveMethod rm) |
Pick the next Email to advance the cursor to. | |
bool | index_next_undeleted (struct MuttWindow *win_index) |
Select the next undeleted Email (if possible) | |
static int | op_alias_dialog (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Open the aliases dialog - Implements index_function_t -. | |
static int | op_attachment_edit_type (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Edit attachment content type - Implements index_function_t -. | |
static int | op_bounce_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Remail a message to another user - Implements index_function_t -. | |
static int | op_check_traditional (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Check for classic PGP - Implements index_function_t -. | |
static int | op_compose_to_sender (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Compose new message to the current message sender - Implements index_function_t -. | |
static int | op_create_alias (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Create an alias from a message sender - Implements index_function_t -. | |
static int | op_delete (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Delete the current entry - Implements index_function_t -. | |
static int | op_delete_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Delete all messages in thread - Implements index_function_t -. | |
static int | op_display_address (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Display full address of sender - Implements index_function_t -. | |
static int | op_display_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Display a message - Implements index_function_t -. | |
static int | op_edit_label (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Add, change, or delete a message's label - Implements index_function_t -. | |
static int | op_edit_raw_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Edit the raw message (edit and edit-raw-message are synonyms) - Implements index_function_t -. | |
static int | op_end_cond (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
End of conditional execution (noop) - Implements index_function_t -. | |
static int | op_exit (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Exit this menu - Implements index_function_t -. | |
static int | op_extract_keys (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Extract supported public keys - Implements index_function_t -. | |
static int | op_flag_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Toggle a message's 'important' flag - Implements index_function_t -. | |
static int | op_forget_passphrase (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Wipe passphrases from memory - Implements index_function_t -. | |
static int | op_forward_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Forward a message with comments - Implements index_function_t -. | |
static int | op_group_reply (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Reply to all recipients - Implements index_function_t -. | |
static int | op_jump (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Jump to an index number - Implements index_function_t -. | |
static int | op_list_reply (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Reply to specified mailing list - Implements index_function_t -. | |
static int | op_list_subscribe (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Subscribe to a mailing list - Implements index_function_t -. | |
static int | op_list_unsubscribe (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Unsubscribe from mailing list - Implements index_function_t -. | |
static int | op_mail (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Compose a new mail message - Implements index_function_t -. | |
static int | op_mailbox_list (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
List mailboxes with new mail - Implements index_function_t -. | |
static int | op_mail_key (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Mail a PGP public key - Implements index_function_t -. | |
static int | op_main_break_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Break the thread in two - Implements index_function_t -. | |
static int | op_main_change_folder (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Open a different folder - Implements index_function_t -. | |
static int | op_main_collapse_all (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Collapse/uncollapse all threads - Implements index_function_t -. | |
static int | op_main_collapse_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Collapse/uncollapse current thread - Implements index_function_t -. | |
static int | op_main_delete_pattern (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Delete messages matching a pattern - Implements index_function_t -. | |
static int | op_main_limit (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Limit view to a pattern/thread - Implements index_function_t -. | |
static int | op_main_link_threads (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Link tagged message to the current one - Implements index_function_t -. | |
static int | op_main_modify_tags (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Modify (notmuch/imap) tags - Implements index_function_t -. | |
static int | op_main_next_new (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Jump to the next new message - Implements index_function_t -. | |
static int | op_main_next_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Jump to the next thread - Implements index_function_t -. | |
static int | op_main_next_undeleted (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Move to the next undeleted message - Implements index_function_t -. | |
static int | op_main_next_unread_mailbox (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Open next mailbox with unread mail - Implements index_function_t -. | |
static int | op_main_prev_undeleted (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Move to the previous undeleted message - Implements index_function_t -. | |
static int | op_main_quasi_delete (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Delete from NeoMutt, don't touch on disk - Implements index_function_t -. | |
static int | op_main_read_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Mark the current thread as read - Implements index_function_t -. | |
static int | op_main_root_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Jump to root message in thread - Implements index_function_t -. | |
static int | op_main_set_flag (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Set a status flag on a message - Implements index_function_t -. | |
static int | op_main_show_limit (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Show currently active limit pattern - Implements index_function_t -. | |
static int | op_main_sync_folder (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Save changes to mailbox - Implements index_function_t -. | |
static int | op_main_tag_pattern (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Tag messages matching a pattern - Implements index_function_t -. | |
static int | op_main_undelete_pattern (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Undelete messages matching a pattern - Implements index_function_t -. | |
static int | op_main_untag_pattern (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Untag messages matching a pattern - Implements index_function_t -. | |
static int | op_mark_msg (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Create a hotkey macro for the current message - Implements index_function_t -. | |
static int | op_next_entry (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Move to the next entry - Implements index_function_t -. | |
static int | op_pipe (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Pipe message/attachment to a shell command - Implements index_function_t -. | |
static int | op_prev_entry (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Move to the previous entry - Implements index_function_t -. | |
static int | op_print (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Print the current entry - Implements index_function_t -. | |
static int | op_query (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Query external program for addresses - Implements index_function_t -. | |
static int | op_quit (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Save changes to mailbox and quit - Implements index_function_t -. | |
static int | op_recall_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Recall a postponed message - Implements index_function_t -. | |
static int | op_reply (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Reply to a message - Implements index_function_t -. | |
static int | op_resend (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Use the current message as a template for a new one - Implements index_function_t -. | |
static int | op_save (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Make decrypted copy - Implements index_function_t -. | |
static int | op_search (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Search for a regular expression - Implements index_function_t -. | |
static int | op_sort (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Sort messages - Implements index_function_t -. | |
static int | op_tag (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Tag the current entry - Implements index_function_t -. | |
static int | op_tag_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Tag the current thread - Implements index_function_t -. | |
static int | op_toggle_new (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Toggle a message's 'new' flag - Implements index_function_t -. | |
static int | op_toggle_write (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Toggle whether the mailbox will be rewritten - Implements index_function_t -. | |
static int | op_undelete (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Undelete the current entry - Implements index_function_t -. | |
static int | op_undelete_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Undelete all messages in thread - Implements index_function_t -. | |
static int | op_view_attachments (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Show MIME attachments - Implements index_function_t -. | |
static int | op_autocrypt_acct_menu (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Manage autocrypt accounts - Implements index_function_t -. | |
static int | op_main_imap_fetch (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Force retrieval of mail from IMAP server - Implements index_function_t -. | |
static int | op_main_imap_logout_all (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Logout from all IMAP servers - Implements index_function_t -. | |
static int | op_catchup (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Mark all articles in newsgroup as read - Implements index_function_t -. | |
static int | op_get_children (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Get all children of the current message - Implements index_function_t -. | |
static int | op_get_message (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Get parent of the current message - Implements index_function_t -. | |
static int | op_main_change_group (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Open a different newsgroup - Implements index_function_t -. | |
static int | op_post (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Followup to newsgroup - Implements index_function_t -. | |
static int | op_main_entire_thread (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Read entire thread of the current message - Implements index_function_t -. | |
static int | op_main_vfolder_from_query (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Generate virtual folder from query - Implements index_function_t -. | |
static int | op_main_windowed_vfolder (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Shifts virtual folder time window - Implements index_function_t -. | |
static int | op_main_fetch_mail (struct IndexSharedData *shared, struct IndexPrivateData *priv, int op) |
Retrieve mail from POP server - Implements index_function_t -. | |
static bool | prereq (struct IndexSharedData *shared, struct Menu *menu, CheckFlags checks) |
Check the pre-requisites for a function. | |
int | index_function_dispatcher (struct MuttWindow *win, int op) |
Perform an Index function - Implements function_dispatcher_t -. | |
Variables | |
static const char * | Not_available_in_this_menu = N_("Not available in this menu") |
Error message for unavailable functions. | |
const struct MenuFuncOp | OpIndex [] |
Functions for the Index Menu. | |
const struct MenuOpSeq | IndexDefaultBindings [] |
Key bindings for the Index Menu. | |
static const struct IndexFunction | IndexFunctions [] |
All the NeoMutt functions that the Index supports. | |
Index 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.
enum ResolveMethod |
How to advance the cursor.
Enumerator | |
---|---|
RESOLVE_NEXT_EMAIL | Next email, whatever its state. |
RESOLVE_NEXT_UNDELETED | Next undeleted email. |
RESOLVE_NEXT_THREAD | Next top-level thread. |
RESOLVE_NEXT_SUBTHREAD | Next sibling sub-thread. |
Definition at line 330 of file functions.c.
|
static |
Pick the next Email to advance the cursor to.
priv | Private Index data |
shared | Shared Index data |
rm | How to advance the cursor, e.g. RESOLVE_NEXT_EMAIL |
true | Resolve succeeded |
Definition at line 345 of file functions.c.
bool index_next_undeleted | ( | struct MuttWindow * | win_index | ) |
Select the next undeleted Email (if possible)
win_index | Index Window |
true | Selection succeeded |
Definition at line 394 of file functions.c.
|
static |
Check the pre-requisites for a function.
shared | Index shared data |
menu | Current Menu |
checks | Checks to perform, see CheckFlags |
true | The checks pass successfully |
Definition at line 3068 of file functions.c.
|
static |
Error message for unavailable functions.
Definition at line 88 of file functions.c.
const struct MenuFuncOp OpIndex[] |
Functions for the Index Menu.
Definition at line 94 of file functions.c.
const struct MenuOpSeq IndexDefaultBindings[] |
Key bindings for the Index Menu.
Definition at line 239 of file functions.c.
|
static |
All the NeoMutt functions that the Index supports.
Definition at line 3117 of file functions.c.