On 2/18/2011 10:58 AM, Frank Reppin wrote: > > On 18.02.2011 16:25, Bowie Bailey wrote: > [...] >> 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. > Yes - I know that this is shown up in the header. > > But coming back to my initial question.... > ... is there an _easy_ way (like it is with 'date_received' for the > receiving MTA where spamassassin runs on) to query this date for > the receiving line the previous hop inserted? > > Something like: > > my $date_received_here = $msg->{ date_received }; # <- current hop > > but just (for what I want): > > my $date_received_prev = $msg->{ date_received_previous }; # <- prev hop > > (I know that 'date_received_previous' doesn't exist - acts just as > example) without reinventing the wheel or reparsing all headers again. > > Not sure if maybe all found received dates are just pushed into an array > in order of appearance and 'date_received' is just the last element > in an already known variable... which I then use to make something up.
Ah. I see what you are looking for now. Unfortunately, I don't know much about the internals of SA. Maybe someone else will be able to help. -- Bowie