forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmutt.h
96 lines (83 loc) · 2.84 KB
/
mutt.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
* @file
* Many unsorted constants and some structs
*
* @authors
* Copyright (C) 1996-2002,2010,2013 Michael R. Elkins <[email protected]>
* Copyright (C) 2004 g10 Code GmbH
* Copyright (C) 2018-2024 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_MUTT_H
#define MUTT_MUTT_H
#include "config.h"
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
/* On OS X 10.5.x, wide char functions are inlined by default breaking
* --without-wc-funcs compilation
*/
#ifdef __APPLE_CC__
#define _DONT_USE_CTYPE_INLINE_
#endif
/* PATH_MAX is undefined on the hurd */
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
#ifdef HAVE_FGETS_UNLOCKED
#define fgets fgets_unlocked
#endif
#ifdef HAVE_FGETC_UNLOCKED
#define fgetc fgetc_unlocked
#endif
extern bool StartupComplete;
typedef uint8_t CompletionFlags; ///< Flags for mw_get_field(), e.g. #MUTT_COMP_NO_FLAGS
#define MUTT_COMP_NO_FLAGS 0 ///< No flags are set
#define MUTT_COMP_CLEAR (1 << 0) ///< Clear input if printable character is pressed
#define MUTT_COMP_PASS (1 << 1) ///< Password mode (no echo)
#define MUTT_COMP_UNBUFFERED (1 << 2) ///< Ignore macro buffer
/**
* enum MessageType - To set flags or match patterns
*
* @sa mutt_set_flag(), mutt_pattern_func()
*/
enum MessageType
{
MUTT_ALL = 1, ///< All messages
MUTT_NONE, ///< No messages
MUTT_NEW, ///< New messages
MUTT_OLD, ///< Old messages
MUTT_REPLIED, ///< Messages that have been replied to
MUTT_READ, ///< Messages that have been read
MUTT_UNREAD, ///< Unread messages
MUTT_DELETE, ///< Messages to be deleted
MUTT_UNDELETE, ///< Messages to be un-deleted
MUTT_PURGE, ///< Messages to be purged (bypass trash)
MUTT_DELETED, ///< Deleted messages
MUTT_FLAG, ///< Flagged messages
MUTT_TAG, ///< Tagged messages
MUTT_UNTAG, ///< Messages to be un-tagged
MUTT_LIMIT, ///< Messages in limited view
MUTT_EXPIRED, ///< Expired messages
MUTT_SUPERSEDED, ///< Superseded messages
MUTT_TRASH, ///< Trashed messages
MUTT_MT_MAX,
};
/* flags for parse_spam_list */
#define MUTT_SPAM 1
#define MUTT_NOSPAM 2
void reset_value(const char *name);
#endif /* MUTT_MUTT_H */