NeoMutt  2022-04-29-215-gc12b98
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 <limits.h>
29#include <stdint.h>
30
31/* On OS X 10.5.x, wide char functions are inlined by default breaking
32 * --without-wc-funcs compilation
33 */
34#ifdef __APPLE_CC__
35#define _DONT_USE_CTYPE_INLINE_
36#endif
37
38/* PATH_MAX is undefined on the hurd */
39#ifndef PATH_MAX
40#define PATH_MAX 4096
41#endif
42
43#ifdef HAVE_FGETS_UNLOCKED
44#define fgets fgets_unlocked
45#endif
46
47#ifdef HAVE_FGETC_UNLOCKED
48#define fgetc fgetc_unlocked
49#endif
50
51typedef uint16_t CompletionFlags;
52#define MUTT_COMP_NO_FLAGS 0
53#define MUTT_COMP_ALIAS (1 << 0)
54#define MUTT_COMP_COMMAND (1 << 1)
55#define MUTT_COMP_FILE (1 << 2)
56#define MUTT_COMP_FILE_MBOX (1 << 3)
57#define MUTT_COMP_FILE_SIMPLE (1 << 4)
58#define MUTT_COMP_LABEL (1 << 5)
59#define MUTT_COMP_NM_QUERY (1 << 6)
60#define MUTT_COMP_NM_TAG (1 << 7)
61#define MUTT_COMP_PATTERN (1 << 8)
62#define MUTT_COMP_CLEAR (1 << 9)
63#define MUTT_COMP_PASS (1 << 10)
64#define MUTT_COMP_UNBUFFERED (1 << 11)
65
66typedef uint16_t TokenFlags;
67#define MUTT_TOKEN_NO_FLAGS 0
68#define MUTT_TOKEN_EQUAL (1 << 0)
69#define MUTT_TOKEN_CONDENSE (1 << 1)
70#define MUTT_TOKEN_SPACE (1 << 2)
71#define MUTT_TOKEN_QUOTE (1 << 3)
72#define MUTT_TOKEN_PATTERN (1 << 4)
73#define MUTT_TOKEN_COMMENT (1 << 5)
74#define MUTT_TOKEN_SEMICOLON (1 << 6)
75#define MUTT_TOKEN_BACKTICK_VARS (1 << 7)
76#define MUTT_TOKEN_NOSHELL (1 << 8)
77#define MUTT_TOKEN_QUESTION (1 << 9)
78#define MUTT_TOKEN_PLUS (1 << 10)
79#define MUTT_TOKEN_MINUS (1 << 11)
80
87{
106
108};
109
110/* flags for parse_spam_list */
111#define MUTT_SPAM 1
112#define MUTT_NOSPAM 2
113
114void reset_value(const char *name);
115
116#endif /* MUTT_MUTT_H */
uint16_t TokenFlags
Flags for mutt_extract_token(), e.g. MUTT_TOKEN_EQUAL.
Definition: mutt.h:66
void reset_value(const char *name)
uint16_t CompletionFlags
Flags for mutt_enter_string_full(), e.g. MUTT_COMP_ALIAS.
Definition: mutt.h:51
MessageType
To set flags or match patterns.
Definition: mutt.h:87
@ MUTT_ALL
All messages.
Definition: mutt.h:88
@ MUTT_UNDELETE
Messages to be un-deleted.
Definition: mutt.h:96
@ MUTT_TRASH
Trashed messages.
Definition: mutt.h:105
@ MUTT_LIMIT
Messages in limited view.
Definition: mutt.h:102
@ MUTT_UNTAG
Messages to be un-tagged.
Definition: mutt.h:101
@ MUTT_SUPERSEDED
Superseded messages.
Definition: mutt.h:104
@ MUTT_EXPIRED
Expired messages.
Definition: mutt.h:103
@ MUTT_MT_MAX
Definition: mutt.h:107
@ MUTT_READ
Messages that have been read.
Definition: mutt.h:93
@ MUTT_OLD
Old messages.
Definition: mutt.h:91
@ MUTT_PURGE
Messages to be purged (bypass trash)
Definition: mutt.h:97
@ MUTT_NONE
No messages.
Definition: mutt.h:89
@ MUTT_TAG
Tagged messages.
Definition: mutt.h:100
@ MUTT_FLAG
Flagged messages.
Definition: mutt.h:99
@ MUTT_DELETED
Deleted messages.
Definition: mutt.h:98
@ MUTT_DELETE
Messages to be deleted.
Definition: mutt.h:95
@ MUTT_NEW
New messages.
Definition: mutt.h:90
@ MUTT_UNREAD
Unread messages.
Definition: mutt.h:94
@ MUTT_REPLIED
Messages that have been replied to.
Definition: mutt.h:92