summaryrefslogtreecommitdiffstats
path: root/src/plugins/push-notification/push-notification-event-messageappend.h
blob: 511fc6b540a67054a0b25483ee41435532aa9579 (plain)
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
/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */

#ifndef PUSH_NOTIFICATION_EVENT_MESSAGEAPPEND_H
#define PUSH_NOTIFICATION_EVENT_MESSAGEAPPEND_H

struct push_notification_event_messageappend_config {
	enum push_notification_event_message_flags flags;
};

struct push_notification_event_messageappend_data {
	const char *from;
	const char *to;
	const char *subject;
	const char *snippet;
	/* PUSH_NOTIFICATION_MESSAGE_HDR_DATE */
	time_t date;
	int date_tz;
	/* PUSH_NOTIFICATION_MESSAGE_FLAGS */
	bool flags_set;
	enum mail_flags flags;
	/* PUSH_NOTIFICATION_MESSAGE_KEYWORDS */
	const char *const *keywords;
	/* PUSH_NOTIFICATION_MESSAGE_HDR_MESSAGE_ID */
	const char *message_id;

	struct push_notification_message_ext ext;
};

#endif