4072e373384fb12ebfbff56a4470fd8766a3bda2
[apps/madmutt.git] / imap / message.h
1 /*
2  * Copyright notice from original mutt:
3  * Copyright (C) 1996-9 Brandon Long <blong@fiction.net>
4  * Copyright (C) 1999-2000 Brendan Cully <brendan@kublai.com>
5  *
6  * This file is part of mutt-ng, see http://www.muttng.org/.
7  * It's licensed under the GNU General Public License,
8  * please see the file GPL in the top level source directory.
9  */
10
11 /* message.c data structures */
12
13 #ifndef MESSAGE_H
14 #define MESSAGE_H 1
15
16 /* -- data structures -- */
17 /* IMAP-specific header data, stored as HEADER->data */
18 typedef struct imap_header_data {
19   unsigned int uid;             /* 32-bit Message UID */
20   string_list_t *keywords;
21 } IMAP_HEADER_DATA;
22
23 typedef struct {
24   unsigned int read:1;
25   unsigned int old:1;
26   unsigned int deleted:1;
27   unsigned int flagged:1;
28   unsigned int replied:1;
29   unsigned int changed:1;
30
31   unsigned int sid;
32
33   IMAP_HEADER_DATA *data;
34
35   time_t received;
36   long content_length;
37 } IMAP_HEADER;
38
39 /* -- macros -- */
40 #define HEADER_DATA(ph) ((IMAP_HEADER_DATA*) ((ph)->data))
41
42 #endif /* MESSAGE_H */