Decode Incoming Base64 Email

Moderator: crythias

Post Reply
flippertom
Znuny advanced
Posts: 120
Joined: 16 Apr 2015, 08:42
Znuny Version: 3.2.16

Decode Incoming Base64 Email

Post by flippertom »

Hello,

We are using OTRS 5.
One source system needs to send emails which are base64 encoded.
Is it possible to decode these emails when fetching? If yes, any hints for how to achieve this?

Regards,
Tom.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Decode Incoming Base64 Email

Post by jojo »

if there properely encoded OTRS should do this already. Pleas enote that OTRS 5 is without security updates since years and has known vulnerabilties
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
flippertom
Znuny advanced
Posts: 120
Joined: 16 Apr 2015, 08:42
Znuny Version: 3.2.16

Re: Decode Incoming Base64 Email

Post by flippertom »

jojo wrote: 22 Feb 2022, 19:35 if there properely encoded OTRS should do this already. Pleas enote that OTRS 5 is without security updates since years and has known vulnerabilties
Thank you for the note, we're planning for an upgrade but it will take some time.

I just sent an encoded email using echo -n 'Test123' | base64 and the ticket had the encoded text.
It did not decode automatically. Am I missing some setting?

Regards,
Tom.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Decode Incoming Base64 Email

Post by jojo »

Putting a base64 text in a plaitext mail is not a valid base64 encoded mime part. Also Thnderbird or other mailclients will not be able to decode it. Mails using a base64 mime transfer encoding will be decoded.
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
flippertom
Znuny advanced
Posts: 120
Joined: 16 Apr 2015, 08:42
Znuny Version: 3.2.16

Re: Decode Incoming Base64 Email

Post by flippertom »

jojo wrote: 22 Feb 2022, 22:51 Putting a base64 text in a plaitext mail is not a valid base64 encoded mime part. Also Thnderbird or other mailclients will not be able to decode it. Mails using a base64 mime transfer encoding will be decoded.
Understood, Thanks a lot!
Post Reply