forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
70 lines (59 loc) · 3.22 KB
/
globals.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/**
* @file
* Global variables
*
* @authors
* Copyright (C) 2023 Richard Russon <[email protected]>
*
* @copyright
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 2 of the License, or (at your option) any later
* version.
*
* 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/>.
*/
#ifndef MUTT_GLOBALS_H
#define MUTT_GLOBALS_H
#include "config.h"
#include <stdbool.h>
extern bool ErrorBufMessage; ///< true if the last message was an error
extern char ErrorBuf[1024]; ///< Copy of the last error message
extern char *HomeDir; ///< User's home directory
extern char *ShortHostname; ///< Short version of the hostname
extern char *Username; ///< User's login name
extern char *CurrentFolder; ///< Currently selected mailbox
extern char *LastFolder; ///< Previously selected mailbox
extern const char *GitVer;
/* Lists of strings */
extern struct ListHead AlternativeOrderList; ///< List of preferred mime types to display
extern struct ListHead AutoViewList; ///< List of mime types to auto view
extern struct ListHead HeaderOrderList; ///< List of header fields in the order they should be displayed
extern struct ListHead MimeLookupList; ///< List of mime types that that shouldn't use the mailcap entry
extern struct ListHead Muttrc; ///< List of config files to read
extern struct ListHead TempAttachmentsList; ///< List of temporary files for displaying attachments
extern struct ListHead UserHeader; ///< List of custom headers to add to outgoing emails
/* pseudo options */
#ifdef USE_AUTOCRYPT
extern bool OptAutocryptGpgme; ///< (pseudo) use Autocrypt context inside ncrypt/crypt_gpgme.c
#endif
extern bool OptDontHandlePgpKeys; ///< (pseudo) used to extract PGP keys
extern bool OptForceRefresh; ///< (pseudo) refresh even during macros
extern bool OptKeepQuiet; ///< (pseudo) shut up the message and refresh functions while we are executing an external program
extern bool OptMsgErr; ///< (pseudo) used by mutt_error/mutt_message
extern bool OptNeedRescore; ///< (pseudo) set when the 'score' command is used
extern bool OptNeedResort; ///< (pseudo) used to force a re-sort
extern bool OptNews; ///< (pseudo) used to change reader mode
extern bool OptNewsSend; ///< (pseudo) used to change behavior when posting
extern bool OptNoCurses; ///< (pseudo) when sending in batch mode
extern bool OptPgpCheckTrust; ///< (pseudo) used by dlg_pgp()
extern bool OptResortInit; ///< (pseudo) used to force the next resort to be from scratch
extern bool OptSortSubthreads; ///< (pseudo) used when $sort_aux changes
extern char **EnvList; ///< Private copy of the environment variables
#endif /* MUTT_GLOBALS_H */