]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
plugins/push-notification: push-notification-driver-lua - Rename push_notification_lu...
authorKarl Fleischmann <karl.fleischmann@open-xchange.com>
Mon, 7 Aug 2023 08:36:55 +0000 (10:36 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/plugins/push-notification/push-notification-driver-lua.c

index a0c1c4ed6d18929b369348d90576575d682cb0ac..08527948b1086cdb8672266f828863467ac4a35d 100644 (file)
@@ -34,7 +34,7 @@
 #include "push-notification-event-messageread.h"
 #include "push-notification-event-messagetrash.h"
 
-#define DLUA_LOG_USERENV_KEY "push_notification_lua_script_file"
+#define DLUA_LOG_USERENV_KEY "push_notification_lua_script_path"
 
 #define DLUA_FN_BEGIN_TXN "dovecot_lua_notify_begin_txn"
 #define DLUA_FN_EVENT_PREFIX "dovecot_lua_notify_event"
@@ -81,7 +81,7 @@ push_notification_driver_lua_init(
        event_set_append_log_prefix(event, "lua: ");
 
        if ((tmp = mail_user_plugin_getenv(user, DLUA_LOG_USERENV_KEY)) == NULL)
-               tmp = hash_table_lookup(config->config, (const char *)"file");
+               tmp = hash_table_lookup(config->config, (const char *)"path");
 
        if (tmp == NULL) {
                struct dlua_script *script;
@@ -97,7 +97,7 @@ push_notification_driver_lua_init(
                }
 
                event_unref(&event);
-               *error_r = "No file in config and no "
+               *error_r = "No path in config and no "
                           DLUA_LOG_USERENV_KEY " set";
                return -1;
        }