Delta Chat Integration - Set Custom Emailheader on outgoing Emails

Delta Chat Integration - Set Custom Emailheader on outgoing Emails

Infos:
- Debian GNU/Linux 10 (buster)
- Zammad 3.3. - package

We want to integrate “Delta Chat” in our workflow to make ticket processing easier.
Delta Chat is an open source messanger that works only with email.

The only integration needed is to add specific header in the emails.

*Chat-Version: 1.0*
  • Chat-Group-ID: #{ticket.number}*
  • Chat-Group-Name: MyGroup-#{ticket.number}*

the integration can be integrated statically very well into the file
“/opt/zammad/app/models/channel/email_build.rb”
under
#notification
attr[‘Delta-Chat’] = ‘text’

The challenge for me is the unavailability of the variable #{ticket.number} that is needed.
Is there an easy way to get this variable.

Or can someone tell me where is the best place to crate these custom email-headers.

Thanks for your help

By default your subject contains the ticket slug and number (e.g. Ticket #123).
You cannot access variables during sending out if you didn’t provide it beforehand.

That’s proberbly not really working without fundamental code changes which I wouldn’t suggest.

Thanks for the Quick Response.

Is it possible to do this in a simple way or who could help us there.