On 02/13/2025 8:18 AM MST Zakaria via dovecot <dovecot@dovecot.org> wrote:
Hi Dovecot Mailing List members,
I just struggled to understand the plugin events and wondered if anyone can help on this.
I wanted to capture the event when I mark message as not spam move event as well as when I move message to new folder event,
I found MessageNew and MessageAppend, and couldnt figure out which one is responsible of the relevant event?
https://doc.dovecot.org/2.4.0/core/plugins/push_notification.html#push-notif...
The RFC linked provides the answer. MessageNew is triggered by mail delivery agent (i.e. message delivery). Moving messages is not a delivery event, but are events triggered within the mailstore itself, so it's a MessageAppend action.
Also, feedback to the dovecot dev team, it would great if we have push notification redis driver.
Redis functionality can be added by using the Lua driver. There are no plans to provide additional drivers since Lua can be used for custom use-cases.
michael