procmail
[Top] [All Lists]

Re: [procmail] Re: Y2K problem in auto-responder

2000-01-03 18:04:06
Aaron Schrab wrote:

<> 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.

Umph, yeah. Resetting the recipe twice yearly could be a pain <g>
Thanks for the improvements for locale.

<> But, the GNU version of date(1) provides an easy way to get a suitable
<> format:
<> 
<>    formail -A "Date: `date -R`"

Oooo! Now +this+ is useful to know.  Domo arigato!  This presumes one can
always rely on the machine having gnu's date, but it's still very useful.

RL
-- 
R A Lichtensteiger       rali(_at_)meitca(_dot_)com -or- 
rali(_at_)world(_dot_)std(_dot_)com
                         http://www.meitca.com/ITA/People/rali
    "Yes, you're doing things right, but are you doing the right things?"
    "Nope.  I'm just doing something dumb fast."

<Prev in Thread] Current Thread [Next in Thread>