1

I am trying to decrypt a MSG file for a message that is originally in HTML format but encrypted using Symentec Encryption Desktop (an outlook plugin used to encrypt PGP messages).

looking at the Mapi properties of the encrypted message, i am seeing that it is set as a plain text formatted message. Perhaps it due to the encryption process.

I'm using bouncy castle library to decrypt the message, but I can't find how I can know the actual format after the message is decrypted, whether it is in plain text or HTML or RTf.

For example, in Smime, when decrypt a message we get meta information regarding the properties of the decrypted contents. is there an equivalent information available in PGP specification, that we can use to determine the original format of the message body.

I am asking this because, I manually trying to set the decrypted body into PR_Body mapi property, or what ever mapi properties needs to be set.

Any Help please.

RaniDevpr
  • 410
  • 2
  • 13
Nadeem Khoury
  • 886
  • 6
  • 18
  • What data do you get after decrypting? a MIME file? – Dmitry Streblechenko Apr 22 '16 at 14:37
  • Hello Dimity, No, Actually If the message HTML I get a HTML File, if it is a plain text, I get a plain text, and if it's a RTF, I get RTF Formatted body. I can share screen shots if you need. – Nadeem Khoury Apr 22 '16 at 14:39
  • I am confused - if you get HTML, set the HTMLBody, if plain text - Body property. – Dmitry Streblechenko Apr 22 '16 at 15:15
  • this is exactly what I do. and also if it is RTF I set the RTFBody. but my question is how can I know the body format after decrypting the message in order to set the right Mapi property. did you understand me Dmitry ? – Nadeem Khoury Apr 22 '16 at 15:46
  • I think I understand what you mean... If no other properties are available, look at the first character - it will be '{" for RTF and '<' for HTML – Dmitry Streblechenko Apr 22 '16 at 16:51
  • ya, that's a good solution. but, I am afraid that the original body message has either "{" or "<" and I cannot determine correctly the body format. but anyway Thank you so much my friend. I thought there is another MAPI property that can help me to know the body format before inserting it. – Nadeem Khoury Apr 22 '16 at 16:54
  • I don't know, I never had to deal with Symentec Encryption Desktop. Do you see an other MAPI properties in OutlookSpy? – Dmitry Streblechenko Apr 22 '16 at 19:06
  • Ya, I checked all the MAPI properties using MFC Mapi. while the message is encrypted it shows me that the PR_MSG_EDITOR_FORMAT is Plain text even if the message in RTF Format or HTML Format. and I cannot detect the actual format after decrypting it. I though OpenPGP is going to help me and provide me some metadata but it didn't. – Nadeem Khoury Apr 22 '16 at 19:47

0 Answers0