NeoMutt  2021-02-05-89-gabe350
Teaching an old dog new tricks
DOXYGEN
mutt_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 "keymap.h"
31 #include "where.h"
32 
33 #ifdef MAIN_C
34 /* so that global vars get included */
35 #include "mx.h"
36 #include "sort.h"
37 #include "ncrypt/lib.h"
38 #endif /* MAIN_C */
39 
40 WHERE struct Colors *Colors;
41 
43 
45 WHERE char ErrorBuf[256];
48 
49 WHERE char *HomeDir;
51 
52 WHERE char *Username;
53 
56 
57 extern const char *GitVer;
58 
60 
61 /* Lists of strings */
62 WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList));
63 WHERE struct ListHead AutoViewList INITVAL(STAILQ_HEAD_INITIALIZER(AutoViewList));
64 WHERE struct ListHead HeaderOrderList INITVAL(STAILQ_HEAD_INITIALIZER(HeaderOrderList));
65 WHERE struct ListHead MimeLookupList INITVAL(STAILQ_HEAD_INITIALIZER(MimeLookupList));
66 WHERE struct ListHead Muttrc INITVAL(STAILQ_HEAD_INITIALIZER(Muttrc));
67 WHERE struct ListHead TempAttachmentsList INITVAL(STAILQ_HEAD_INITIALIZER(TempAttachmentsList));
68 WHERE struct ListHead UserHeader INITVAL(STAILQ_HEAD_INITIALIZER(UserHeader));
69 
70 WHERE struct RegexList Alternates INITVAL(STAILQ_HEAD_INITIALIZER(Alternates));
71 WHERE struct RegexList UnAlternates INITVAL(STAILQ_HEAD_INITIALIZER(UnAlternates));
72 
73 /* flags for received signals */
74 WHERE SIG_ATOMIC_VOLATILE_T SigInt;
75 WHERE SIG_ATOMIC_VOLATILE_T SigWinch;
76 
78 
79 /* All the variables below are backing for config items */
80 
81 WHERE struct Address *C_From;
82 
90 WHERE char *C_Editor;
93 
94 WHERE char *C_Mbox;
96 WHERE char *C_Folder;
97 
98 WHERE char *C_Record;
99 WHERE char *C_Pager;
106 WHERE char *C_Shell;
113 
116 WHERE short C_Wrap;
117 
118 /* These variables are backing for config items */
119 WHERE struct Regex *C_Mask;
122 
123 /* Quad-options */
124 WHERE unsigned char C_Bounce;
125 WHERE unsigned char C_Delete;
127 WHERE unsigned char C_MimeForward;
128 WHERE unsigned char C_Print;
129 WHERE unsigned char C_Quit;
130 
138 WHERE bool C_Beep;
172 
173 #endif /* MUTT_GLOBALS_H */
C_AttributionLocale
WHERE char * C_AttributionLocale
Config: Locale for dates in the attribution message.
Definition: mutt_globals.h:86
C_AskCc
WHERE bool C_AskCc
Config: Ask the user for the carbon-copy recipients.
Definition: mutt_globals.h:135
C_Header
WHERE bool C_Header
Config: Include the message headers in the reply email (Weed applies)
Definition: mutt_globals.h:149
C_Timeout
WHERE short C_Timeout
Config: Time to wait for user input in menus.
Definition: mutt_globals.h:115
SigInt
WHERE SIG_ATOMIC_VOLATILE_T SigInt
true after SIGINT is received
Definition: mutt_globals.h:74
C_SaveEmpty
WHERE bool C_SaveEmpty
Config: (mbox,mmdf) Preserve empty mailboxes.
Definition: mutt_globals.h:158
C_MimeForward
WHERE unsigned char C_MimeForward
Config: Forward a message as a 'message/RFC822' MIME part.
Definition: mutt_globals.h:127
SigWinch
WHERE SIG_ATOMIC_VOLATILE_T SigWinch
true after SIGWINCH is received
Definition: mutt_globals.h:75
C_SizeUnitsOnLeft
WHERE bool C_SizeUnitsOnLeft
Config: Show the units as a prefix to the size.
Definition: mutt_globals.h:163
C_Hostname
WHERE char * C_Hostname
Config: Fully-qualified domain name of this machine.
Definition: mutt_globals.h:91
C_RealName
WHERE char * C_RealName
Config: Real name of the user.
Definition: mutt_globals.h:105
C_TextFlowed
WHERE bool C_TextFlowed
Config: Generate 'format=flowed' messages.
Definition: mutt_globals.h:166
C_DeleteUntag
WHERE bool C_DeleteUntag
Config: Untag messages when they are marked for deletion.
Definition: mutt_globals.h:145
C_Visual
WHERE char * C_Visual
Config: Editor to use when '~v' is given in the built-in editor.
Definition: mutt_globals.h:112
C_BeepNew
WHERE bool C_BeepNew
Config: Make a noise when new mail arrives.
Definition: mutt_globals.h:139
C_SleepTime
WHERE short C_SleepTime
Config: Time to pause after certain info messages.
Definition: mutt_globals.h:114
C_Attribution
WHERE char * C_Attribution
Config: Message to start a reply, "On DATE, PERSON wrote:".
Definition: mutt_globals.h:85
C_BrailleFriendly
WHERE bool C_BrailleFriendly
Config: Move the cursor to the beginning of the line.
Definition: mutt_globals.h:140
Regex
Cached regular expression.
Definition: regex3.h:89
Context
The "current" mailbox.
Definition: context.h:38
C_UseDomain
WHERE bool C_UseDomain
Config: Qualify local addresses using this domain.
Definition: mutt_globals.h:168
C_StatusFormat
WHERE char * C_StatusFormat
Config: printf-like format string for the index's status line.
Definition: mutt_globals.h:109
INITVAL
WHERE struct ListHead AlternativeOrderList INITVAL(STAILQ_HEAD_INITIALIZER(AlternativeOrderList))
List of preferred mime types to display.
C_ReadOnly
WHERE bool C_ReadOnly
Config: Open folders in read-only mode.
Definition: mutt_globals.h:154
C_TsIconFormat
WHERE char * C_TsIconFormat
Config: printf-like format string for the terminal's icon title.
Definition: mutt_globals.h:111
Username
WHERE char * Username
User's login name.
Definition: mutt_globals.h:52
Context
WHERE struct Context * Context
Definition: mutt_globals.h:42
C_MailcapPath
WHERE struct Slist * C_MailcapPath
Config: Colon-separated list of mailcap files.
Definition: mutt_globals.h:95
C_ForwardAttachments
WHERE unsigned char C_ForwardAttachments
Config: Forward attachments when forwarding a message.
Definition: mutt_globals.h:126
C_ForwardQuote
WHERE bool C_ForwardQuote
Config: Automatically quote a forwarded message using $indent_string
Definition: mutt_globals.h:148
C_Editor
WHERE char * C_Editor
Config: External command to use as an email editor.
Definition: mutt_globals.h:90
C_AutoTag
WHERE bool C_AutoTag
Config: Automatically apply actions to all tagged messages.
Definition: mutt_globals.h:137
C_Score
WHERE bool C_Score
Config: Use message scoring.
Definition: mutt_globals.h:159
C_SaveAddress
WHERE bool C_SaveAddress
Config: Use sender's full address as a default save folder.
Definition: mutt_globals.h:157
C_Suspend
WHERE bool C_Suspend
Config: Allow the user to suspend NeoMutt using '^Z'.
Definition: mutt_globals.h:165
C_AbortKey
WHERE char * C_AbortKey
Config: String representation of key to abort prompts.
Definition: mutt_globals.h:84
AttachmentMarker
WHERE char AttachmentMarker[256]
Unique ANSI string to mark PGP messages in an email.
Definition: mutt_globals.h:46
C_PrintDecodeWeed
WHERE bool C_PrintDecodeWeed
Config: Control whether to weed headers when printing an email.
Definition: mutt_globals.h:153
ErrorBuf
WHERE char ErrorBuf[256]
Copy of the last error message.
Definition: mutt_globals.h:45
C_ConfigCharset
WHERE char * C_ConfigCharset
Config: Character set that the config files are in.
Definition: mutt_globals.h:88
keymap.h
C_Wrap
WHERE short C_Wrap
Config: Width to wrap text in the pager.
Definition: mutt_globals.h:116
lib.h
C_Folder
WHERE char * C_Folder
Config: Base folder for a set of mailboxes.
Definition: mutt_globals.h:96
C_Bounce
WHERE unsigned char C_Bounce
Config: Confirm before bouncing a message.
Definition: mutt_globals.h:124
WHERE
#define WHERE
Definition: where.h:30
C_Shell
WHERE char * C_Shell
Config: External command to run subshells in.
Definition: mutt_globals.h:106
C_QuoteRegex
WHERE struct Regex * C_QuoteRegex
Config: Regex to match quoted text in a reply.
Definition: mutt_globals.h:120
C_CountAlternatives
WHERE bool C_CountAlternatives
Config: Recurse inside multipart/alternatives while counting attachments.
Definition: mutt_globals.h:144
C_Beep
WHERE bool C_Beep
Config: Make a noise when an error occurs.
Definition: mutt_globals.h:138
CurrentMenu
WHERE enum MenuType CurrentMenu
Current Menu, e.g. MENU_PAGER.
Definition: mutt_globals.h:77
LastFolder
WHERE char * LastFolder
Previously selected mailbox.
Definition: mutt_globals.h:55
ProtectedHeaderMarker
WHERE char ProtectedHeaderMarker[256]
Unique ANSI string to mark protected headers in an email.
Definition: mutt_globals.h:47
C_SizeShowMb
WHERE bool C_SizeShowMb
Config: Show sizes in megabytes for sizes greater than 1 megabyte.
Definition: mutt_globals.h:162
C_TsEnabled
WHERE bool C_TsEnabled
Config: Allow NeoMutt to set the terminal status line and icon.
Definition: mutt_globals.h:167
C_IndexFormat
WHERE char * C_IndexFormat
Config: printf-like format string for the index menu (emails)
Definition: mutt_globals.h:92
C_ArrowCursor
WHERE bool C_ArrowCursor
Config: Use an arrow '->' instead of highlighting in the index.
Definition: mutt_globals.h:131
C_ForwardDecode
WHERE bool C_ForwardDecode
Config: Decode the message when forwarding it.
Definition: mutt_globals.h:147
Colors
Definition: color.h:129
C_AsciiChars
WHERE bool C_AsciiChars
Config: Use plain ASCII characters, when drawing email threads.
Definition: mutt_globals.h:133
C_SizeShowFractions
WHERE bool C_SizeShowFractions
Config: Show size fractions with a single decimal place.
Definition: mutt_globals.h:161
C_FlagSafe
WHERE bool C_FlagSafe
Config: Protect flagged messages from deletion.
Definition: mutt_globals.h:146
C_PrintCommand
WHERE char * C_PrintCommand
Config: External command to print a message.
Definition: mutt_globals.h:103
C_AutoEdit
WHERE bool C_AutoEdit
Config: Skip the initial compose menu and edit the email.
Definition: mutt_globals.h:136
C_ToggleQuotedShowLevels
WHERE int C_ToggleQuotedShowLevels
Config: Number of quote levels to show with toggle-quoted.
Definition: mutt_globals.h:121
C_Quit
WHERE unsigned char C_Quit
Config: Prompt before exiting NeoMutt.
Definition: mutt_globals.h:129
C_SimpleSearch
WHERE char * C_SimpleSearch
Config: Pattern to search for when search doesn't contain ~'s.
Definition: mutt_globals.h:107
C_Record
WHERE char * C_Record
Config: Folder to save 'sent' messages.
Definition: mutt_globals.h:98
C_SizeShowBytes
WHERE bool C_SizeShowBytes
Config: Show smaller sizes in bytes.
Definition: mutt_globals.h:160
C_PipeDecodeWeed
WHERE bool C_PipeDecodeWeed
Config: Control whether to weed headers when piping an email.
Definition: mutt_globals.h:152
lib.h
STAILQ_HEAD_INITIALIZER
#define STAILQ_HEAD_INITIALIZER(head)
Definition: queue.h:321
C_NewMailCommand
WHERE char * C_NewMailCommand
Config: External command to run when new mail arrives.
Definition: mutt_globals.h:104
C_MailCheckRecent
WHERE bool C_MailCheckRecent
Config: Notify the user about new mail since the last time the mailbox was opened.
Definition: mutt_globals.h:150
sort.h
ShortHostname
WHERE char * ShortHostname
Short version of the hostname.
Definition: mutt_globals.h:50
C_TsStatusFormat
WHERE char * C_TsStatusFormat
Config: printf-like format string for the terminal's status (window title)
Definition: mutt_globals.h:110
C_SpoolFile
WHERE char * C_SpoolFile
Config: Inbox.
Definition: mutt_globals.h:108
C_WrapSearch
WHERE bool C_WrapSearch
Config: Wrap around when the search hits the end.
Definition: mutt_globals.h:170
C_Delete
WHERE unsigned char C_Delete
Config: Really delete messages, when the mailbox is closed.
Definition: mutt_globals.h:125
C_Postponed
WHERE char * C_Postponed
Config: Folder to store postponed messages.
Definition: mutt_globals.h:101
MenuType
MenuType
Types of GUI selections.
Definition: keymap.h:72
C_Pager
WHERE char * C_Pager
Config: External command for viewing messages, or 'builtin' to use NeoMutt's.
Definition: mutt_globals.h:99
C_AbortBackspace
WHERE bool C_AbortBackspace
Config: Hitting backspace against an empty prompt aborts the prompt.
Definition: mutt_globals.h:83
C_Mbox
WHERE char * C_Mbox
Config: Folder that receives read emails (see Move)
Definition: mutt_globals.h:94
C_Markers
WHERE bool C_Markers
Config: Display a '+' at the beginning of wrapped lines in the pager.
Definition: mutt_globals.h:151
C_ResumeDraftFiles
WHERE bool C_ResumeDraftFiles
Config: Process draft files like postponed messages.
Definition: mutt_globals.h:156
C_AskBcc
WHERE bool C_AskBcc
Config: Ask the user for the blind-carbon-copy recipients.
Definition: mutt_globals.h:134
where.h
Colors
WHERE struct Colors * Colors
Wrapper around the user's colour settings.
Definition: mutt_globals.h:40
ErrorBufMessage
WHERE bool ErrorBufMessage
true if the last message was an error
Definition: mutt_globals.h:44
CurrentFolder
WHERE char * CurrentFolder
Currently selected mailbox.
Definition: mutt_globals.h:54
C_ArrowString
WHERE char * C_ArrowString
Config: Use an custom string for arrow_cursor.
Definition: mutt_globals.h:132
C_From
WHERE struct Address * C_From
Config: Default 'From' address to use, if isn't otherwise set.
Definition: mutt_globals.h:81
C_StatusOnTop
WHERE bool C_StatusOnTop
Config: Display the status bar at the top.
Definition: mutt_globals.h:164
C_Resolve
WHERE bool C_Resolve
Config: Move to the next email whenever a command modifies an email.
Definition: mutt_globals.h:155
C_IndentString
WHERE char * C_IndentString
Config: String used to indent 'reply' text.
Definition: mutt_globals.h:102
GitVer
const char * GitVer
mx.h
TagFormats
WHERE struct HashTable * TagFormats
Hash Table of tag-formats (tag -> format string)
Definition: mutt_globals.h:59
HomeDir
WHERE char * HomeDir
User's home directory.
Definition: mutt_globals.h:49
C_DateFormat
WHERE char * C_DateFormat
Config: strftime format string for the d expando.
Definition: mutt_globals.h:89
C_CopyDecodeWeed
WHERE bool C_CopyDecodeWeed
Config: Controls whether to weed headers when copying or saving emails.
Definition: mutt_globals.h:143
C_AttachFormat
WHERE char * C_AttachFormat
Config: printf-like format string for the attachment menu.
Definition: mutt_globals.h:87
HashTable
A Hash Table.
Definition: hash.h:84
C_Mask
WHERE struct Regex * C_Mask
Config: Only display files/dirs matching this regex in the browser.
Definition: mutt_globals.h:119
C_ConfirmAppend
WHERE bool C_ConfirmAppend
Config: Confirm before appending emails to a mailbox.
Definition: mutt_globals.h:141
C_PagerFormat
WHERE char * C_PagerFormat
Config: printf-like format string for the pager's status bar.
Definition: mutt_globals.h:100
C_Print
WHERE unsigned char C_Print
Config: Confirm before printing a message.
Definition: mutt_globals.h:128
C_ConfirmCreate
WHERE bool C_ConfirmCreate
Config: Confirm before creating a new mailbox.
Definition: mutt_globals.h:142
C_WaitKey
WHERE bool C_WaitKey
Config: Prompt to press a key after running external commands.
Definition: mutt_globals.h:169
C_WriteBcc
WHERE bool C_WriteBcc
Config: Write out the 'Bcc' field when preparing to send a mail.
Definition: mutt_globals.h:171
Address
An email address.
Definition: address.h:34
Slist
String list.
Definition: slist.h:46