forked from neomutt/neomutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
message.h
66 lines (57 loc) · 1.61 KB
/
message.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
/**
* @file
* Manage IMAP messages
*
* @authors
* Copyright (C) 1996-1999 Brandon Long <[email protected]>
* Copyright (C) 1999-2000,2005 Brendan Cully <[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_IMAP_MESSAGE_H
#define _MUTT_IMAP_MESSAGE_H
#include <stdbool.h>
#include <time.h>
#include "list.h"
/**
* struct ImapHeaderData - IMAP-specific header data
*
* IMAP-specific header data, stored as Header->data
*/
struct ImapHeaderData
{
/* server-side flags */
bool read : 1;
bool old : 1;
bool deleted : 1;
bool flagged : 1;
bool replied : 1;
bool changed : 1;
bool parsed : 1;
unsigned int uid; /**< 32-bit Message UID */
unsigned int msn; /**< Message Sequence Number */
struct ListHead keywords;
};
/**
* struct ImapHeader - IMAP-specific header
*/
struct ImapHeader
{
struct ImapHeaderData *data;
time_t received;
long content_length;
};
#define HEADER_DATA(ph) ((struct ImapHeaderData *) ((ph)->data))
#endif /* _MUTT_IMAP_MESSAGE_H */