NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
DOXYGEN
globals.c File Reference

Global variables. More...

#include "config.h"
#include <stddef.h>
#include <signal.h>
#include <stdbool.h>
#include "mutt/lib.h"
#include "menu/lib.h"
+ Include dependency graph for globals.c:

Go to the source code of this file.

Variables

bool ErrorBufMessage
 true if the last message was an error More...
 
char ErrorBuf [256]
 Copy of the last error message. More...
 
char * HomeDir = NULL
 User's home directory. More...
 
char * ShortHostname = NULL
 Short version of the hostname. More...
 
char * Username = NULL
 User's login name. More...
 
char * CurrentFolder = NULL
 Currently selected mailbox. More...
 
char * LastFolder = NULL
 Previously selected mailbox. More...
 
struct ListHead AlternativeOrderList = STAILQ_HEAD_INITIALIZER(AlternativeOrderList)
 List of preferred mime types to display. More...
 
struct ListHead AutoViewList = STAILQ_HEAD_INITIALIZER(AutoViewList)
 List of mime types to auto view. More...
 
struct ListHead HeaderOrderList = STAILQ_HEAD_INITIALIZER(HeaderOrderList)
 List of header fields in the order they should be displayed. More...
 
struct ListHead MimeLookupList = STAILQ_HEAD_INITIALIZER(MimeLookupList)
 List of mime types that that shouldn't use the mailcap entry. More...
 
struct ListHead Muttrc = STAILQ_HEAD_INITIALIZER(Muttrc)
 List of config files to read. More...
 
struct ListHead TempAttachmentsList = STAILQ_HEAD_INITIALIZER(TempAttachmentsList)
 List of temporary files for displaying attachments. More...
 
struct ListHead UserHeader = STAILQ_HEAD_INITIALIZER(UserHeader)
 List of custom headers to add to outgoing emails. More...
 
SIG_ATOMIC_VOLATILE_T SigInt
 true after SIGINT is received More...
 
SIG_ATOMIC_VOLATILE_T SigWinch
 true after SIGWINCH is received More...
 
enum MenuType CurrentMenu
 Current Menu, e.g. MENU_PAGER. More...
 
bool OptAttachMsg
 (pseudo) used by attach-message More...
 
