Desktop notifications: add account name (and maybe other stuff)

Actual behavior

Currently there is only sender’s name and first words of message in desktop notification ‘bubble’.

Expected behavior

Add recipient (local) mail account name, like “DeltaChat, X to Y: The message is …”

Ideal solution will be to add customizable template string with substitution, like %a = sender account name; %A = sender email address; %m = message text; %M = full message text, etc.

It will allow to more precise customization of notifications outside of desktop app; also thay may be used as signals for autmated processes (possible with good traditional mail clients, not possible with DC yet).

Or just add the possibility to call the script with args or envvars on new message event.

use bots for automation. you can run a bot with your account, that also gets the messages and can act upon them.
Like someone made a bot before that deletes all chats that receive a message with the content “/spam” automatically, this is really useful for a shared email alias with multiple users.

we aim to avoid extra settings, user customisable template strings are against our core design philosophy. This also sounds like you want to use the notifications outside of their intended purpose. I would use a bot instead, that is easier and gives you more control.