Archived Forum Post

Index of archived forum posts

Question:

Please give us again email.AutoUnwrapSecurity to get p7s in messages

Sep 25 '13 at 09:41

Hi, we have a issue with our client, complaining that saved emails (with saveeml)do not contain anymore the p7s,signature... The AutoUnwrapSecurity property and behavoir was removed with 9.1.0, as stated in release notes. This is giving us very BIG LEGAL issues, as italian laws, want that the certified email is stored as received.. We need this property back, or unfortunately we must seek an other mail client, with all that this will bring (new interface, new development and so on)


Answer

You should instead use the methods that download email and return MIME strings (instead of the methods that return email objects). You may then load a MIME string into a Chilkat.Mime object, which does NOT auto-unwrap. The Chilkat.Mime class (or CkMime, CkoMime, etc. depending on your programming language) provides an UnwrapSecurity method so that you may explicitly unwrap security if desired. Otherwise, you may use the lower-level Chilkat Mime API to access the various parts within the MIME.


Answer

"...as italian laws, want that the certified email is stored as received..."

Same here in Germany. I am looking for a way to store the email in an 'unchangeable' way. So it is accepted for longtime storage with "evidential value" by laws.

If chilkat would offer a way to save the Mail as PDF it would be perfect i think. Should include headerinformation etc.

Just a suggestion that would come in handy ;-) I'll have to build such an application next few months. Will have to check what options are given to fulfill this task...


Answer

Chilkat provides methods to download email that return the exact MIME of the email received from the server.

For POP3, the methods include:

  1. FetchMime where the UIDL is passed and it returns the exact bytes of the email downloaded.
  2. FetchMimeByMsgnum, where a message sequence number is passed instead of the UIDL.
  3. FetchMultipleMime, where a collection of UIDLs is passed and returns a collection of MIME strings.

For IMAP, the methods include:

  1. FetchSingleAsMime, where the UID is passed and it returns the MIME string
  2. FetchSequenceAsMime, where a starting sequence number and count is passed, and a collection of MIME strings is returned.
  3. FetchBundleAsMime, where a MessageSet containing UID's is passed and it returns a collection of MIME strings.

The ability to download the email exactly as-is is already provided. Your application may store the MIME strings/bytes as necessary. Then after archiving the MIME for legal purposes, it may load the MIME into an email object for use by the application.