Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving the date & time from an e-mail message

Status
Not open for further replies.

ffej2ffej

Programmer
Oct 8, 2005
9
US
Thank goodness, this project is almost finished. It uses the TNMPOP3 component to retrieve mail summaries from a POP3 server. The summaries objects have many useful methods and properties including subject, sender and header. The header is returned as a series of strings which don't really seem to hold any consistency or order.
The problem is that I need the date & time of when the message was last received. By that I mean I don't need to know how many times it was forwarded or anything at all about any transactions except the very last one.
My boss and I discussed many different ways to try to extract the time & date from these header strings, but I still contend that none of them are dependable because the strings seem sort of arbitrary based on which e-mail server sent or received the message.
I'm hoping someone is going to tell me that there is a method of TNMPOP3.Summary to just get the date and time quickly. If not, I need some other way to do it. Thank you.

P.S. Once the time and date are retrieved in a way that is dependable, the project is finished.
 
I suspect you are correct about different eMail servers writing the time differently. For example, my server consistently writes the time line as:

by mail.mydomain.com; Fri, 15 Jul 2005 00:35:55 -0500

For my purposes, I use the date/time of the eMail file itself, e.g.

fileDateToDateTime(fileAge('FileName'))

As far as I'm concerned, once the file becomes magnetic ink, that's when it was received.

Getting answers before I'm asked
is why I go to Tek-Tips.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top