| Dart Home | PowerTCP Mail for .NET | Custom Development | Reply | PowerTCP Mail for .NET Topics | Forums |
| Author | Forum: PowerTCP Mail for .NET Topic: How can InternalDate return a future date? |
| tbeaulieu From: Waltham, MA USA Posts: 4 Member Since: 06/04/08 |
posted August 1, 2008 11:17 AM Hello, I need to know the actual date/time a message was received, regardless of the client computer's date/time settings. I thought Internal Date would provide this. I got a report of a future date being returned. In the email message, it's clear that the client computer did indeed think the date was in the future (the same date returned from InternalDate). Am I misunderstanding the purpose of InternalDate? Thank you. |
| Jason Farrar (Admin) From: Oneida, NY USA Posts: 223 Member Since: 07/24/07 Extra Support Options Custom Application Development |
posted August 1, 2008 4:13 PM Just to clarify, do you mean that the client computer has an incorrectly set date and that when retrieving a message from the server on the client computer with the incorrect date the InternalDate property reflects the incorrect date? You are not misunderstanding the use of InternalDate however if you are seeing an incorrect date then that it is what the Server is setting it to. |
| tbeaulieu From: Waltham, MA USA Posts: 4 Member Since: 06/04/08 |
posted August 1, 2008 4:49 PM Not exactly. I'm saying that the client that SENT the email appears to have had an invalid date. Meanwhile ... while processing the message, InternalDate returned a future date. So where does that date come from? You say "that's what the server's setting it to", but what logic does the server use for that? If it's as simple as the exact date/time that the server received the message, the only way I'd get a future date is if the server itself had a bad date/time at the time of receipt. Right? If the above scenario is not the way it works then I don't understand it. I'm concerned because I really wanted a way to process emails in the order in which they were received. Yes, I understand that email can get crossed in delivery, but it's still our goal to process them in the order in which we received them. |
| Jason Farrar (Admin) From: Oneida, NY USA Posts: 223 Member Since: 07/24/07 Extra Support Options Custom Application Development |
posted August 5, 2008 7:39 AM The mail server is supposed to set the internal date to the date and time when it received the E-mail. We just insert the value that the server gives us. From RFC 3501: The internal date and time of the message on the server. This is not the date and time in the [RFC-2822] header, but rather a date and time which reflects when the message was received. In the case of messages delivered via [SMTP], this SHOULD be the date and time of final delivery of the message as defined by [SMTP]. In the case of messages delivered by the IMAP4rev1 COPY command, this SHOULD be the internal date and time of the source message. In the case of messages delivered by the IMAP4rev1 APPEND command, this SHOULD be the date and time as specified in the APPEND command description. All other cases are implementation defined. |
| Reply | PowerTCP Mail for .NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|