OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Rewrite 'Date' header to include timezone?

From: David Hoekman (dhoekmanhalcyon.com)
Date: Mon Apr 02 2007 - 12:57:48 CDT


I need Postfix to relay mail generated by legacy software (i.e.
inflexible & hard to change) which sends a 'Date' header that
lacks timezone information, e.g. this:
   Date: Mon, 1 Apr 2007 09:15:00

instead of this:
   Date: Mon, 1 Apr 2007 09:15:00 -0800 (PDT)

The problem with this is that in the absence of a specific timezone,
mail clients typically show this as having been sent from GMT,
which can make the chronology of mail exchanges hard to follow.

If no 'Date' header were present, I know that Postfix would add
a correct one, but how can I rewrite an existing one? Or is it
possible to delete the one supplied?

I'm using Postfix 2.4.0-RC6 on SuSE/Linux.