aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/e-mail-formatter-enums.h
blob: 862d66e4faf4f5e8ee551c909efc2593748eb90f (plain) (blame)
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
97
98
99
100
101
102
103
104
105
106
107
/*
 * e-mail-formatter-enums.h
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation.
 *
 * 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 Lesser General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef E_MAIL_FORMATTER_ENUMS_H
#define E_MAIL_FORMATTER_ENUMS_H

#include <glib.h>

G_BEGIN_DECLS

typedef enum {
    E_MAIL_FORMATTER_COLOR_BODY,        /* header area background */
    E_MAIL_FORMATTER_COLOR_CITATION,    /* citation font color */
    E_MAIL_FORMATTER_COLOR_CONTENT,     /* message area background */
    E_MAIL_FORMATTER_COLOR_FRAME,       /* frame around message area */
    E_MAIL_FORMATTER_COLOR_HEADER,      /* header font color */
    E_MAIL_FORMATTER_COLOR_TEXT,        /* message font color */
    E_MAIL_FORMATTER_NUM_COLOR_TYPES    /*< skip >*/
} EMailFormatterColor;

typedef enum { /*< flags >*/
    E_MAIL_FORMATTER_HEADER_FLAG_COLLAPSABLE = 1 << 0,
    E_MAIL_FORMATTER_HEADER_FLAG_COLLAPSED = 1 << 1,
    E_MAIL_FORMATTER_HEADER_FLAG_HTML = 1 << 2,
    E_MAIL_FORMATTER_HEADER_FLAG_NOCOLUMNS = 1 << 3,
    E_MAIL_FORMATTER_HEADER_FLAG_BOLD = 1 << 4,
    E_MAIL_FORMATTER_HEADER_FLAG_NODEC = 1 << 5,
    E_MAIL_FORMATTER_HEADER_FLAG_HIDDEN = 1 << 6,
    E_MAIL_FORMATTER_HEADER_FLAG_NOLINKS = 1 << 7,
    E_MAIL_FORMATTER_HEADER_FLAG_NOELIPSIZE = 1 << 8
} EMailFormatterHeaderFlags;

typedef enum {
    E_MAIL_FORMATTER_MODE_INVALID = -1,
    E_MAIL_FORMATTER_MODE_NORMAL = 0,
    E_MAIL_FORMATTER_MODE_SOURCE,
    E_MAIL_FORMATTER_MODE_RAW,
    E_MAIL_FORMATTER_MODE_CID,
    E_MAIL_FORMATTER_MODE_PRINTING,
    E_MAIL_FORMATTER_MODE_ALL_HEADERS
} EMailFormatterMode;

typedef enum { /*< flags >*/
    E_MAIL_FORMATTER_QUOTE_FLAG_CITE = 1 << 0,
    E_MAIL_FORMATTER_QUOTE_FLAG_HEADERS = 1 << 1,
    E_MAIL_FORMATTER_QUOTE_FLAG_KEEP_SIG    = 1 << 2  /* do not strip signature */
} EMailFormatterQuoteFlags;

/**
 * EMailImageLoadingPolicy:
 * @E_MAIL_IMAGE_LOADING_POLICY_NEVER:
 *   Never load images from a remote server.
 * @E_MAIL_IMAGE_LOADING_POLICY_SOMETIMES:
 *   Only load images from a remote server if the sender is a known contact.
 * @E_MAIL_IMAGE_LOADING_POLICY_ALWAYS:
 *   Always load images from a remote server.
 *
 * Policy for loading remote image URLs in email.  Allowing images to be
 * loaded from a remote server may have privacy implications.
 **/
typedef enum {
    E_MAIL_IMAGE_LOADING_POLICY_NEVER,
    E_MAIL_IMAGE_LOADING_POLICY_SOMETIMES,
    E_MAIL_IMAGE_LOADING_POLICY_ALWAYS
} EMailImageLoadingPolicy;

/**
 * EMailParserExtensionFlags:
 * @E_MAIL_PARSER_EXTENSION_INLINE:
 *    Don't parse as attachment.
 * @E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION:
 *    Always expand.
 * @E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE:
 *    Always check what's inside.
 **/
typedef enum { /*< flags >*/
    E_MAIL_PARSER_EXTENSION_INLINE = 1 << 0,
    E_MAIL_PARSER_EXTENSION_INLINE_DISPOSITION = 1 << 1,
    E_MAIL_PARSER_EXTENSION_COMPOUND_TYPE = 1 << 2
} EMailParserExtensionFlags;

typedef enum { /*< flags >*/
    E_MAIL_PART_VALIDITY_NONE = 0,
    E_MAIL_PART_VALIDITY_PGP = 1 << 0,
    E_MAIL_PART_VALIDITY_SMIME = 1 << 1,
    E_MAIL_PART_VALIDITY_SIGNED = 1 << 2,
    E_MAIL_PART_VALIDITY_ENCRYPTED = 1 << 3
} EMailPartValidityFlags;

G_END_DECLS

#endif /* E_MAIL_FORMATTER_ENUMS_H */