login about faq

Hi,

I need to load the eml data of an email and then send it on via smtp without decrypting .p7m mime attachments. Is that possible? Email.LoadEml seems to decrypt the attachments and when I send it on the user only gets the decrypted version.

Best regards,

Claus

asked Oct 07 '13 at 09:54

clausc's gravatar image

clausc
1345


It's not possible because the email object stores the email internal in an object model. The MIME is parsed, dissected, and stored in an object form (much the same way that a Document Object Model (DOM) XML parser would store an XML document. This causes the exactness of the MIME to be lost, and this causes problems with PKCS7.

The Chilkat MIME object, however, can be used to load MIME without decrypting (i.e. unwrapping the PKCS7 layers) and the MIME API can be used to access the headers, bodies, sub-parts, etc. It's a trade-off: The lower-level MIME API can be used to access MIME without disturbing it, or the higher-level Email API can be used to access the MIME w/ the specific semantics that the MIME is an email (not something else, such as an HTTP request, HTTP response, or any of the many other cases where MIME is an underlying format for some other protocol, standard, or Internet technology).

link

answered Oct 08 '13 at 09:37

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Ok, that could work for me.

So could I do this without causing decryption of the .p7m attachemnt: Use Mime.LoadMimeFile to load the file, then use some low-level manipulation functions to add an X-header or so and then use Mime.GetMime() to convert into a string and use Mailman.SendMime to send the email over to an smtp relay server?

So the Email object would be used to unpack and decrypt mime attachments and the Mime object would be used to manipulate mime without decrypting?

Thanks,

Claus

(Oct 08 '13 at 17:20) clausc
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×184
×29
×5
×4

Asked: Oct 07 '13 at 09:54

Seen: 1,306 times

Last updated: Oct 08 '13 at 17:20

powered by OSQA