procmail
[Top] [All Lists]

Re: How To Capture Date Command Output To A Variable.

2004-04-15 17:16:03
On Fri, 16 Apr 2004 01:07:55 +0200, "Ruud H.G. van Tol"
<rvtol(_at_)isolution(_dot_)nl> wrote:

Toen wij multimedia-fan(_at_)myrealbox(_dot_)com kietelden, kwam er dit uit:

I tried
  DATE='/usr/bin/date -R'
But I still get  the header inserted as
X-Email-Status:  Processed at  /usr/bin/date -R

See the date-related examples in man procmailex. 

You don't have to store it in a variable first.

 :0 fhw
 | $FORMAIL -A "X-Email-Status: Processed at `/usr/bin/date`"


You can also get the date and time from the From_ header:
http://www.xs4all.nl/~rvtol/procmail/basic/pm/H_From_parse.inc 

Thank you.
I noticed the horrible mistake that I made.

Basically I had ' instead of `.
Thank you again.


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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