/* Copyright (c) 2015-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "mail-storage.h"
#include "mail-types.h"
#include "push-notification-drivers.h"
#include "push-notification-events.h"
#include "push-notification-event-flagsset.h"
#include "push-notification-txn-msg.h"
static void *push_notification_event_flagsset_default_config(void)
{
return &default_config;
}
static void push_notification_event_flagsset_debug_msg
(struct push_notification_txn_event *event)
{
const char *const *keyword;
}
}
}
}
}
}
}
static struct push_notification_event_flagsset_data *
struct push_notification_txn_msg *msg,
struct push_notification_event_config *ec)
{
struct push_notification_event_flagsset_data, 1);
}
return data;
}
static void push_notification_event_flagsset_flags_event(
struct push_notification_txn *ptxn,
struct push_notification_event_config *ec,
struct push_notification_txn_msg *msg,
enum mail_flags old_flags)
{
};
unsigned int i;
for (i = 0; i < N_ELEMENTS(flag_check_always); i++) {
if ((flags & flag_check_always[i]) != 0 &&
(old_flags & flag_check_always[i]) == 0) {
flags_set |= flag_check_always[i];
}
}
if (!config->hide_deleted &&
(flags & MAIL_DELETED) != 0 &&
(old_flags & MAIL_DELETED) == 0) {
}
}
/* Only create data element if at least one flag was set. */
if (flags_set != 0) {
}
}
static void push_notification_event_flagsset_keywords_event(
struct push_notification_txn *ptxn,
struct push_notification_event_config *ec,
struct push_notification_txn_msg *msg,
const char *const *old_keywords)
{
break;
}
}
}
}
}
static void push_notification_event_flagsset_free_msg(
struct push_notification_txn_event *event)
{
}
}
/* Event definition */
extern struct push_notification_event push_notification_event_flagsset;
.name = EVENT_NAME,
.init = {
},
.msg = {
},
.msg_triggers = {
}
};