Page MenuHome GnuPG

GpgOL: Attached mails are empty if attached mail has encrypted attachments or is in text format and encrypted or signed
Open, Needs TriagePublic

Description

When mails are sent via attachment, the attachment is displayed empty in both preview and opened window if

  • the attached mail is written in text-only format and is signed and/or encrypted
  • the attached mail has encrypted attachments

I have generated mails with all permutations of outlook formats (html, rich, text) * (un)signed * (un)encrypted and sent them via attachment in various ways. Sending the attachments signed and/or encrypted does not matter, neither if it's a single or multiple attachements. In all cases the empty display in the preview / opened window is the same. This behaviour can be seen e.g. in the following attachments of the mail Ted:INBOX/Anhänge/attached unsigned unencrypted: all mailformats (15:07):

  • TEXT signed unencrypted
  • TEXT unsigned encrypted
  • TEXT signed encrypted

Additionally attaching mails with encrypted attachments (does not matter if signed or not) leads to the same behaviour, which can be seen in the following attachments of the mail Ted:INBOX/Anhänge/attached unsingned unencrypted: all attachment mails (16:30):

  • attached unsigned encrypted: all mailformats
  • attached signed encrypted: all mailformats

Notes:

  • RICH/HTML and encrypted attachements are displayed with their own openpgp-encrypted-message.asc attachment, which in turn can be opened fine (although it's displayed via Kleopatra and only as text not html). Not sure, if this is the expected behaviour

Details

Version
vsd-3.3.2 @ win10

Event Timeline

Here are the messages and logs, when trying to open them:

mailattached unsigned unencrypted_ TEXT signed encryptedattached unsingned unencrypted_ all attachment mails
attachmentTEXT signed encryptedattached signed encrypted: all mailformats
msg
eml
log

Looks like there is a rights problem modifying the body of those mails
Every time when we try to modify the HTMLBODY or BODY property we fail with MAPI_E_NO_ACCESS.
The attached mails in those tests where ms-tnef formated (winmail.dat)

omhelp.cpp:lookup_oom_dispid:160 wchar_t alloc 00000155d9abfe80:HTMLBody
07:35:08/5284/oomhelp.cpp:put_oom_string:674 wchar_t alloc 00000155ccf77710:<html><head></head><body><table border="0" width="100%" cellspacing="1" cellpadding="1" bgcolor="#0069cc"><tr><td bgcolor="#0080ff"><p><span style="font-weight:600; background-color:#0080ff;"><center>OpenPGP Nachricht</center><span></p></td></tr><tr><td bgcolor="#e0f0ff"><center><br/>Bitte warten Sie w�hrend die Nachricht entschl�sselt / gepr�ft wird...</td></tr></table></body></html>
07:35:08/5284/oomhelp.cpp:put_oom_string: Putting 'HTMLBody' failed: 0x80020009
07:35:08/5284/DBG_OOM/oomhelp.cpp:dump_excepinfo: Exception: 
              wCode: 0x1000
              wReserved: 0x0
              source: Microsoft Outlook
              desc: Sie besitzen nicht die erforderliche Berechtigung, um diesen Vorgang auszuf�hren.
              help: null
              helpCtx: 0x0
              deferredFill: 0000000000000000
              scode: 0x80070005
07:35:08/5284/TRACE/oomhelp.cpp:put_oom_string:699: return
07:35:08/5284/ERROR/mail.cpp:decryptVerify_o: Failed to modify html body of item.

07:35:08/5284/oomhelp.cpp:put_oom_string: Putting 'HTMLBody' failed: 0x80020009
07:35:08/5284/DBG_OOM/oomhelp.cpp:dump_excepinfo: Exception: 
              wCode: 0x1000
              wReserved: 0x0
              source: Microsoft Outlook
              desc: Sie besitzen nicht die erforderliche Berechtigung, um diesen Vorgang auszuf�hren.
              help: null
              helpCtx: 0x0
              deferredFill: 0000000000000000
              scode: 0x80070005
07:35:08/5284/TRACE/oomhelp.cpp:put_oom_string:699: return
07:35:08/5284/ERROR/mail.cpp:decryptVerify_o: Failed to modify html body of item.

07:35:39/5284/oomhelp.cpp:put_oom_string: Putting 'HTMLBody' failed: 0x80020009
07:35:39/5284/DBG_OOM/oomhelp.cpp:dump_excepinfo: Exception: 
              wCode: 0x1000
              wReserved: 0x0
              source: Microsoft Outlook
              desc: Sie besitzen nicht die erforderliche Berechtigung, um diesen Vorgang auszuf�hren.
              help: null
              helpCtx: 0x0
              deferredFill: 0000000000000000
              scode: 0x80070005
07:35:39/5284/TRACE/oomhelp.cpp:put_oom_string:699: return
07:35:39/5284/TRACE/mail.cpp:updateBody_o:1771
07:35:39/5284/ERROR/mail.cpp:updateBody_o: Failed to modify html body of item.

7:35:39/5284/oomhelp.cpp:put_oom_string: Putting 'Body' failed: 0x80020009
07:35:39/5284/DBG_OOM/oomhelp.cpp:dump_excepinfo: Exception: 
              wCode: 0x1000
              wReserved: 0x0
              source: Microsoft Outlook
              desc: Das Objekt unterst�tzt diese Methode nicht.
              help: null
              helpCtx: 0x0
              deferredFill: 0000000000000000
              scode: 0x80020009
07:35:39/5284/TRACE/oomhelp.cpp:put_oom_string:699: return
07:35:39/5284/TRACE/mail.cpp:updateBody_o:1905
07:35:39/5284/ERROR/mail.cpp:updateBody_o: Failed to modify body of item.
mmontkowski mentioned this in Unknown Object (Maniphest Task).Mon, Sep 29, 9:21 AM
ebo moved this task from Backlog to WIP on the vsd34 board.