On 2/18/2011 9:38 AM, Frank Reppin wrote:
> Hi Bowie,
>
> On 18.02.2011 15:10, Bowie Bailey wrote:
> [...]
>> You want the date the mail was sent to your MTA?  How is that different
>> than the date it was received by your MTA?
> No - this would be really the same then. :)
>
> But let me clarify...
>
> ... each received header contains the date where a mail
> was taken from the previous host.
>
> I'll try to illustrate which date I'm after, so let's assume:
>
> SENDER -> RELAY X -> RELAY Y -> RELAY Z -> OUR MTA -> RECEIVER
>
> When I'm on |OUR MTA| then 'date_received' would point to
> the date where |OUR MTA| took the mail from |RELAY Z|.
>
> But my intention is to know the date when a mail was received
> by |RELAY Z| ( coming in from |RELAY Y| on |RELAY Z|).
> This is what I meant by 'previous hop' in my initial post.

That information should be in the headers.  For example, from your email:

Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
  by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Feb 2011 14:39:31 +0000

It is up to the receiving MTA to write the timestamp in the header.  If
it does not do so, or if the time is not set correctly on the server,
you are out of luck.

-- 
Bowie

Reply via email to