I have successfully setup imap_email_content integration however the body of the email is encoded in base64. I have been able to successfully decode it from the terminal using echo -n '<encoded body>' | base64 -d
I can get this to work in the configuration using a command line sensor with some static encoded value however I can’t figure out how to decode it from the body attribute of the imap_email_content. Using a command line sensor doesn’t work and I don’t believe commands can be used in templates.
Does anyone have any ideas on how this can be achieved?