login about faq

Using the CkEmail method, getMime() the resulting email string contains the "ckx-imap-" headers. Any way to remove this before we use getMime()? I know there is a RemoveHeader method, but does anyone have a list of all the ckx-imap headers?

Thanks!

hz

asked Feb 07 '13 at 16:35

hazmat's gravatar image

hazmat
1111516


Iterate over the header fields and remove each that begins with "ckx-imap-".

For example:

int i;
CkString strName;
CkStringArray saNames;
saNames.put_Unique(true);

int n = email.NumHeaderFields(); for (i=0; i<n; i++) { email.GetHeaderFieldName(i,strName); if (strName.beginsWith("ckx-imap-")) { saNames.Append(strName.getString()); } } n = saNames.get_Count(); for (i=0; i<n; i++) { email.RemoveHeaderField(saNames.getString(i)); }

link

answered Feb 08 '13 at 08:29

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

edited Feb 08 '13 at 08:29

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:

×174

Asked: Feb 07 '13 at 16:35

Seen: 645 times

Last updated: Feb 08 '13 at 08:29

powered by OSQA