dovecot-2.2: push-notification: If other drivers triggered a non...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Oct 1 09:28:32 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/160eae376b44
changeset: 19261:160eae376b44
user: Michael Slusarz <michael.slusarz at dovecot.fi>
date: Wed Sep 30 17:45:49 2015 -0600
description:
push-notification: If other drivers triggered a non-MessageNew successful event, don't assert
diffstat:
src/plugins/push-notification/push-notification-driver-ox.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 39ae1789ba74 -r 160eae376b44 src/plugins/push-notification/push-notification-driver-ox.c
--- a/src/plugins/push-notification/push-notification-driver-ox.c Wed Sep 30 17:43:20 2015 -0600
+++ b/src/plugins/push-notification/push-notification-driver-ox.c Wed Sep 30 17:45:49 2015 -0600
@@ -266,11 +266,13 @@
(struct push_notification_driver_ox_txn *)dtxn->context;
struct mail_user *user = dtxn->ptxn->muser;
+ messagenew = push_notification_txn_msg_get_eventdata(msg, "MessageNew");
+ if (messagenew == NULL) {
+ return;
+ }
+
push_notification_driver_ox_init_global(user);
- messagenew = push_notification_txn_msg_get_eventdata(msg, "MessageNew");
- i_assert(messagenew != NULL);
-
http_req = http_client_request_url(ox_global->http_client, "PUT",
dconfig->http_url,
push_notification_driver_ox_http_callback,
More information about the dovecot-cvs
mailing list