bool OptAutocryptGpgme
 (pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c More...
 
bool OptDontHandlePgpKeys
 (pseudo) used to extract PGP keys More...
 
bool OptForceRefresh
 (pseudo) refresh even during macros More...
 
bool OptIgnoreMacroEvents
 (pseudo) don't process macro/push/exec events while set More...
 
bool OptKeepQuiet
 (pseudo) shut up the message and refresh functions while we are executing an external program More...
 
bool OptMenuPopClearScreen
 (pseudo) clear the screen when popping the last menu More...
 
bool OptMsgErr
 (pseudo) used by mutt_error/mutt_message More...
 
bool OptNeedRescore
 (pseudo) set when the 'score' command is used More...
 
bool OptNeedResort
 (pseudo) used to force a re-sort More...
 
bool OptNews
 (pseudo) used to change reader mode More...
 
bool OptNewsSend
 (pseudo) used to change behavior when posting More...
 
bool OptNoCurses
 (pseudo) when sending in batch mode More...
 
bool OptPgpCheckTrust
 (pseudo) used by dlg_select_pgp_key() More...
 
bool OptRedrawTree
 (pseudo) redraw the thread tree More...
 
bool OptResortInit
 (pseudo) used to force the next resort to be from scratch More...
 
bool OptSearchInvalid
 (pseudo) used to invalidate the search pattern More...
 
bool OptSearchReverse
 (pseudo) used by ci_search_command More...
 
bool OptSortSubthreads
 (pseudo) used when $sort_aux changes More...
 
char ** EnvList = NULL
 Private copy of the environment variables. More...
 

Detailed Description

Global variables.

Authors
  • Richard Russon

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

Variable Documentation

◆ ErrorBufMessage

bool ErrorBufMessage

true if the last message was an error

Definition at line 36 of file globals.c.

◆ ErrorBuf

char ErrorBuf[256]

Copy of the last error message.

Definition at line 37 of file globals.c.

◆ HomeDir

char* HomeDir = NULL

User's home directory.

Definition at line 39 of file globals.c.

◆ ShortHostname

char* ShortHostname = NULL

Short version of the hostname.

Definition at line 40 of file globals.c.

◆ Username

char* Username = NULL

User's login name.

Definition at line 42 of file globals.c.

◆ CurrentFolder

char* CurrentFolder = NULL

Currently selected mailbox.

Definition at line 44 of file globals.c.

◆ LastFolder

char* LastFolder = NULL

Previously selected mailbox.

Definition at line 45 of file globals.c.

◆ AlternativeOrderList

struct ListHead AlternativeOrderList = STAILQ_HEAD_INITIALIZER(AlternativeOrderList)

List of preferred mime types to display.

Definition at line 49 of file globals.c.

◆ AutoViewList

struct ListHead AutoViewList = STAILQ_HEAD_INITIALIZER(AutoViewList)

List of mime types to auto view.

Definition at line 50 of file globals.c.

◆ HeaderOrderList

struct ListHead HeaderOrderList = STAILQ_HEAD_INITIALIZER(HeaderOrderList)

List of header fields in the order they should be displayed.

Definition at line 51 of file globals.c.

◆ MimeLookupList

struct ListHead MimeLookupList = STAILQ_HEAD_INITIALIZER(MimeLookupList)

List of mime types that that shouldn't use the mailcap entry.

Definition at line 52 of file globals.c.

◆ Muttrc

struct ListHead Muttrc = STAILQ_HEAD_INITIALIZER(Muttrc)

List of config files to read.

Definition at line 53 of file globals.c.

◆ TempAttachmentsList

struct ListHead TempAttachmentsList = STAILQ_HEAD_INITIALIZER(TempAttachmentsList)

List of temporary files for displaying attachments.

Definition at line 54 of file globals.c.

◆ UserHeader

struct ListHead UserHeader = STAILQ_HEAD_INITIALIZER(UserHeader)

List of custom headers to add to outgoing emails.

Definition at line 55 of file globals.c.

◆ SigInt

SIG_ATOMIC_VOLATILE_T SigInt

true after SIGINT is received

Definition at line 59 of file globals.c.

◆ SigWinch

SIG_ATOMIC_VOLATILE_T SigWinch

true after SIGWINCH is received

Definition at line 60 of file globals.c.

◆ CurrentMenu

enum MenuType CurrentMenu

Current Menu, e.g. MENU_PAGER.

Definition at line 62 of file globals.c.

◆ OptAttachMsg

bool OptAttachMsg

(pseudo) used by attach-message

Definition at line 66 of file globals.c.

◆ OptAutocryptGpgme

bool OptAutocryptGpgme

(pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c

Definition at line 68 of file globals.c.

◆ OptDontHandlePgpKeys

bool OptDontHandlePgpKeys

(pseudo) used to extract PGP keys

Definition at line 70 of file globals.c.

◆ OptForceRefresh

bool OptForceRefresh

(pseudo) refresh even during macros

Definition at line 71 of file globals.c.

◆ OptIgnoreMacroEvents

bool OptIgnoreMacroEvents

(pseudo) don't process macro/push/exec events while set

Definition at line 72 of file globals.c.

◆ OptKeepQuiet

bool OptKeepQuiet

(pseudo) shut up the message and refresh functions while we are executing an external program

Definition at line 73 of file globals.c.

◆ OptMenuPopClearScreen

bool OptMenuPopClearScreen

(pseudo) clear the screen when popping the last menu

Definition at line 74 of file globals.c.

◆ OptMsgErr

bool OptMsgErr

(pseudo) used by mutt_error/mutt_message

Definition at line 75 of file globals.c.

◆ OptNeedRescore

bool OptNeedRescore

(pseudo) set when the 'score' command is used

Definition at line 76 of file globals.c.

◆ OptNeedResort

bool OptNeedResort

(pseudo) used to force a re-sort

Definition at line 77 of file globals.c.

◆ OptNews

bool OptNews

(pseudo) used to change reader mode

Definition at line 79 of file globals.c.

◆ OptNewsSend

bool OptNewsSend

(pseudo) used to change behavior when posting

Definition at line 80 of file globals.c.

◆ OptNoCurses

bool OptNoCurses

(pseudo) when sending in batch mode

Definition at line 82 of file globals.c.

◆ OptPgpCheckTrust

bool OptPgpCheckTrust

(pseudo) used by dlg_select_pgp_key()

Definition at line 83 of file globals.c.

◆ OptRedrawTree

bool OptRedrawTree

(pseudo) redraw the thread tree

Definition at line 84 of file globals.c.

◆ OptResortInit

bool OptResortInit

(pseudo) used to force the next resort to be from scratch

Definition at line 85 of file globals.c.

◆ OptSearchInvalid

bool OptSearchInvalid

(pseudo) used to invalidate the search pattern

Definition at line 86 of file globals.c.

◆ OptSearchReverse

bool OptSearchReverse

(pseudo) used by ci_search_command

Definition at line 87 of file globals.c.

◆ OptSortSubthreads

bool OptSortSubthreads

(pseudo) used when $sort_aux changes

Definition at line 88 of file globals.c.

◆ EnvList

char** EnvList = NULL

Private copy of the environment variables.

Definition at line 91 of file globals.c.