I'm working on my virtual keywords plugin  to add an apparently
simple feature: add a keyword to a message when it is moved or copied
into a virtual folder (let's forget about what keyword to add, I'm
starting with a hard-coded one to understand Dovecot plugin
So I've added a mail_copy hook by the notify plugin  and did a
simple call to mail_update_keywords . The current source code shows
a call to mail_get_backend_mail, this is me experimenting, I've also
tried calling mail_update_keywords directly on "dst" mail.
This happens after my hook returns.
Now, before activating core dumps and starting to do some serious
debugging and reverse engineering, I ask: do I have to do something
extra such as opening a transaction or something? Isn't the notify
plugin supposed to do that already?