login about faq

In reviewing the documentation for CkEmail, I can not find any reference to retrieving the "Received Date" of an Email, but I have a requirement to collect this data. How would I go about doing this?

This is an imap data source.

Thanks in advance for any help.

Cheers,

Stewart

asked Nov 20 '12 at 17:34

Stewart's gravatar image

Stewart
1222


The CkEmail class has methods for getting the values of any header field. For example, GetHeaderField can be called to get the value of any header field by name. You would pass "Received" to get the contents of the 1st "Received" header field.

However, given that an email may have multiple "Received" header fields, you may iterate from 0 to CkEmail::get_NumHeaderFields() calling GetHeaderFieldName(index) for each, and then if the name equals "Received", call GetHeaderFieldValue(index) to get the contents.

link

answered Nov 20 '12 at 21:36

chilkat's gravatar image

chilkat ♦♦
11.8k316358420

PS> It is up to your app to parse the contents of the "Received" header fields.

(Nov 20 '12 at 21:37) chilkat ♦♦
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:

×14
×6

Asked: Nov 20 '12 at 17:34

Seen: 1,344 times

Last updated: Nov 20 '12 at 21:37

powered by OSQA