Index Window. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "attach/lib.h"
#include "color/lib.h"
#include "menu/lib.h"
#include "postpone/lib.h"
#include "alternates.h"
#include "globals.h"
#include "mutt_thread.h"
#include "muttlib.h"
#include "mview.h"
#include "private_data.h"
#include "score.h"
#include "shared_data.h"
#include "subjectrx.h"
Go to the source code of this file.
Functions | |
static void | sort_use_threads_warn (void) |
Alert the user to odd $sort settings. | |
static int | config_sort (const struct ConfigSubset *sub) |
React to changes to "sort". | |
static int | config_use_threads (const struct ConfigSubset *sub) |
React to changes to "use_threads". | |
void | index_adjust_sort_threads (const struct ConfigSubset *sub) |
Adjust use_threads/sort/sort_aux. | |
static int | config_reply_regex (struct MailboxView *mv) |
React to changes to $reply_regex. | |
static int | index_altern_observer (struct NotifyCallback *nc) |
Notification that an 'alternates' command has occurred - Implements observer_t -. | |
static int | index_attach_observer (struct NotifyCallback *nc) |
Notification that an 'attachments' command has occurred - Implements observer_t -. | |
static int | index_color_observer (struct NotifyCallback *nc) |
Notification that a Color has changed - Implements observer_t -. | |
static bool | config_check_sort (const char *option) |
Does this config option affect the Index sorting? | |
bool | config_check_index (const char *option) |
Does this config option affect the Index? | |
static int | index_config_observer (struct NotifyCallback *nc) |
Notification that a Config Variable has changed - Implements observer_t -. | |
static int | index_global_observer (struct NotifyCallback *nc) |
Notification that a Global event occurred - Implements observer_t -. | |
static int | index_index_observer (struct NotifyCallback *nc) |
Notification that the Index has changed - Implements observer_t -. | |
static int | index_menu_observer (struct NotifyCallback *nc) |
Notification that the Menu has changed - Implements observer_t -. | |
static int | index_score_observer (struct NotifyCallback *nc) |
Notification that a 'score' command has occurred - Implements observer_t -. | |
static int | index_subjrx_observer (struct NotifyCallback *nc) |
Notification that a 'subjectrx' command has occurred - Implements observer_t -. | |
static int | index_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. | |
static int | index_recalc (struct MuttWindow *win) |
Recalculate the Index display - Implements MuttWindow::recalc() -. | |
static int | index_repaint (struct MuttWindow *win) |
Repaint the Index display - Implements MuttWindow::repaint() -. | |
struct MuttWindow * | index_window_new (struct IndexPrivateData *priv) |
Create a new Index Window (list of Emails) | |
struct MailboxView * | get_current_mailbox_view (void) |
Get the current Mailbox view. | |
struct Mailbox * | get_current_mailbox (void) |
Get the current Mailbox. | |
struct Menu * | get_current_menu (void) |
Get the current Menu. | |
Index Window.
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 index.c.
|
static |
Alert the user to odd $sort settings.
Definition at line 95 of file index.c.
|
static |
React to changes to "sort".
sub | the config subset that was just updated |
0 | Successfully handled |
-1 | Error |
Definition at line 112 of file index.c.
|
static |
React to changes to "use_threads".
sub | the config subset that was just updated |
0 | Successfully handled |
-1 | Error |
Definition at line 160 of file index.c.
void index_adjust_sort_threads | ( | const struct ConfigSubset * | sub | ) |
Adjust use_threads/sort/sort_aux.
sub | the config subset that was just updated |
Definition at line 184 of file index.c.
|
static |
React to changes to $reply_regex.
mv | Mailbox View |
0 | Successfully handled |
-1 | Error |
Definition at line 196 of file index.c.
|
static |
Does this config option affect the Index sorting?
option | Config option |
true | Index may need resorting |
< Resort the mailbox
< Resort from scratch
< Resort subthreads
Definition at line 316 of file index.c.
bool config_check_index | ( | const char * | option | ) |
Does this config option affect the Index?
option | Config option |
true | Index may need redrawing |
Definition at line 355 of file index.c.
struct MuttWindow * index_window_new | ( | struct IndexPrivateData * | priv | ) |
Create a new Index Window (list of Emails)
priv | Private Index data |
ptr | New Window |
Definition at line 651 of file index.c.
struct MailboxView * get_current_mailbox_view | ( | void | ) |
Get the current Mailbox view.
ptr | Current Mailbox view |
Search for the last (most recent) dialog that has an Index. Then return the Mailbox from its shared data.
Definition at line 683 of file index.c.
struct Mailbox * get_current_mailbox | ( | void | ) |
Get the current Mailbox.
ptr | Current Mailbox |
Search for the last (most recent) dialog that has an Index. Then return the Mailbox from its shared data.
Definition at line 715 of file index.c.
struct Menu * get_current_menu | ( | void | ) |
Get the current Menu.
ptr | Current Menu |
Search for the last (most recent) dialog that has an Index. Then return the Menu from its private data.
Definition at line 731 of file index.c.