Page MenuHome GnuPG

Forwarding mail with attachments embeded into the *.eml file will trigger GpgOL reporting an index out of range
Open, NormalPublic

Description

Forwarding mail with embeded attachments as attachment triggers Outlook (2019-Suite) on the receiving side to report

Nicht alle Anhänge können angezeigt werden.
Die unsichtbaren Anhänge sind:
<the attached *.eml file holding the mail forwarded>

Grund: Array-index außerhalb des zulässigen Bereichs.

Without an installed GpgOL Outlook can handle situations where an attached mail itself has an attachment.

The same is true for GPG4WIN Version 4.2.0 with GpgOL. Seems this plugin breaks if attached mail themselves have attachments, not handling them recursive, but as linear list, breaking with array boundaries.

Or: GpgOL is incapable of handling arrays within arrays?

Details

Version
3.1.26

Event Timeline

aheinecke added projects: Restricted Project, gpgol.
aheinecke added a subscriber: aheinecke.

I have yet to reproduce this so I had not yet triaged this. The usual case to forward attached mail in Outlook is with .msg files but I recently noticed that Outlook on the web allows you to save mail also as .eml. Also .eml should in theory be much simpler to handle.

My suspiction with this is that here the exchange server / outlook parses the mail attachment into MAPI and somehow handles mails differently then other attachments. This automatic conversion regarding attached mails is why we always ask users in Support to send us a problematic mail as a file in a zip archive. Otherwise Exchange will convert an attached Outlook MAPI mail to MIME and on the receiving side we can no longer see the original strucutre. Similar things are probably happening on the receiving side where the MIME eml "file" is converted into a MAPIOBJECT holding the forwarded mail which then confuses our internal knowledge about the attachments causing this error.

werner renamed this task from Forwarding mail with attachments embeded into the *.eml file will trigger GnuPG reporting an index out of range to Forwarding mail with attachments embeded into the *.eml file will trigger GpgOL reporting an index out of range.Sep 26 2024, 2:37 PM
werner mentioned this in Unknown Object (Phriction Wiki Document).Sep 26 2024, 3:36 PM

This was fixed by c0ca4f1b254f6879d719d1a5ed43a51ca9015b93 since the embedded message was not handled it was not extracted / parsed into an Attachment C++ Object which caused this error. I don't want to change the status of tasks which are not assigned to me but i saw it while looking over my open assigned tickets.