2
** Copyright (C) 2008 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
4
** This program is free software; you can redistribute it and/or modify
5
** it under the terms of the GNU General Public License as published by
6
** the Free Software Foundation; either version 3 of the License, or
7
** (at your option) any later version.
9
** This program is distributed in the hope that it will be useful,
10
** but WITHOUT ANY WARRANTY; without even the implied warranty of
11
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
** GNU General Public License for more details.
14
** You should have received a copy of the GNU General Public License
15
** along with this program; if not, write to the Free Software Foundation,
16
** Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#include "mu-msg-flags.h"
25
/* what kind of message is this; use by the indexer */
27
MU_MSG_STATUS_NEW, /* message is new */
28
MU_MSG_STATUS_UPDATE, /* message is to be updated */
29
MU_MSG_STATUS_CLEANUP, /* message is to be cleaned up from db */
30
MU_MSG_STATUS_CLEANED_UP, /* message has been cleaned up from db */
31
MU_MSG_STATUS_EXISTS, /* message exists (will not be cleaned up) */
32
MU_MSG_STATUS_UPTODATE /* message is up-to-date */
34
typedef enum _MuMsgStatus MuMsgStatus;
36
enum _MuMsgPriority { /* Reply-To:? */
37
MU_MSG_PRIORITY_LOW = 1 << 0,
38
MU_MSG_PRIORITY_NORMAL = 1 << 1,
39
MU_MSG_PRIORITY_HIGH = 1 << 2
41
typedef enum _MuMsgPriority MuMsgPriority;
43
enum _MuMsgContactType { /* Reply-To:? */
44
MU_MSG_CONTACT_TYPE_TO,
45
MU_MSG_CONTACT_TYPE_FROM,
46
MU_MSG_CONTACT_TYPE_CC,
47
MU_MSG_CONTACT_TYPE_BCC
49
typedef enum _MuMsgContactType MuMsgContactType;
51
struct _MuMsgContact {
52
const char *_name; /* Foo Bar */
53
const char *_addr; /* foo@bar.cuux */
54
MuMsgContactType _type; /*MU_MSG_CONTACT_TYPE_{TO,CC,BCC,FROM}*/
56
typedef struct _MuMsgContact MuMsgContact;
58
#endif /*__MU_MSG_H__*/