I'm editing the script I've found in https://github.com/OTRS/otrs/blob/rel-6_0/scripts/test/GenericAgent/MailForward.pm to forward an incoming email as is via a custom module in GenericAgent.
The email is forwarded to the address specified as the TargetAddress parameter, but it's always received as a plain-text email with two attachments, file-1 (with the same plain-text version) and file-2 (with the HTML version).
I'd like to send an article that email clients show as an HTML email, with no attachments, like OTRS' own notifications. I've tried changing the MimeType parameter of ArticleSend but with no luck.
Any hint of what I need to edit?