login about faq

Hi,

i use Chilkat Android and i call

   imap.AddPfxSourceFile(....)

so my Mail is decrypted and if i call

 ckEmail.SaveEml(filePath);

the Mail is stored DEcrypted to. But i want to save the Mail encrypted at the Datastore... How i can do THAT?

THX Howard

asked Mar 24 at 10:21

Howard's gravatar image

Howard
156


Hi Howard,

The problem is that the email object holds the email in an internal object model. This is a problem for signed/encrypted email where the exact formatting of the email (including whitespace) cannot change for signatures, or if the email is opaque for encrypted email (and thus internal attachments wouldn't be available, etc.)

Therefore, if downloading an email from an IMAP or POP3 server, use the methods to download the email as MIME. This way, you can save the MIME string to a file and it will be exactly as it existed on the server -- fully encrypted and signed. Your program can then load the MIME into an email object for use -- such as to get at the various headers, From, To, CC, attachments, etc.

link

answered Mar 24 at 12:14

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

hi,

thx for your answer. what i did for now: let the downloading Part of my Program like it is but just NOT using the

imap.AddPfxSourceFile(....)

so a

ckEmail.SaveEml(filePath);

just save the encrypted Mail like it is. Later in my Prog if i need it i use this:

ckEmail.SetDecryptCert(...);
ckEmail.LoadEml(emlPath);

What you say about this? Is this the "Chilkat Way"? or should i better load the Mime and convert it to a ckmail object then ... like you said?

link

answered Mar 29 at 04:18

Howard's gravatar image

Howard
156

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
×64
×45
×7

Asked: Mar 24 at 10:21

Seen: 390 times

Last updated: Mar 29 at 04:18

powered by OSQA