NeoMutt  2020-04-24
Teaching an old dog new tricks
DOXYGEN
mutt.h
Go to the documentation of this file.
1 
24 #ifndef MUTT_MUTT_H
25 #define MUTT_MUTT_H
26 
27 #include "config.h"
28 #include <stddef.h>
29 #include <limits.h>
30 #include <stdint.h>
31 #include "keymap.h"
32 
33 struct Mapping;
34 
35 /* On OS X 10.5.x, wide char functions are inlined by default breaking
36  * --without-wc-funcs compilation
37  */
38 #ifdef __APPLE_CC__
39 #define _DONT_USE_CTYPE_INLINE_
40 #endif
41 
42 /* PATH_MAX is undefined on the hurd */
43 #ifndef PATH_MAX
44 #define PATH_MAX 4096
45 #endif
46 
47 #ifdef HAVE_FGETS_UNLOCKED
48 #define fgets fgets_unlocked
49 #endif
50 
51 #ifdef HAVE_FGETC_UNLOCKED
52 #define fgetc fgetc_unlocked
53 #endif
54 
55 typedef uint16_t CompletionFlags;
56 #define MUTT_COMP_NO_FLAGS 0
57 #define MUTT_ALIAS (1 << 0)
58 #define MUTT_FILE (1 << 1)
59 #define MUTT_EFILE (1 << 2)
60 #define MUTT_CMD (1 << 3)
61 #define MUTT_PASS (1 << 4)
62 #define MUTT_CLEAR (1 << 5)
63 #define MUTT_COMMAND (1 << 6)
64 #define MUTT_PATTERN (1 << 7)
65 #define MUTT_LABEL (1 << 8)
66 #define MUTT_NM_QUERY (1 << 9)
67 #define MUTT_NM_TAG (1 << 10)
68 
69 typedef uint16_t TokenFlags;
70 #define MUTT_TOKEN_NO_FLAGS 0
71 #define MUTT_TOKEN_EQUAL (1 << 0)
72 #define MUTT_TOKEN_CONDENSE (1 << 1)
73 #define MUTT_TOKEN_SPACE (1 << 2)
74 #define MUTT_TOKEN_QUOTE (1 << 3)
75 #define MUTT_TOKEN_PATTERN (1 << 4)
76 #define MUTT_TOKEN_COMMENT (1 << 5)
77 #define MUTT_TOKEN_SEMICOLON (1 << 6)
78 #define MUTT_TOKEN_BACKTICK_VARS (1 << 7)
79 #define MUTT_TOKEN_NOSHELL (1 << 8)
80 #define MUTT_TOKEN_QUESTION (1 << 9)
81 
82 
88 {
89  MUTT_ALL = 1,
107 
109 };
110 
111 /* flags for parse_spam_list */
112 #define MUTT_SPAM 1
113 #define MUTT_NOSPAM 2
114 
115 char *mutt_compile_help(char *buf, size_t buflen, enum MenuType menu, const struct Mapping *items);
116 void reset_value(const char *name);
117 
118 #endif /* MUTT_MUTT_H */
Deleted messages.
Definition: mutt.h:99
Manage keymappings.
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_ALIAS.
Definition: mutt.h:55
MenuType
Types of GUI selections.
Definition: keymap.h:69
Messages in limited view.
Definition: mutt.h:103
char * mutt_compile_help(char *buf, size_t buflen, enum MenuType menu, const struct Mapping *items)
Create the text for the help menu.
Definition: help.c:116
Messages to be un-deleted.
Definition: mutt.h:97
Flagged messages.
Definition: mutt.h:100
No messages.
Definition: mutt.h:90
Messages to be purged (bypass trash)
Definition: mutt.h:98
Messages that have been replied to.
Definition: mutt.h:93
All messages.
Definition: mutt.h:89
MessageType
To set flags or match patterns.
Definition: mutt.h:87
const char * name
Definition: pgpmicalg.c:46
Old messages.
Definition: mutt.h:92
void reset_value(const char *name)
Messages to be deleted.
Definition: mutt.h:96
Superseded messages.
Definition: mutt.h:105
Tagged messages.
Definition: mutt.h:101
New messages.
Definition: mutt.h:91
Messages that have been read.
Definition: mutt.h:94
Expired messages.
Definition: mutt.h:104
Unread messages.
Definition: mutt.h:95
Mapping between user-readable string and a constant.
Definition: mapping.h:29
Messages to be un-tagged.
Definition: mutt.h:102
uint16_t TokenFlags
Flags for mutt_extract_token(), e.g. MUTT_TOKEN_EQUAL.
Definition: mutt.h:69
Trashed messages.
Definition: mutt.h:106