freswa / dovecot-xaps-plugin

MIT License
35 stars 6 forks source link

Compiling on latest Dovecot #11

Open sirrkitt opened 8 months ago

sirrkitt commented 8 months ago

Compiled this on bleeding edge Dovecot from their git and it looks like there has been a change to push_notification_event_init that now needs four fields instead of three:

void push_notification_event_init(struct push_notification_driver_txn *dtxn,
                  const char *event_name, void *config,
                  struct event *log_event)

I tried digging through their examples but couldn't quite make sense of the *log_event but I added NULL for the last field and it built and appears to be functioning:

push_notification_event_init(dtxn, (*event)->name, NULL, NULL);

Hope this helps in the future

freswa commented 6 months ago

Thank you for the heads up. I'll look into that once Dovecot 3 is stable enough.