NeoMutt  2023-05-17-33-gce4425
Teaching an old dog new tricks
DOXYGEN
globals.h
Go to the documentation of this file.
1
23#ifndef MUTT_GLOBALS_H
24#define MUTT_GLOBALS_H
25
26#include "config.h"
27#include <signal.h> // IWYU pragma: keep
28#include <stdbool.h>
29#include "mutt/lib.h"
30#include "menu/lib.h"
31
32extern bool ErrorBufMessage;
33extern char ErrorBuf[256];
34
35extern char *HomeDir;
36extern char *ShortHostname;
37
38extern char *Username;
39
40extern char *CurrentFolder;
41extern char *LastFolder;
42
43extern const char *GitVer;
44
45/* Lists of strings */
46extern struct ListHead AlternativeOrderList;
47extern struct ListHead AutoViewList;
48extern struct ListHead HeaderOrderList;
49extern struct ListHead MimeLookupList;
50extern struct ListHead Muttrc;
51extern struct ListHead TempAttachmentsList;
52extern struct ListHead UserHeader;
53
54/* flags for received signals */
55extern SIG_ATOMIC_VOLATILE_T SigInt;
56extern SIG_ATOMIC_VOLATILE_T SigWinch;
57
58extern enum MenuType CurrentMenu;
59
60/* pseudo options */
61extern bool OptAttachMsg;
62#ifdef USE_AUTOCRYPT
63extern bool OptAutocryptGpgme;
64#endif
65extern bool OptDontHandlePgpKeys;
66extern bool OptForceRefresh;
67extern bool OptIgnoreMacroEvents;
68extern bool OptKeepQuiet;
69extern bool OptMenuPopClearScreen;
70extern bool OptMsgErr;
71extern bool OptNeedRescore;
72extern bool OptNeedResort;
73#ifdef USE_NNTP
74extern bool OptNews;
75extern bool OptNewsSend;
76#endif
77extern bool OptNoCurses;
78extern bool OptPgpCheckTrust;
79extern bool OptRedrawTree;
80extern bool OptResortInit;
81extern bool OptSearchInvalid;
82extern bool OptSearchReverse;
83extern bool OptSortSubthreads;
84
85extern char **EnvList;
86
87#endif /* MUTT_GLOBALS_H */
bool OptDontHandlePgpKeys
(pseudo) used to extract PGP keys
Definition: globals.c:70
bool OptNews
(pseudo) used to change reader mode
Definition: globals.c:79
char * LastFolder
Previously selected mailbox.
Definition: globals.c:45
bool OptAutocryptGpgme
(pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c
Definition: globals.c:68
char * ShortHostname
Short version of the hostname.
Definition: globals.c:40
bool OptKeepQuiet
(pseudo) shut up the message and refresh functions while we are executing an external program
Definition: globals.c:73
bool OptAttachMsg
(pseudo) used by attach-message
Definition: globals.c:66
struct ListHead TempAttachmentsList
List of temporary files for displaying attachments.
Definition: globals.c:54
bool OptNoCurses
(pseudo) when sending in batch mode
Definition: globals.c:82
bool OptNeedRescore
(pseudo) set when the 'score' command is used
Definition: globals.c:76
bool OptPgpCheckTrust
(pseudo) used by dlg_select_pgp_key()
Definition: globals.c:83
bool OptResortInit
(pseudo) used to force the next resort to be from scratch
Definition: globals.c:85
struct ListHead MimeLookupList
List of mime types that that shouldn't use the mailcap entry.
Definition: globals.c:52
struct ListHead AlternativeOrderList
List of preferred mime types to display.
Definition: globals.c:49
struct ListHead AutoViewList
List of mime types to auto view.
Definition: globals.c:50
bool OptSearchInvalid
(pseudo) used to invalidate the search pattern
Definition: globals.c:86
char * HomeDir
User's home directory.
Definition: globals.c:39
bool OptMenuPopClearScreen
(pseudo) clear the screen when popping the last menu
Definition: globals.c:74
bool OptMsgErr
(pseudo) used by mutt_error/mutt_message
Definition: globals.c:75
bool OptForceRefresh
(pseudo) refresh even during macros
Definition: globals.c:71
bool ErrorBufMessage
true if the last message was an error
Definition: globals.c:36
char * CurrentFolder
Currently selected mailbox.
Definition: globals.c:44
SIG_ATOMIC_VOLATILE_T SigWinch
true after SIGWINCH is received
Definition: globals.c:60
char ErrorBuf[256]
Copy of the last error message.
Definition: globals.c:37
struct ListHead UserHeader
List of custom headers to add to outgoing emails.
Definition: globals.c:55
enum MenuType CurrentMenu
Current Menu, e.g. MENU_PAGER.
Definition: globals.c:62
struct ListHead Muttrc
List of config files to read.
Definition: globals.c:53
char * Username
User's login name.
Definition: globals.c:42
bool OptSortSubthreads
(pseudo) used when $sort_aux changes
Definition: globals.c:88
struct ListHead HeaderOrderList
List of header fields in the order they should be displayed.
Definition: globals.c:51
bool OptNeedResort
(pseudo) used to force a re-sort
Definition: globals.c:77
bool OptRedrawTree
(pseudo) redraw the thread tree
Definition: globals.c:84
const char * GitVer
SIG_ATOMIC_VOLATILE_T SigInt
true after SIGINT is received
Definition: globals.c:59
bool OptNewsSend
(pseudo) used to change behavior when posting
Definition: globals.c:80
char ** EnvList
Private copy of the environment variables.
Definition: globals.c:91
bool OptSearchReverse
(pseudo) used by ci_search_command
Definition: globals.c:87
bool OptIgnoreMacroEvents
(pseudo) don't process macro/push/exec events while set
Definition: globals.c:72
GUI present the user with a selectable list.
Convenience wrapper for the library headers.
MenuType
Types of GUI selections.
Definition: type.h:36