At 18:32 -0500 03 Jan 2000, Reto Lichtensteiger <rali(_at_)meitca(_dot_)com>
wrote:
If you're going to wedge it with date, then try this:
ARPATIME=`date +"%a, %d %b %Y %T"`
formail -A "Date: $ARPATIME -0500"
That will cause problems if your system honors daylight savings time,
because the offset will change. Also, depending upon how this is
getting invoked, the locale could cause problems.
But, the GNU version of date(1) provides an easy way to get a suitable
format:
formail -A "Date: `date -R`"
If you need to do it with a less robust version of date(1), you could
use something like:
formail -A "Date: `LC_TIME=C TZ=GMT date +'%a, %_d %b %Y %T GMT'`"
--
Aaron Schrab aarons(_at_)execpc(_dot_)com
http://www.execpc.com/~aarons/
We don't need more money spent on defense, we need a real enemy.
-- Don Was