Displaying 2 results from an estimated 2 matches for "event_set_append_log_prefix".
2020 Aug 13
1
2.3.11.3 mail_cache_open_or_create_path called with null path
...f %s NULL in "Cache %s: "
dovecot-lda: vfprintf %s NULL in "Cache %s: "
src/lib-index/mail-cache.c:
..
557 struct mail_cache *
558 mail_cache_open_or_create_path(struct mail_index *index, const char *path)
559 {
..
565 cache->filepath = i_strdup(path);
..
572 event_set_append_log_prefix(cache->event,
573 t_strdup_printf("Cache %s: ", cache->filepath);
..
Seems something is wrong to have this function called with no cache path?
2023 Mar 20
1
Dovecot unified event filtering
...plugin for Dovecot. In my plugin, I create a child event of the session's user event:
```c
struct event *plugin_event = event_create(list->ns->user->event);
event_set_name(plugin_event, "oidc_shared_mailboxes_plugin");
event_set_min_log_level(plugin_event, LOG_TYPE_WARNING);
event_set_append_log_prefix(plugin_event, "oidc-shared-mailboxes-plugin: ");
```
I then use passthrough events like the following:
```
e_debug(event_create_passthrough(data->event)->event(), "Modified mailbox_list_iter_init was called.");
e_warning(event_create_passthrough(event)->event(), "...