forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hdrline.h
83 lines (75 loc) · 3.51 KB
/
hdrline.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
/**
* @file
* String processing routines to generate the mail index
*
* @authors
* Copyright (C) 2018-2021 Richard Russon <[email protected]>
* Copyright (C) 2019 Pietro Cerutti <[email protected]>
* Copyright (C) 2023 Tóth János <[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_HDRLINE_H
#define MUTT_HDRLINE_H
#include <stddef.h>
#include "expando/lib.h"
struct Buffer;
struct Email;
struct Mailbox;
/**
* enum FlagChars - Index into the `$flag_chars` config variable
*/
enum FlagChars
{
FLAG_CHAR_TAGGED, ///< Character denoting a tagged email
FLAG_CHAR_IMPORTANT, ///< Character denoting a important (flagged) email
FLAG_CHAR_DELETED, ///< Character denoting a deleted email
FLAG_CHAR_DELETED_ATTACH, ///< Character denoting a deleted attachment
FLAG_CHAR_REPLIED, ///< Character denoting an email that has been replied to
FLAG_CHAR_OLD, ///< Character denoting an email that has been read
FLAG_CHAR_NEW, ///< Character denoting an unread email
FLAG_CHAR_OLD_THREAD, ///< Character denoting a thread of emails that has been read
FLAG_CHAR_NEW_THREAD, ///< Character denoting a thread containing at least one new email
FLAG_CHAR_SEMPTY, ///< Character denoting a read email, $index_format %S expando
FLAG_CHAR_ZEMPTY, ///< Character denoting a read email, $index_format %Z expando
};
/**
* enum CryptChars - Index into the `$crypt_chars` config variable
*/
enum CryptChars
{
FLAG_CHAR_CRYPT_GOOD_SIGN, ///< Character denoting a message signed with a verified key
FLAG_CHAR_CRYPT_ENCRYPTED, ///< Character denoting a message is PGP-encrypted
FLAG_CHAR_CRYPT_SIGNED, ///< Character denoting a message is signed
FLAG_CHAR_CRYPT_CONTAINS_KEY, ///< Character denoting a message contains a PGP key
FLAG_CHAR_CRYPT_NO_CRYPTO, ///< Character denoting a message has no cryptography information
};
/**
* enum ToChars - Index into the `$to_chars` config variable
*/
enum ToChars
{
FLAG_CHAR_TO_NOT_IN_THE_LIST, ///< Character denoting that the user is not in list
FLAG_CHAR_TO_UNIQUE, ///< Character denoting that the user is unique recipient
FLAG_CHAR_TO_TO, ///< Character denoting that the user is in the TO list
FLAG_CHAR_TO_CC, ///< Character denoting that the user is in the CC list
FLAG_CHAR_TO_ORIGINATOR, ///< Character denoting that the user is originator
FLAG_CHAR_TO_SUBSCRIBED_LIST, ///< Character denoting that the message is sent to a subscribed mailing list
FLAG_CHAR_TO_REPLY_TO, ///< Character denoting that the user is in the Reply-To list
};
int mutt_make_string(struct Buffer *buf, size_t max_cols, const struct Expando *exp,
struct Mailbox *m, int inpgr, struct Email *e,
MuttFormatFlags flags, const char *progress);
#endif /* MUTT_HDRLINE_H */